Secure your server
Last updated
Last updated
Create Vehicle ()
Example of wrong usage
Example of right usage
If you do not use any native on the spawned vehicle you can use:
If you use any native on the spawned vehicle you can use:
Example of wrong usage
Example of right usage
If you do not use any native on the spawned ped you can use:
If you use any native on the spawned ped you can use:
Example of wrong usage
Example of right usage
If you do not use any native on the spawned object you can use:
If you use any native on the spawned object you can use:
Weapons from weapon wheel
If you are using the weapon wheel on your server you can set Config.antiSpawnWeapon to true, if it is set to false as it is by default and ensure that you do not have any script in your server that spawns weapon in your players' hand or not using the weapon wheel. More than this feature you can create in your server a script that will allow getting and using weapons only if you have a specific group, faction or number of hours played on the server in order access weapons from gunshops. Unless the player does not have a specific group, faction or number of hours played on the server in order to access weapons from gunshops and the player owns weapons, the player can be banned
Weapons from server inventory
If you are using an inventory script that allow using weapons only from inventory, you have to ensure that weapon wheel is disabled completely, even if the player is in the vehicle. In this case Config.antiSpawnWeapon has to be set to false. In order to check if the player has a valid weapon in his inventory, you can create a script that checks if the player has the weapon in inventory. Beside this check you can also use the same check as above, if the player does not have a specific group, faction or number of hours played on the server in order to access weapons from gunshops and the player owns weapons, the player can be banned. In this scenario you have to take in consideration that trading weapon items can impact this check.
In order to protect your server from re-running functions or events, it is recommended to create the functions or events as much as possible on server side and contain various checks such as requiring permission (group, faction, level, played hours), requiring items, checking the number of items, location, cooldowns, duty (active task), number of attempts in a specific time. If you do not know how to make this kind of checks, you can use the event protection provided by the anticheat for the events you want to protect.
Create Ped ()
Create Object ()