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")
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)