function lockcar(thePlayer)
playervehicle=getPlayerOccupiedVehicle(thePlayer);
if(playervehicle) then
if(isVehicleLocked(playervehicle)) then
setVehicleLocked(playervehicle,false);
outputChatBox("* Vehicle Unlocked",thePlayer,0,0,255);
else
setVehicleLocked(playervehicle,true);
outputChatBox("* Vehicle Locked",thePlayer,255,0,0);
end
end
end
function exit(player,seat,jacked)
if(isVehicleLocked(source)) then
setVehicleLocked(source,false);
outputChatBox("* Vehicle Unlocked",player,0,0,255);
end
end
function
bindKey("l","down",lockcar)
end
)
addEventHandler("onVehicleExit",getRootElement(),exit);
لم يتم التجربة