Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pronlem
1. pronlem
witam mam Problem z Panelem dziala i wogle ale Rowerem nie mo?na jezdzic
S.lua

[lua]--[[
Author: AteX<[email protected]>
]]--

addEvent("silnik", true)
addEventHandler("silnik", root, function()
local pojazd = getPedOccupiedVehicle(source)
if pojazd then
local engine = getVehicleEngineState(pojazd)
if engine == false then
setVehicleEngineState(pojazd, true)
else
setVehicleEngineState(pojazd, false)
end
end
end)

addEvent("?›wiat?‚a", true)
addEventHandler("?›wiat?‚a", root, function()
local pojazd = getPedOccupiedVehicle(source)
if pojazd then
if getVehicleOverrideLights(pojazd) ~= 2 then
setVehicleOverrideLights(pojazd, 2)
else
setVehicleOverrideLights(pojazd, 1)
end
end
end)

addEvent("drzwi", true)
addEventHandler("drzwi", root, function()
local pojazd = getPedOccupiedVehicle(source)
if pojazd then
local drzwi = isVehicleLocked(pojazd)
if drzwi == true then
setVehicleLocked(pojazd, false)
else
setVehicleLocked(pojazd, true)
end
end
end)

addEvent("r?™czny", true)
addEventHandler("r?™czny", root, function()
local pojazd = getPedOccupiedVehicle(source)
if pojazd then
local sx,sy,sz = getEle...