Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-09-09, 14:45


krystek77







Wiek: 27
Na forum: 4031 dni
Posty: 135
Nick w MP: Krystek

Piwa: 176

Respekt: 125,3
Respekt: 125,3

Witam co tutaj jest nie tak ? lampy nie swieca ale klikajac L jest ze zapalam i gasze jednoczesnie ....

addEvent("uruchomSwiatla"true)
addEventHandler("uruchomSwiatla"root, function(plr)
    local pojazd getPedOccupiedVehicle(plr)
    if pojazd and getVehicleController(pojazd) == plr then
        if getVehicleOverrideLights(pojazd) ~= 2 then
            setVehicleOverrideLights(pojazd2)
            outputChatBox("* Uruchomi?e?/a? ?wiat?a."plr)
        else
            setVehicleOverrideLights(pojazd1)
            outputChatBox("* Zgasi?e?/a? ?wiat?a."plr)
        end
    end
end)


C


bindKey("l""down", function(keykeyState)
    triggerServerEvent("uruchomSwiatla"resourceRootlocalPlayer)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-09, 14:49


OchIAch







Wiek: 26
Na forum: 3114 dni
Posty: 144
Nick w MP: OchIAch

Piwa: 1311

Respekt: 105,3
Respekt: 105,3

Ostrzeżeń: 100%
addEvent("uruchomSwiatla"true)
addEventHandler("uruchomSwiatla"root, function(plr)
    local pojazd getPedOccupiedVehicle(plr)
    if pojazd and getVehicleController(pojazd) == plr then
        if getVehicleOverrideLights(pojazd) ~= 2 then
            setVehicleOverrideLights(pojazd2)
            outputChatBox("* Uruchomi?e?/a? ?wiat?a."plr)
            return false
        else
            setVehicleOverrideLights(pojazd1)
            outputChatBox("* Zgasi?e?/a? ?wiat?a."plr)
            return false
        end
    end
end)


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-09, 14:55


krystek77







Wiek: 27
Na forum: 4031 dni
Posty: 135
Nick w MP: Krystek

Piwa: 176

Respekt: 125,3
Respekt: 125,3

"OchIAch" napisał/a:

addEvent("uruchomSwiatla"true)
addEventHandler("uruchomSwiatla"root, function(plr)
    local pojazd getPedOccupiedVehicle(plr)
    if pojazd and getVehicleController(pojazd) == plr then
        if getVehicleOverrideLights(pojazd) ~= 2 then
            setVehicleOverrideLights(pojazd2)
            outputChatBox("* Uruchomi?e?/a? ?wiat?a."plr)
            return false
        else
            setVehicleOverrideLights(pojazd1)
            outputChatBox("* Zgasi?e?/a? ?wiat?a."plr)
            return false
        end
    end
end)



Dalej to samo

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-09, 14:58


OchIAch







Wiek: 26
Na forum: 3114 dni
Posty: 144
Nick w MP: OchIAch

Piwa: 1311

Respekt: 105,3
Respekt: 105,3

Ostrzeżeń: 100%

bindKey("l""down", function(keykeyState)
    if keyState ~= "down" then return false end
    triggerServerEvent("uruchomSwiatla"resourceRootlocalPlayer)
end)


Je?eli nie dzia?a to masz 2 razy to zbindowane

Podpis
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
krystek77
Wysłany: 2018-09-09, 15:00


krystek77







Wiek: 27
Na forum: 4031 dni
Posty: 135
Nick w MP: Krystek

Piwa: 176

Respekt: 125,3
Respekt: 125,3

"OchIAch" napisał/a:


bindKey("l""down", function(keykeyState)
    if keyState ~= "down" then return false end
    triggerServerEvent("uruchomSwiatla"resourceRootlocalPlayer)
end)


Je?eli nie dzia?a to masz 2 razy to zbindowane


Taa by?o 2 razy juz sobie to zrobilem ale dzieki :)

Postaw piwo autorowi tego posta
 

 
Tagi: światla :: pojazdu
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku