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: getvehicletowedbyvehicle
1. Bad argument @ 'getVehicleTowedByVehicle' #2
Siemka !

Mam problem z funkcj? getVehicleTowedByVehicle. Przy za?adunku towaru, pakuje si? on raczej do przyczepy, ale gdy wyjd? z ci??ar?wki to wyskakuje ten b??d co w temacie.

http://pastebin.com/Xan1DJS3
2. Bad argument @ 'getVehicleTowedByVehicle'
Witam !!

Mam problem zwi?zany z funkcj? getVehicleTowedByVehicle.

[lua]
function system(hitElement)
local vehicle = getPedOccupiedVehicle(hitElement)
if destmarker then
if vehicle then
if rozl_licznik == 0 then
playerPoints = getElementData(hitElement, "Pkt")
local trucks_ids = trucks[getElementModel(vehicle)]
local trailers_ids = trailers[getElementModel(vehicle)]
if vehicle_ids[getElementModel(vehicle)] or getVehicleTowedByVehicle( trucks_ids ) == trailers_ids then
local jobstat = getElementData(vehicle, "praca2")
if jobstat == false then
guiSetVisible(oknotoww, true)
showCursor(true)
for k, v in ipairs ( towary ) do
guiSetEnabled ( kupuj [ k ], ( playerPoints >= v [ 3 ] ) )
end
else
rozladunek()
end
else
outputChatBox("To nie jest pojazd dostawczy!", hitElement, 0, 255, 0)
end
else
outputChatBox("Jeszcze nie mo?esz za?adowa?/roz?adowa? towaru!", hitElement)
end
else
outputChatBox("Aby za?adowa?/roz?adowa? towar musisz mie? pojazd!", hitElement, 0, 255, 0)
end
end
end
addEventHandler( "onClientMarkerHit", resourceRoot, system )
[/lua]

[ Dodano : 2012-10-29, 16:08 ]
[lua]
local vehicle_ids = {
[524] = true, -- Cement Truck
[578] = true, -- DFT-30
[414] = true, -- Mule
[440] = true, -- Rumpo
...