Ressource to lock/unlock vehicles when player has the item in Inventory
Enjoy ![]()
Ressource to lock/unlock vehicles when player has the item in Inventory
Enjoy ![]()
video not working
its not a video its a photo XD
I don’t understand where to put it. Have you got a sample?
local playerId = 1
local plate = “ABC 123”
exports[‘gflp10-carkeys’]:AddCarkey(playerId, plate)
This export - exports[‘gflp10-carkeys’]:AddCarkey(playerId, plate)
Should go with your car shop or parking script. Each one may be slightly different.
I’m having trouble getting this export to trigger keys with ox_inv and h-vshop (GitHub - SilverGoLt/h-vshop: H-VShop is a vehicle shop system that is more optimized and easier to use!) right now. Any advice @GFLP10
Do you get any errors?
I fixed it by loading them in a different order, all is good now
I need to add this to ALL of my car related scripts now which is painful.
how did you do it? I also use these 2 scripts, and I get a lot of errors:)
What kind of errors so you get?
I now need to get the keyshop working after people are dying and losing their keys ![]()
Do you have ox_target and esx installed?
Ah - thats why it wasnt appearing. I’m still using qtarget. I’ve got the npc now and the menu kinda works. I just need to freeze the actions when the menu appears.
I’m getting an error from ox_inv now to fix.
[script:gflp10-carkey] An error occurred while calling export AddItem in resource ox_inventory:
I need to put some time into converting over to ox_target with everything ![]()
yeah this is the right place for it.
I also realised you dont need this anywhere else other than purchasing cars.
I’m going to add this to rental vehicles too. Replacing rental papers.