forked from Simnation/Main
Update client.lua
This commit is contained in:
parent
da3859aa87
commit
7f5719377f
1 changed files with 4 additions and 1 deletions
|
@ -803,5 +803,8 @@ local entityEnumerator = {
|
|||
|
||||
RegisterKeyMapping("vehicleLock", "Vehicle Lock", "keyboard", "PAGEUP")
|
||||
RegisterCommand("vehicleLock", function()
|
||||
TriggerEvent("VKC:toggleLockOnPlayer")
|
||||
local vehicle = GetClosestVehicle(GetEntityCoords(PlayerPedId()), 10.0)
|
||||
if (DoesEntityExist(vehicle) and IsVehicleOrKeyOwner(vehicle)) then
|
||||
ToggleLock(vehicle, GetVehicleDoorLockStatus(vehicle) ~= LockStatus.Locked)
|
||||
end
|
||||
end, false)
|
Loading…
Add table
Add a link
Reference in a new issue