TanguyOrtegat / esx_jb_eden_garage2

41 stars 50 forks source link

Job vehicle into civil garage #46

Closed Rubylium closed 5 years ago

Rubylium commented 5 years ago

Not really an issue but an request. It will be very cool to see an option to not display job vehicle into civil garage.

For exemple if i buy my LSPD vehicle, i will also see the vehicle into all civil garage.

About the SQL fetchAll i tried doing SELECT * FROM owned_vehicles WHERE owner = @identifier AND job IS NULL, it work greate and do not display,job vehicles but i can not spawn the vehicles anymore.

Hope you understand me :)

TanguyOrtegat commented 5 years ago

there is no need for job column. script is already made so that it can handle society (job) vehicles. Instead on steam... in owner column you wil have police or ambulance or ...

You just need to trugger these events: https://github.com/TanguyOrtegat/esx_jb_eden_garage2/blob/master/esx_jb_eden_garage2_cl.lua#L832

TanguyOrtegat commented 5 years ago

image here you have an example ^^