Array_Vehicle_Whitelist
Current Version 1.0
Last updated
Current Version 1.0
Last updated
This resource allows you to whitelist vehicles to certain (groups of-) players. You can use identifiers such as a Steam Hex, Ace permission, Discord ID or Discord Role.
We made this resource because we couldn't find a one-size-fits-all solution to restricting vehicles. Some resources don't offer all the identifiers offered in our script, and some just over-complicate things.
Extract Array-Vehicle-Whitelist into your server Resources folder
Add "Ensure Array-Vehicle-Whitelist" into your server.cfg
Configure your settings in the config.lua
Restart your server
(If you want to whitelist vehicles to a specific discord role you need to have Badger_Discord_API installed)
Open the Config.lua
Options to configure:
spawnCode The spawn code of the vehicle you want to whitelist
discordID The Discord ID of the person you want to add to the whitelist for this vehicle. You can retrieve someone's Discord ID by enabling "Developer Mode" on discord (Settings > Advanced > Developer Mode), then right-clicking on a user and clicking Copy ID.
DiscordRole A Discord Role name that you want to add to the whitelist of the vehicle. The name needs to match perfectly. (Requires Badger_Discord_API to be installed)
deleteOrKick Specify whether to kick a player from-, delete or kill the engine of a vehicle they are not permitted to drive. Can be set to "kick" or "delete" or "killengine".
You can add more entries per identifier type (steamid, discordid, etc), as exampled below. You can add as many identifiers per vehicle as you would like. You can add as many vehicles as you would like. You can also leave any of the identifiers blank.
Download from
steamID The Steam Hex of the person you want to add to the whitelist for this vehicle. You can retrieve your Steam Hex by looking yourself up on
acePerm An ace permission that you want to add to the whitelist of the vehicle (If you want a certain group to be whitelisted, add the ace onto that group in your server.cfg). For a detailed explanation on ace permissions