[ESX] 2EZ Lockpick & Hotwire

The title really says it all. This resource locks all civilians cars with having a chance to be unlocked. If the vehicle is locked you can use the lock pick item to get into the vehicle.

Features:

  • Lock Ped Vehicles
  • Hotwire
  • Lockpick item
  • Configurable Chance to set alarm and notify cops

In the works:

  • Add a search for keys

Known Bugs:

  • You can use a lock pick on vehicles while ped is occupying. Working on that right now lol

Run this query in your mysql to add the Lockpick to the store. Curtsy of esteon0630

INSERT INTO shops (store, item, price) VALUES
(‘TwentyFourSeven’,‘lockpick’,30),
(‘LTDgasoline’,‘lockpick’,30),
(‘RobsLiquor’,‘lockpick’,30);
Preview:

https://streamable.com/q9l1r

Requires progressBars:

Requires GcPhone:

Download:

If you find any other bugs please post them here or github

Edits:

  • Fixed the engine starting before Hotwire
21 Likes

before anybody says it lol I’m adding the sql file. My bad xD

Looks really nice :slight_smile:

need your status , ive saw it shared but cant find it anymore 
 :slight_smile:

I get this error

Plus where do we buy the lock picks.

also I had to remove “essentialmode.” from the sql file to get it to load

The sql added a lockpick item to your database. It’s up to you to add it to a shop.

1 Like

A nice improvement would be to randomly set off car alarms and when that happens, that is when the police notify should happen.

1 Like

It would be nice to have the shops in the SQL. (would help us noobs out)

I have it working and it works well. One small problem is the horn just keeps going after you hotwire the car


All NPC cars appear unlocked :frowning:

in __resource.lua it is

client_scripts {
	'client/client.lua',
	'cfg.lua'
}

But it should be

client_scripts {
	'client/client.lua',
	'cfg/cfg.lua'
}

No it wouldn’t, ESX has a major learning curve. Developers should NOT make it easier for noobs. If you want to run ESX, you MUST learn how to do these things. ESX is not for the lazy. So, stop trying to lazy and learn how to administer your server. Don’t expect resource developers to do it for you.

I don’t apologize for sounding a bit harsh
 People want the popular framework, but don’t want to do the work to learn how to actually run the back end of it.

4 Likes

wow my bad. Gonna switch that up. Thanks

fair point.
I have not done much in coding other than translating mods to english but yes, time to learn more.

2 Likes

Still not working fine. Spawned cars yes but another no

i get this error now SCRIPT ERROR: @nyrp_hotwire/server/server.lua:17: attempt to index a nil value (global ‘cfg’)

after chaning the resource.lua to cfg/cfg.lua

and the car still works before even being hotwired

Make sure you’re not police or EMS

The script doesn’t have a system to automatically disable the engine. I have another script that does that. However I will add so that the it works for everyone. Thanks for the bug report

INSERT INTO shops (store, item, price) VALUES
(‘TwentyFourSeven’,‘lockpick’,30),
(‘LTDgasoline’,‘lockpick’,30),
(‘RobsLiquor’,‘lockpick’,30);

1 Like

thanks man ; let us know when its updated :smiley: or can you share that snippet you use to disable the cars?

1 Like

It’s updated.

1 Like