Skip to content

Commit

Permalink
feat(blacklist): Ped Blacklisting / Limiting support based on Gang, J…
Browse files Browse the repository at this point in the history
…ob, ACE (#120)
  • Loading branch information
TheiLLeniumStudios authored Jul 2, 2022
1 parent f626ade commit ed6c2a5
Show file tree
Hide file tree
Showing 5 changed files with 922 additions and 876 deletions.
50 changes: 45 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ Discord: https://discord.gg/ZVJEkjUTkx
- Skin migration support (qb-clothing / old fivem-appearance)
- Player specific outfit locations (Restricted via CitizenID)
- Makeup Secondary Color
- QBCore Theme
- Component & Props Blacklist support
- Limit Components & Props to certain Jobs / Gangs
- Limit Components & Props to ACEs (Allows you to have VIP clothing on your Server)
- Blacklist / Limit Components & Props to certain Jobs / Gangs / ACEs (Allows you to have VIP clothing on your Server)
- Blacklist / Limit Peds to certain Jobs / Gangs / ACEs
- Persist Job / Gang Clothes on reconnects / logout
- Themes Support
- Themes Support (Default & QBCore provided out of the box)

## New Preview (with Tattoos)

Expand Down Expand Up @@ -186,6 +184,48 @@ Here is how the JSON file would look like, for such configuration:

You can separately blacklist male and female clothes. Just put them under the right section in the json and you should be good to go.

## Limiting Ped Models to Jobs / Gangs / ACEs

You can now limit different ped models by adding them in a specific format to `peds.json`. The default file contains all the ped models without any blacklisting. For example if you want to limit following peds:

```
a_f_m_beach_01, a_f_m_bevhills_01, a_f_m_bevhills_02 => "police" job
a_f_m_bodybuild_01 => "vagos" gang
a_f_m_downtown_01 => "admin" ace
a_f_m_skidrow_01 => "police" job, "ballas" gang
```

To do this, you first need to remove all these peds from the `peds` list which doesn't have any filters / limits defined (The default one provided in `peds.json`).

Here is how the JSON file will look like, for such configuration (**Note:** The `...` should be the list of all peds that you want to be accessible to everyone):

```json
{
"pedConfig": [
{
"peds": [...]
},
{
"peds": ["a_f_m_beach_01", "a_f_m_bevhills_01", "a_f_m_bevhills_02"],
"jobs": ["police"],
},
{
"peds": ["a_f_m_bodybuild_01"],
"gangs": ["vagos"],
},
{
"peds": ["a_f_m_downtown_01"],
"aces": ["admin"],
},
{
"peds": ["a_f_m_skidrow_01"],
"jobs": ["police"],
"gangs": ["ballas"]
}
]
}
```

## Theme configuration

fivem-appearance comes with 2 themes, `default` and `qb-core` and `qb-core` is set as the default one.
Expand Down
2 changes: 1 addition & 1 deletion game/dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit ed6c2a5

Please sign in to comment.