客户端代码
vehicle = GetVehiclePedIsIn(ped, false)
local roll = GetEntityRoll(vehicle)
if (roll > 75.0 or roll < -75.0) and GetEntitySpeed(vehicle) < 2 then
DisableControlAction(2,59,true) -- Disable left/right
DisableControlAction(2,60,true) -- Disable up/down
end
|