function re(player)
local veh = getPedOccupiedVehicle(player)
local freezestatus = isElementFrozen(veh)
if veh == speed then
if isPedInVehicle(player) then
if getPedOccupiedVehicleSeat(player) == 0 then
local x,y,z = getElementVelocity(veh)
if veh == (x^2 + y^2 + z^2) ^ 0.5 * 1.61* 110 then
local speed = 0
else
outputChatBox ( "W trakcie jazdy nie mo?na zaci?gn?c r?cznego!", player, 200, 0, 0 )
if freezestatus == false then
setElementFrozen(veh,true)
outputChatBox("Reczny zaci?gni?ty!", player, 200, 0, 0)
elseif freezestatus == true then
setElementFrozen(veh,false)
outputChatBox ( "R?czny spuszczony", player, 200, 0, 0 )
end
end
end
end
end
end
addCommandHandler("reczny",re)
function ble(player)
bindKey("n","down",re)
end
addEventHandler ( "onPlayerJoin", getRootElement(), ble)
Przed stworzeniem funkcji o nie freezowaniu podczas jazdy wszystko ?miga?o. Teraz natomiast mam problem gdy? nic si? nie dzieje a w debugu nie ma b??d?w. Bardzo prosz? o pomoc, oczywi?cie za odpowied? kt?ra mi pomo?e daj? zimne