You guys can try this one [Release] [Stand-alone] aCarLock 1.2 [LUA]
Hi all as any one found out how to add sound to locking the car or do any one know were default lock sounds files are in fivem so i can change them
Can you add the Jobs for this script ?
Hi, I have a problem telling me that there is no vehicle nearby
Check the script Pull Request. I already fixed this
Thanks for the fix!!
would be awesome if you could add a /givekeys command so we can give keys to other players. thanks alot!!! awesome mod
how do you get this to work with addon cars as all it say is you have locked you null!
Can somebody help me to apply this script to rgz_menu?
I really don’t know how to trigger this script inside another script. Don’t se a AddEventHandler
Hey all! i have a problem , when i pres - U to lock car it shows - no vehicles to lock nearby, any ideas?
Hey, I have the same problem. I also have the error
Failed to load script @mysql-async/lib/MySQL.lua
Same error for me ^^
how can i do this that the vehicles names are from my car dealership and not the vehicellabel cause is addons cars there satnd everytime NULL
Same prob
help me
Hi, how do u fix it?
I have this prolem
I got the same problem, some one know how to fix it ?
If we can /givekeys too will be perfect
Hey to fix no vehicles to lock nearby you have to change server.lua and replace this code:
local identifier = GetPlayerIdentifier(source, 0)
MySQL.Async.fetchAll('SELECT owner FROM owned_vehicles WHERE owner = @owner AND plate = @plate', {
['@owner'] = identifier,
['@plate'] = plate
}, function(result)
if result[1] then
cb(result[1].owner == identifier)
else
cb(false)
end
end)
with this
local xPlayer = ESX.GetPlayerFromId(source)
MySQL.Async.fetchAll('SELECT 1 FROM owned_vehicles WHERE owner = @owner AND plate = @plate', {
['@owner'] = xPlayer.identifier,
['@plate'] = plate
}, function(result)
cb(result[1] ~= nil)
end)
Please help this my problem. I copy the row 20. Thanks the help. and sry my bad english
local plate = string.lower(plate) <<<<This is line 20
And this:
RegisterServerEvent(“SOSAY_Locking:CheckOwnership”)
AddEventHandler(“SOSAY_Locking:CheckOwnership”, function(vehNet, plate)
local src = source
local plate = string.lower(plate)
for i = 1, #vehicleOwners do
if vehicleOwners[i].netid == vehNet then
if vehicleOwners[i].owner == src then
if vehicleOwners[i].plate == plate then
TriggerClientEvent("SOSAY_Locking:ToggleOutsideLock", src, vehNet, true)
end
end
end
end
TriggerClientEvent("SOSAY_Locking:ToggleOutsideLock", src, vehNet, false)
end)