Wysłany: 2018-09-09, 14:45
krystek77
Wiek: 27 Na forum: 4031 dni Posty: 135
Nick w MP: Krystek
Piwa : 176
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 ( pojazd , 2 )
outputChatBox ( "* Uruchomi?e?/a? ?wiat?a." , plr )
else
setVehicleOverrideLights ( pojazd , 1 )
outputChatBox ( "* Zgasi?e?/a? ?wiat?a." , plr )
end
end
end )
C
bindKey ( "l" , "down" , function( key , keyState )
triggerServerEvent ( "uruchomSwiatla" , resourceRoot , localPlayer )
end )
Wysłany: 2018-09-09, 14:49
OchIAch
Wiek: 26 Na forum: 3114 dni Posty: 144
Nick w MP: OchIAch
Piwa : 1311
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 ( pojazd , 2 )
outputChatBox ( "* Uruchomi?e?/a? ?wiat?a." , plr )
return false
else
setVehicleOverrideLights ( pojazd , 1 )
outputChatBox ( "* Zgasi?e?/a? ?wiat?a." , plr )
return false
end
end
end )
Wysłany: 2018-09-09, 14:55
krystek77
Wiek: 27 Na forum: 4031 dni Posty: 135
Nick w MP: Krystek
Piwa : 176
"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 ( pojazd , 2 )
outputChatBox ( "* Uruchomi?e?/a? ?wiat?a." , plr )
return false
else
setVehicleOverrideLights ( pojazd , 1 )
outputChatBox ( "* Zgasi?e?/a? ?wiat?a." , plr )
return false
end
end
end )
Dalej to samo
Wysłany: 2018-09-09, 14:58
OchIAch
Wiek: 26 Na forum: 3114 dni Posty: 144
Nick w MP: OchIAch
Piwa : 1311
bindKey ( "l" , "down" , function( key , keyState )
if keyState ~= "down" then return false end
triggerServerEvent ( "uruchomSwiatla" , resourceRoot , localPlayer )
end )
Je?eli nie dzia?a to masz 2 razy to zbindowane
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
"OchIAch" napisał/a :
bindKey ( "l" , "down" , function( key , keyState )
if keyState ~= "down" then return false end
triggerServerEvent ( "uruchomSwiatla" , resourceRoot , localPlayer )
end )
Je?eli nie dzia?a to masz 2 razy to zbindowane
Taa by?o 2 razy juz sobie to zrobilem ale dzieki
Tagi: światla :: pojazdu
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: