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: pojeżdzie
1. Napis na pojeżdzie
Mam ju? taki kod z opisem

local auto1 = createVehicle ( 407, 1919.80066, 619.17474, 11.30033 ) --- FireTruck #1 PSP 21
setElementRotation ( auto1, 0, 0, 0)
setElementFrozen ( auto1, false )
setVehicleLocked ( auto1, false )
setVehicleColor ( auto1, 255, 0, 0)
addVehicleUpgrade ( auto1, 1025 )
setElementData(auto1, "pojazd_opis", "PSP 375[SF]21")


i mam vopis

 addCommandHandler("vopis", function(plr, cmd, ...)
        
local opis = table.concat(arg, " ")
        if (
string.len(opis)<3) then
            outputChatBox
("U?yj: /vopis <opis>, lub /vopis usun", plr)
            return
        
end
    
        local auto1 
= getPedOccupiedVehicle(plr)
    
        if (
not auto1) then
            outputChatBox
("Musisz by? w poje?dzie w kt?rym chcesz zmieni? opis.", plr, 255, 0, 0)
            return
        
end
    
        
if (opis=="usun" or opis=="USUN") then
            removeElementData
(auto1, "pojazd_opis")
        else
            
setElementData(auto1, "pojazd_opis", opis)
        
end
end
)


I nie wiem dlaczego nie pojawia si? opis na pojezdzie :'(