local pojazdyPubliczne = {
{448, -32.09884262085,1185.3681640625,19.359375,359.5,360.0,178.8},
}
for i,v in ipairs(pojazdyPubliczne) do
local pojazd = createVehicle(v[1], v[2], v[3], v[4], v[5], v[6], v[7])
setElementData(pojazd, "pojazd_opis", "Praca Dorywcza\nDostawca Pizzy")
setElementFrozen(pojazd, true)
setElementData(pojazd, "pojazd_paliwo", 100)
setVehicleEngineState ( pojazd, false )
end
addEventHandler("onVehicleEnter", resourceRoot, function(plr, seat)
if seat == 0 then
setElementFrozen(source, false)
setElementData(source, "pojazd_opis", "Dostawca Pizzy")
end
end)
function respawnVehicles()
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
if not getVehicleOccupant(v) then
respawnVehicle(v)
setElementFrozen(v, true)
setElementData(v, "pojazd_opis", "Praca Dorywcza\nDostawca Pizzy")
setElementData(v, "pojazd_paliwo", 100)
setVehicleEngineState ( v, false )
end
end
end
setTimer(respawnVehicles, 70000, 0)
addEvent("takePlayerMoney", true)
addEventHandler("takePlayerMoney", root, function(money)
if not tonumber(money) then return end
takePlayerMoney(source, tonumber(money))
end)
addEvent("givePlayerMoney", true)
addEventHandler("givePlayerMoney", root, function(money)
if not tonumber(money) then return end
givePlayerMoney(source, money)
end)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach