WhiteListing Entities
When you log into your server for the first time you should get a lot of Unauthorized resource & BlackListed Entity bans. But don't worry, thats absolutely normal. So how we fix this?
Find EntitiesSettings in the config_cl.lua file.
EntitiesSettings = {
Props = {
CheckScript = true,
AllowedScripts = {
["es_extended"] = true,
["qb-core"] = true,
},
},
Peds = {
CheckScript = true,
AllowedScripts = {
["es_extended"] = true,
["qb-core"] = true,
},
},
Vehicles = {
CheckScript = true,
AllowedScripts = {
["es_extended"] = true,
["qb-core"] = true,
},
}
},Like the template above, here you must allow your scripts that spawn props, peds, or vehicle by following the example: ["resourceName"] = true, .
You can find these scripts either in the Discord Logs when you get banned, or because it seems logical (a vehicle garage for example) or by looking for the natives CreateVehicle, CreatePed, CreateObject
Find EntitiesSettings in the config_sv.lua file.
Props
Here you have to insert the props you want to allow on your server by entering either its model number (hash) or its name in quotes like the examples above.
You can find them either in the Discord logs when you get banned, or in your scripts directly.
Peds
In the same way as for the props, you have to insert the peds you want to allow on your server (not the ambient peds, nor those of your players) but the ones you make appear manually.
Vehicles
The simplest way is to insert here only the name of the vehicles that you do not want on your server.
Last updated