Vehicle locked/unlocked
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Triggered when the vehicle lock has been toggled
RegisterNetEvent("vehicles_keys:vehicleLockChanged", function(vehicle, isLocked)
end)
vehicle
int
Vehicle handle
isLocked
bool
If now the vehicle is locked or not
RegisterNetEvent("vehicles_keys:vehicleLockChanged", function(vehicle, isLocked)
print("The vehicle " .. vehicle .. " is now " .. (isLocked and "locked" or "unlocked"))
end)
You can place it in the file integrations/cl_integrations.lua
of the script, at the bottom of the file on new lines