[lua] local w,h = guiGetScreenSize()
local rowery = {[509]=true,[481]=false,[510]=true}
function gui()
local v = getPedOccupiedVehicle(localPlayer)
local x,y,z = getElementPosition(v)
r = getGroundPosition(x,y,z)
if getVehicleOverrideLights(v) ~= 2 then
w1 = "Zapal swiatla"
else
w1 = "Zgas swiatla"
end
local silnik = getVehicleEngineState(v)
if silnik == false then
w2 = "Zapal silnik"
else
w2 = "Zgas silnik"
end
w3 = "Wysad? pasa?er?w"
if isElementFrozen(v) then
w4 = "Spusc reczny"
else
w4 = "Zaciagnij reczny"
end
if getVehicleDoorOpenRatio(v,0) == 0 then
w5 = "Otworz maske"
else
w5 = "Zamknij maske"
end
if getVehicleDoorOpenRatio(v,1) == 0 then
w6 = "Otworz bagaznik"
else
w6 = "Zamknij bagaznik"
end
r1,r2,r3,r4,r5,r6 = 0.9,0.9,0.9,0.9,0.9,0.9
local wybor = getElementData(localPlayer,"wybor")
if wybor == 1 then
r1 = 1.5
elseif wybor == 2 then
r2 = 1.2
elseif wybor == 3 then
r3 = 1.2
elseif wybor == 4 then
r4 = 1.2
elseif wybor == 5 then
r5 = 1.2
elseif wybor == 6 then
r6 = 1.5
end
local sx,sy,sz = getElementVelocity(v)
local kmhs = math.ceil(((sx^2+sy^2+sz^2)^(0.5))*155)
if kmhs < 20 then
setElementData(localPlayer,"maxwybor",6...