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: pojezdzie.
1. Zmiana światełek w pojezdzie.
Witam ponownie, tym razem postanowi?em sobie system do zmiany ?wiatelek napisa?, na te chwile jest na komendy poniewa? nie problem to przenie?? do jakiego? gui.
Server:
[lua]
addEvent("red", true)
addEventHandler("red", getRootElement(), function()
setVehicleHeadLightColor ( theVehicle, 255, 0, 0)
end)
[/lua]
Client:
[lua]
Marker = createMarker( 1871.1986083984, -1857.5452880859, 13.663543701172-0.9, 'cylinder', 2.0, 255, 0, 0, 150 )-- marker
function changeCarLightsColor( thePlayer )
outputChatBox ( "Aby zamontowa? swiat?a musisz u?y? jednej z poni?szych komend." )
outputChatBox ( "/swiatlared - Czerwone ?wiat?a", source )
outputChatBox ( "/swiatlaorange - Pomaranczowe ?wiat?a", source )
outputChatBox ( "/swiatlablack - Czarne ?wiat?a", source )
outputChatBox ( "/swiatlablue - Niebieskie ?wiat?a", source )
outputChatBox ( "/swiatlagreen - Zielone ?wiat?a", source )
end
addCommandHandler ("swiatla", changeCarLightsColor )


addEventHandler("onClientMarkerHit", Marker, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox ("Wpisz /swiatla aby ujrze? informacje, oraz cennik nt. monta?u ?wiate?", 250, 250, 250, true )
end)


function red( thePlayer )
triggerServerEvent ("red", thePlayer)
end
addCommandHandler ("swiatlared"...