Array_Vehicle_Whitelist
Finally a universal vehicle restriction script.
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.
Features
Whitelist vehicles based on:
-
Steam ID
-
Ace permission
-
Discord ID
-
Discord role (Whitelisting based on Discord roles requires Badger_Discord_API to be installed.
-
Choose whether to kick players from-, delete-, or kill the engine of the vehicle.
-
Easy to configure, with easily readable Documentation and Installation guide.
With a straight-to-the-point config, you’ll easily set up your whitelisted vehicles. Add as many lines as you want.
Config.cars = {
{spawnCode = "", steamID = {"", "", ""}, DiscordID = {"", "", ""}, acePerm = {"", "", ""}, DiscordRole = {"", ""}, deleteOrKick = "delete"},
{spawnCode = "someStaffCar", steamID = {"SomeGuyWhoDoesntUseDiscordHisSteamID", "", ""}, DiscordID = {"", "", ""}, acePerm = {"", ""}, DiscordRole = {"Staff Team", "", ""}, deleteOrKick = "delete"},
{spawnCode = "MyAwesomeCar", steamID = {"Mysteamhex", ""}, DiscordID = {"MyBestFriendsDiscordID", "", ""}, acePerm = {"", "", ""}, DiscordRole = {""}, deleteOrKick = "killengine"},
{spawnCode = "IWantThisCarToHaveMoreSteamIDsWhitelisted", steamID = {"steamID1", "steamID2", "steamID3", "steamID4", "steamID5"}, DiscordID = {"", "", ""}, acePerm = {"", "", ""}, DiscordRole = {"", "", ""}, deleteOrKick = "kick"},
{spawnCode = "", steamID = {"", ""}, DiscordID = {"", "", ""}, acePerm = {"", "", ""}, DiscordRole = {"", "", ""}, deleteOrKick = "kick"},
}
Download it here:
Tebex
(If you want to support us)
Github
(If you’re lazy)
Documentation
Acknowledgements
- Special thanks to:
- OfficialBadger for Badger_Discord_API
- Anyone who’s made a vehicle whitelist script in the past, for inspiration.