Create a Whitelist for Vehicles/Ped/Weapons and Weapon Attachments
Ace Permission based Whitelisting
Vehicle Whitelisting:
You can add a Vehicle to the Whitelist.
Only people with the Ace Permission given to the model are allowed to drive it.
(Optional: you can make the vehicle delete if the driver isn’t allowed to use it.)
Config.Vehicles = {
{GetHashKey("apc"), "jd.stafff","0"},
{GetHashKey("MODEL_NAME"), "ACE_PERMISSION","DELETE_LVL"},
}
Use 1 to delete a vehicle and 0 to keep it.
Ped Whitelisting:
Ped whitelisting only needs the model name and the ace permission.
If they use a ped they are not allowed to use it gets replaces with Maikel’s character
Config.Peds = {
{GetHashKey("mp_m_freemode_01"), "jd.staff"},
{GetHashKey("MODEL_NAME"), "ACE_PERMISSION"},
}
Weapon Whitelisting:
Weapon whitelisting only needs the model name and the ace permission.
If they hold the weapon they aren’t allowed to use it gets deleted.
Config.Weapons = {
{GetHashKey("WEAPON_PISTOL"), "jd.staff"},
{GetHashKey("MODEL_NAME"), "ACE_PERMISSION"},
}
Weapon Attachments Whitelisting:
Weapon Attachments whitelisting only needs the model name and the ace permission.
If they hold the weapon with the attachment they aren’t allowed to use it gets deleted.
Config.WeaponComponents = {
{GetHashKey("COMPONENT_AT_PI_SUPP_02"), "jd.staff"},
{GetHashKey("MODEL_NAME"), "ACE_PERMISSION"},
}