DiscordVehiclesRestrict (DiscordVehicleWhitelist by FAXES)
This is a Discord Vehicle Restriction script that restricts vehicles to certain roles with discord. This idea came about because of FAXES DiscordVehicleWhitelist. I have gotten permission from FAXES to add onto his script and make it possible to restrict vehicle use to only certain roles within Discord.
Extract the .zip and place the folder in your /resources/ of your Fivem server
Make sure you add âstart DiscordVehicleWhitelistâ in your server.cfg
Enjoy
Setup
The 1s must be replaced with IDs of the roles within your discord
The order of the roles need to match up with the restrictedVehicles list within the client.lua:
--- Config ---
--[[
REPLACE THE '1's WITH YOUR DISCORD ROLES' IDs
]]
-- THESE NEED TO BE THE RESPECTIVE ROLE IDs OF YOUR DISCORD ROLES:
roleList = {
1, -- Civ
1, -- Trusted Civ
}
What is not working about it? Are there any errors or? It works fine on my test server, so the script functions correctly and must be an error with setting it up properly.
I would try setting it up for 1 role, then go role by role. I can tell you the error is on your end since I have the exact same script running on my server with no issues.
The script is not working for me neither. I donât know what Im doing wrong. Since I restrict for example Zentorno to be restricted to Civilian only but somehow it restricts it to every rank. Im Im also not getting any errors