[Release][ESX] ESX_NoCarJack

If you want to make exceptions, the only thing I can think of out of the wild, is to also use a white-list, since there is a black-list already, that way you could use the white-list to ignore cars and keep them unlocked without the NoCarJack system interfering…

Hmm… Interesting :smiley:

Well I wish you luck on this project!

:mascot: ~ Lance

Thank you for your good wishes :smiley: !

I think it will be trivial to make owned cars remain unlocked for their owners. I see you have a good start in the server code. I’ll push it to github if I get it working smoothly. I plan to do that and a few other options, like allowing drivers to lock cars, etc. I’ll see about incorporating a whitelist too, I have a use for that as well.

1 Like

Pretty good stuff indeed! thanks for sharing and will be looking forward for all those things :smiley: :+1:

@0xNOP theirs a little issue with this…Which is when player takes out a vehicle from the COP GARAGE and u cant get back in the vehicle.
Hoping u would help me with an answer.
(its a great locking system cause the [Release] LockSystem 3.1 (Updated the 07/16/2018) [BETA] doesn’t work for me No clue why) @LGDevelopment

Yup, this is a known bug already… thanks for providing support, https://github.com/AxDSan/esx_nocarjack/issues/1

Will definitely try to fix this asap.

1 Like

yeah cant wait for you to fix this, very annoying.

It’s open source. If something doesn’t work for you, you could always contribute and fix it :+1:

1 Like

I just pushed a small hotfix which should take care of the bug for a while… I basically made a whitelist for jobs now, if someone is in a job category in the whitelist, it will allow him/her to unlock the car… I need someone to report back by checking if they can also open others players owned locked cars, if so, then this hotfix might need more checks for permissions or something, please report back to me if you find anything like that.

Cheers!

Other jobs like lumberjack must spawn work cars and they are locked :frowning: you working on full fix or should i fix it by myself? XD

if you have a solution share it here or open an issue at github, and I will check upon it, if else, you want to do it yourself and later commit a push as a contributor that can also be accepted, or if you want to fork and do your own thing, as long as you keep sharing under the same license you are also allowed to do that.

All right thank you for respond :slight_smile:

Using esx_eden_garage, we are having some issues. Player vehicles seem to always be locked when a vehicle is removed from the garage. any ideas?

Try warping the player into the vehicle. The doors shouldn’t be locked if the car spawns with a player in it.

But that isn’t fixing the issue is it? It’s just creating a workaround. Anything better possible?

You can make the script check the database for any cars owned by the player and see if the car they are entering matches any cars they own. It was relatively trivial for me to make that work on my server. I searched the database for the plate of the car the user is getting into, if the plate is found in the database it gets the steam ID of the owner and compares it to the person entering the car. If it matches, the car unlocks.

1 Like

Hi! Am I able with this script to add some vehicles to a “blacklist” ? So the vehicles there will be unlocked every time.

I need it for some ESX job like Delivery and etc…

Hi! How can I add a whitelist the some of the cars will be always unlocked when they spawn? For Example some job cars like the deliveri’s truck and the pizza deliveri’s bike. It would be awesome to know.