Siemanko, Zn?w potrzebuje waszej pomocy mianowicie w mabako serwice z caomunity ;/ nie sa widoczen blipy nma f11 wiesz moze jak to ustawic? Dostalem system paczek, calkiem dobry, lecz gdy po kliknieciu zaladuj, pasek sie laduje i okno nie znika, natomiast pozniej nie mam twoaru na aucie, nie da sie go rozladowac :
To jest client.lua:
a to jest serwer .lua :
[quote]
addEvent("zaladuj", true)
addEventHandler("zaladuj", getRootElement(), function(player, towar, cel)
setElementData(player, "towar", tonumber(towar))
setElementData(player, "czas", false)
setElementData(player, "cel", tonumber(cel))
triggerClientEvent("msgBox", getRootElement(), player, "Zaladowales towar!")
setTimer(function() setElementData(player, "czas", true) triggerClientEvent("msgBox", getRootElement(), player, "Juz mozesz rozladowac towar!") end, 180000, 1)
end)
addEvent("rozladuj", true)
addEventHandler("rozladuj", getRootElement(), function(player)
local akt = getElementData(player, "towar")
if akt == 1 then
wyplata = math.random(100, 250)
end
if akt == 2 then
wyplata = math.random(300, 400)
end
if akt == 3 then
wyplata = math.random(500, 600)
end
if akt == 4 then
wyplata = math.random(600, 700)
end
if akt == 5 then
wyplata = math.random(1000, 1200)
end
if akt == 6 then
wyplata = math.random(800, 850)
end
if akt == 7 then
w... |