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: naczemy
1. nie usuwa naczemy
Witam mam problem z usuni?ciem naczepy auto usuwa ale naczepy ju? nie.



local auto 
= createVehicle(515,-1733.19, 120.02, 4.60, 359.7, 0.0, 178.9)
local naczepa = createVehicle(435, -1733.75, 204.56, 3.26, 0.0, 360.0, 176.9)
function 
zakoncz_prace( auto , naczepa)
        
local cars = getAttachedElements(auto,naczepa)
       for 
i,v in pairs(cars) do
            if 
v and isElement(v) then destroyElement(v) end
        end
        setElementData
(source,"praca:truck",false)
        
destroyElement(auto)
        
destroyElement(naczepa)
end

Bad argument 
@ 'destroyElement' [Expected element at argument 1, got nil]