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

Wysłany: 2018-02-27, 21:57


IgorPL222

LUA






Wiek: 26
Na forum: 3112 dni
Posty: 133
Nick w MP: mxgvr

Piwa: 746

Respekt: 55,3

Siema, pobra?em system lawet, i chcia?bym go pod??czy? do mojego systemu holowania pojazd?w na parking.
Macie jakie? pomys?y?
Poniewa? to nie dzia?a :(

addEventHandler("onMarkerHit",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD"then return end
local tow getElementAttachedTo veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:refresh",root,tow)
end)
addEventHandler("onMarkerLeave",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD"then return end
local tow getElementAttachedTo veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:chowaj",root)
end)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
MistrzMta
Wysłany: 2018-02-28, 15:50


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

"IgorPL222" napisał/a:

Siema, pobra?em system lawet, i chcia?bym go pod??czy? do mojego systemu holowania pojazd?w na parking.
Macie jakie? pomys?y?
Poniewa? to nie dzia?a :(

addEventHandler("onMarkerHit",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD"then return end
local tow getElementAttachedTo veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:refresh",root,tow)
end)
addEventHandler("onMarkerLeave",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD"then return end
local tow getElementAttachedTo veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:chowaj",root)
end)


Po prostu zr?b tak samo jak z systemem holowania. Zr?b podobne dzia?anie i b?dzie git :)

Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-02-28, 18:59


MistrzMta







Wiek: 25
Na forum: 3542 dni
Posty: 1
Nick w MP: Wodzu aka Bezimienny



Respekt: 50

"Ciastuu?" napisał/a:

"IgorPL222" napisał/a:

Siema, pobra?em system lawet, i chcia?bym go pod??czy? do mojego systemu holowania pojazd?w na parking.
Macie jakie? pomys?y?
Poniewa? to nie dzia?a :(

addEventHandler("onMarkerHit",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD"then return end
local tow getElementAttachedTo veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:refresh",root,tow)
end)
addEventHandler("onMarkerLeave",oddanie,function(el,md)
if getElementType(el) ~= "player" then return end
local veh getPedOccupiedVehicle(el)
if not veh then return end
if veh and getElementModel(veh) ~= 578 then return end
local duty getElementData(el,"player:duty")
if not duty or (duty and duty ~= "SAPD"then return end
local tow getElementAttachedTo veh )
if not tow then return end
triggerClientEvent(el,"glownyparking:chowaj",root)
end)


Po prostu zr?b tak samo jak z systemem holowania. Zr?b podobne dzia?anie i b?dzie git :)


M?g?by? wyt?umaczy? ja?niej?

Postaw piwo autorowi tego posta
 

 
Tagi: system :: odholowywania :: pojazdów
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