Any Notify System - make sure to change to your notify in client if you have custom notify
same as above for progress bars
Exports
give player keys
exports['xd_locksystem']:givePlayerKeys(plate)
take player keys
exports['xd_locksystem']:takePlayerKeys(plate)
Developers - Check Player Keys
if you want to add check for keys to one of your script, you can use this in your client files
plate - the vehicle plate you want to check key for.
hasKeys - return true if player has the keys for vehicle else false.
ESX.TriggerServerCallback('xd_locksystem:getKeys', function(hasKeys)
if hasKeys then
print('Player has the key for the vehicle!')
end
end, plate)
Lockpick
While in hotwire you can have big chance to fail, but with lockpick you will succeed everytime you using it in vehicle, but you have a chance written in the config for the lockpick to break and not succeed!
Help!
For any help type in the comments your issue or open issue in github where the download link is
recommended to open issue in github
-Does it fetch keys for players own vehicles upon connecting? (Not sure if anyone else needs this feature besides me, but i guess it would help people that are running some realistic parking -scripts)
-Possibly add minigame for hotwiring instead of progbars? (You could yoink the lockpicking minigame I have used in my vehicle lockpicking script,)
If you give keys to other player, it will be temporary, as in when player disconnects, it will delete keys from said player? Or how exactly does it work?
Yeah, I saw. I’ll do it myself, no worries.
Ah well, alright. I’ll do this myself too. I’m just being lazy thus asking
If you give player keys it will stay until he give it to you or anyone else
(Unless you restart the script and then all keys will be reset)
The script is saving keys in server side so it doesnt matter if player disconnects…
Ah okay, I think you shouldn’t delete the vehiclekeys* from person who is giving it, if its the owner of said vehicle. Kinda scuffed situation if you gave your key to another person and the other player disconnects. Then no one has keys to the vehicle until script/server restart?
Welp, one dirty hack would be calling givekey export upon giving keys to another player. This way it would “copy” the key, right?