Vehicle Whitelist for FXServer
V 1.0.0
- Add vehicles to a player’s SteamHEX
Steam username to hex converter here
- Customizable notifications (changeable in config)
- Delete spawned Vehicle (changeable in config)
V1.0.1
- Added Multiple vehicle lists
Github
Download
Requirements
Download & Installation
- Download the files
- Put it in the server resource directory
- Add this to your
server.cfg
ensure JD_vehWhitelist
Add people to Whitelist
open Config.lua Add the SteamHEX of people on a new line to add them to the list
['steam:123456789123456'] = lockedVehicles, -- Give Access to All Vehicles ### Player 1
['steam:123456789123456'] = {'apc'}, -- Give Access to One Vehicles ### Player 2
['steam:123456789123456'] = {'apc','apc'}, -- Give Access to Two Vehicles ### Player 3
['steam:123456789123456'] = {'apc','apc','apc'}, -- Give Access to Three Vehicles ### Player 4
5 Likes
Nice release! would be cool if we didnt have to put info into the Config, and instead we could use the DB
Still well done on this one!
1 Like
Thanks!
Sounds like a great idea i’ll look into it.
1 Like
can you have different local lockedVehicles = { lists or does everything have to be added to the one list.
for example can i have local lockedVehicleshighway = {
and then give someone access to that particular list using [‘steam:123456789123456’] = lockedVehicleshighway, ?
Actually it doesnt work. Doesnt delete the vehicle (set to true) just gives the warning message. Also only works for the first vehicle spawned
No option yet to add a second vehicle list.
Will be in next update i’m woking on that
For now you have to add the vehicles one by one srry.
thats fine, but yeah its not deleting the vehicles and only displaying the message for the first spawned vehicle
It’s deleting them for me…
Do you have any errors at all?
only the one regarding not using the logs
i tried moving DeleteVehicle(veh) up into this section in the client.lua
if GetPedInVehicleSeat(veh, -1) == Faxped then
ShowInfo(Config.alert)
DeleteVehicle(veh)
which did delete the vehicle, but again only the first time
In the config file you need to set Config.JD_logs to false since youre not using my Logs to Discord resource
1 Like
AH! working perfect now thanks!
2 Likes
Hi I was wondering if I would be able to put a group.blank instead of the steam hex id and also would I be able to add more groups easily to the script?
2 Likes
Does it work with fivem licences?
Doesnt Work When i use that
yeah thats what i have been doing lol its good
You should make one for weapons
1 Like