sprixGG / esx_carlock

GNU General Public License v3.0
15 stars 16 forks source link

no vehicles to lock nearby #5

Open Nikolovski777 opened 4 years ago

Nikolovski777 commented 4 years ago

when i try to lock the car it says no vehicles no lock nearby help?

gaby commented 4 years ago

I'm also having the same issue, even after using the code from #4

gaby commented 4 years ago

Nevermind, I just updated my garage/vehicle shop to the Advanced ones and now these changes WORK 👍

HometownRP commented 4 years ago

Have the same prob

Splati commented 3 years ago

I have the advanced garage but also the error

TommieTankEngine commented 3 years ago

Update code to use the latest esx version. https://github.com/sprixGG/esx_carlock/pull/4/commits/719164cd6d60cbe3b87ca9549cd25e65fff60506

a3rgames commented 3 years ago

thank you @TommieTankEngine

JuampaZC commented 3 years ago

It worked for me but when I lock a vehicle the license plate appears "null"

Update code to use the latest esx version. 719164c

TommieTankEngine commented 3 years ago

It worked for me but when I lock a vehicle the license plate appears "null"

Update code to use the latest esx version. 719164c

Does the vehicle still lock?

JuampaZC commented 3 years ago

It works and it locks, what I mean is that in the message below on the left it appears "you opened your NULL vehicle"

It worked for me but when I lock a vehicle the license plate appears "null"

Update code to use the latest esx version. 719164c

Does the vehicle still lock?

TommieTankEngine commented 3 years ago

It works and it locks, what I mean is that in the message below on the left it appears "you opened your NULL vehicle"

It worked for me but when I lock a vehicle the license plate appears "null"

Update code to use the latest esx version. 719164c

Does the vehicle still lock?

This is not a issue with this script that is a issue with the car you are using with the script. I personally would remove the vehicle name.

TommieTankEngine commented 3 years ago

ESX.ShowNotification('You have ~r~locked~s~ your ~y~vehicle~s~.') ESX.ShowNotification('You have ~r~unlocked~s~ your ~y~vehicle~s~.')

JuampaZC commented 3 years ago

In mine it says: ESX.ShowNotification('You have ~r~locked~s~ your ~y~'..vehicleLabel..'~s~.') ESX.ShowNotification('You have ~g~unlocked~s~ your ~y~'..vehicleLabel..'~s~.')

ESX.ShowNotification('You have ~r~locked~s~ your ~y~vehicle~s~.') ESX.ShowNotification('You have ~r~unlocked~s~ your ~y~vehicle~s~.')

TommieTankEngine commented 3 years ago

Yes. That Is correct! But I would instead recommend that you use the two I previously posted so you can avoid any problems with the "NULL" vehicle.

JuampaZC commented 3 years ago

Thanks

Yes. That Is correct! But I would instead recommend that you use the two I previously posted so you can avoid any problems with the "NULL" vehicle.

MooseJawMike77 commented 2 years ago

I am using the newest esx legacy and I have tried updating the code but it still doesn't work. I keep getting a server callback error stating "carlock:isVehicleOwner" does not exist and it is telling to check server file for errors. What errors would I be looking for?