docs.illenium.dev

illenium-appearance supports blacklisting peds based on the following criterion:

The way it works is that you need to add the ped blacklist configuration to shared/peds.lua. 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 shared/peds.lua).

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

lua title="shared/peds.lua" Config.Peds = { 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"} } } }