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: zapełnienia.
1. Nie pokazuje mi % zapełnienia. :)
Witam, mam problem z pewnym skryptem, mianowicie chodzi o to ze nie pokazuje mi % zape?nienia, pomo?e kto? to naprawi??
Kody:


-server
[lua]
local jobMarker
local jobVehicle
local jobOdbieranie = createMarker(1323.5300292969,1472.5004882813,10.8203125-1, "cylinder", 6, 0, 0, 255)


local positionTrash = {
{346.6647644043,2539.1455078125,16.75606918335},
{-1280.5670166016,-73.867202758789,14.1484375},
{1985.8670654297,-2395.0385742188,13.546875},
{1336.6829833984,1454.7218017578,10.8203125},
}

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end
if jobBlip and isElement(jobBlip) then
destroyElement(jobBlip)
jobBlip = nil
end
end

function hideNextPoint(el, md)
if el ~= localPlayer or not md then return end
if not getPedOccupiedVehicle(el) then return end
local pojazd = getPedOccupiedVehicle(el)
if not getElementData(pojazd, "pojazd_smieci") then setElementData(pojazd, "pojazd_smieci", 0) end

if getElementData(pojazd, "pojazd_smieci") > 100 then
outputChatBox("* Posiadasz 100% Towar?w Wro? Do Lotniska LV Aby Roz?adowa?.")
return
end

local smieci = getElementData(pojazd, "pojazd_smieci") + math.random(25, 35)

finishJob()
showNextPoint()
playSoundFrontEnd(12)
setElementData(pojazd, "...