OhTanoshi / esx_drp_garage

Garage system for esx
17 stars 26 forks source link

Can spawn jobs vehicles, boats, etc. problem #38

Open tilexD opened 5 years ago

tilexD commented 5 years ago

Hello guys!

Im using esx_policejob and esx_ambulancejob. How can I disable taking out police and ambulance veh from garage intended for civilians?*? How can I remove those veh showing in garage menu for civilians? and also boats etc. Please help me :)

!!(I just want only vehicles purchased from dealership shows in garage menu)!!

slika

OhTanoshi commented 5 years ago

I never had this issue when i was using esx but. try using latest commit on the latest stable build

Dexterin0 commented 5 years ago

Happens to me as well. Did you find a fix for this ?

griush commented 4 years ago

Anyone has a fix?

MarsH98 commented 4 years ago

Hey!

You need to define the SQL calls so they'll only show the vehicles you want.

If you go to your drp_garage folder, open your /client/client.lua and your server/server.lua files.

Search for all the instances of: 'SELECT * FROM owned_vehicles WHERE owner=@identifier

and add this to the end: AND type="car" and job is null

should fix it :)