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: odholowywania
1. System odholowywania pojazdów
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)