Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-03-24, 17:25


Rumper

Majster od pysa






Wiek: 15
Na forum: 3315 dni
Posty: 231
Nick w MP: Rumper

Piwa: 592

Respekt: 180
Respekt: 180Respekt: 180

Ostrzeżeń: 20%
Witam,bo mam taki problem ?e mam skrypt eazy tuning shop z its you world 2k17
i jak wjade do markeru i klikam np zamontuj 4x4 to potem mi pisze ?e jest w przecho a go nie ma nigdze.
Za pomoc daje :piwo:
KOD:
elements = {}
elements["positions"] = {
    ["EZ 3"]={
        marker = {-2124.25, -166.1335.32},
        cuboid = {-2124.25, -166.1335.324},
        text "Monta? wzmocnie?"
    },
}

local napis=createElement("text")
setElementData(napis"name""Lakiernia specjalna\n\nPaintjob (0-3) - 50k - 100k\nPaintjob (x) - 30k")
setElementPosition(napis, -2124.25, -166.1335.32)

for i,v in pairs(elements["positions"]) do
    v.cuboid ColShape.Sphere(unpack(v.cuboid))
    v.marker Marker(v.marker[1], v.marker[2], v.marker[3]-0.90"cylinder"3000100)
end

addEvent("pj0"true)
addEventHandler("pj0"getRootElement(), function()
    local hajs getPlayerMoney(source)
    local ccar getPedOccupiedVehicle(source)
    local cena 50000
    
    if getElementData(ccar"vehicle:ownedPlayer") == getElementData(client"player:sid"then
    if hajs cena then triggerClientEvent(client"onClientAddNotification"client"Nie sta? Ci? aby zakupi? tej PaintJob!""error") return end
    local id getElementData(ccar"vehicle:id")
    if not id then triggerClientEvent(client"onClientAddNotification"client"To nie jest pojazd prywatny!""error") return end
    local pj getVehiclePaintjob(ccar)
    if pj == 0 then triggerClientEvent(client"onClientAddNotification"client"Posidasz ju? ten paintjob!""error") return end
    setVehiclePaintjob(ccar0)
    takePlayerMoney(sourcecena)
    exports["pystories-db"]:dbSet("update pystories_logs set ile=ile+1 where usluga=? limit 1""pj0")
    else
        triggerClientEvent(client"onClientAddNotification"client"To nie jest Tw?j pojazd!""warning")
    end
end)

addEvent("pj1"true)
addEventHandler("pj1"getRootElement(), function()
    local hajs getPlayerMoney(source)
    local ccar getPedOccupiedVehicle(source)
    local cena 65000
    
    if getElementData(ccar"vehicle:ownedPlayer") == getElementData(client"player:uid"then
    if hajs cena then triggerClientEvent(client"onClientAddNotification"client"Nie sta? Ci? aby zakupi? tej PaintJob!""error") return end
    local id getElementData(ccar"vehicle:id")
    if not id then triggerClientEvent(client"onClientAddNotification"client"To nie jest pojazd prywatny!""error") return end
    local pj getVehiclePaintjob(ccar)
    if pj == 1 then triggerClientEvent(client"onClientAddNotification"client"Posidasz ju? ten paintjob!""error") return end
    setVehiclePaintjob(ccar1)
    takePlayerMoney(sourcecena)
    exports["pystories-db"]:dbSet("update pystories_logs set ile=ile+1 where usluga=? limit 1""pj1")
    else
        triggerClientEvent(client"onClientAddNotification"client"To nie jest Tw?j pojazd!""warning")
    end
end)

addEvent("pj2"true)
addEventHandler("pj2"getRootElement(), function()
    local hajs getPlayerMoney(source)
    local ccar getPedOccupiedVehicle(source)
    local cena 75000
    
    if getElementData(ccar"vehicle:ownedPlayer") == getElementData(client"player:sid"then
    if hajs cena then triggerClientEvent(client"onClientAddNotification"client"Nie sta? Ci? aby zakupi? tej PaintJob!""error") return end
    local id getElementData(ccar"vehicle:id")
    if not id then triggerClientEvent(client"onClientAddNotification"client"To nie jest pojazd prywatny!""error") return end
    local pj getVehiclePaintjob(ccar)
    if pj == 2 then triggerClientEvent(client"onClientAddNotification"client"Posidasz ju? ten paintjob!""error") return end
    setVehiclePaintjob(ccar2)
    takePlayerMoney(sourcecena)
    exports["pystories-db"]:dbSet("update pystories_logs set ile=ile+1 where usluga=? limit 1""pj2")
    else
        triggerClientEvent(client"onClientAddNotification"client"To nie jest Tw?j pojazd!""warning")
    end
end)

addEvent("pj3"true)
addEventHandler("pj3"getRootElement(), function()
    local hajs getPlayerMoney(source)
    local ccar getPedOccupiedVehicle(source)
    local cena 100000
    
    if getElementData(ccar"vehicle:ownedPlayer") == getElementData(client"player:uid"then
    if hajs cena then triggerClientEvent(client"onClientAddNotification"client"Nie sta? Ci? aby zakupi? tej PaintJob!""error") return end
    local id getElementData(ccar"vehicle:id")
    if not id then triggerClientEvent(client"onClientAddNotification"client"To nie jest pojazd prywatny!""error") return end
    local pj getVehiclePaintjob(ccar)
    if pj == 3 then triggerClientEvent(client"onClientAddNotification"client"Posidasz ju? ten paintjob!""error") return end
    setVehiclePaintjob(ccar3)
    takePlayerMoney(sourcecena)
    exports["pystories-db"]:dbSet("update pystories_logs set ile=ile+1 where usluga=? limit 1""pj3")
    else
        triggerClientEvent(client"onClientAddNotification"client"To nie jest Tw?j pojazd!""warning")
    end
end)

addEvent("pjx"true)
addEventHandler("pjx"getRootElement(), function()
    local hajs getPlayerMoney(source)
    local ccar getPedOccupiedVehicle(source)
    local cena 30000
    
    if getElementData(ccar"vehicle:ownedPlayer") == getElementData(client"player:uid"then
    if hajs cena then triggerClientEvent(client"onClientAddNotification"client"Nie sta? Ci? aby zakupi? tej PaintJob!""error") return end
    local id getElementData(ccar"vehicle:id")
    if not id then triggerClientEvent(client"onClientAddNotification"client"To nie jest pojazd prywatny!""error") return end
    setVehiclePaintjob(ccar3)
    takePlayerMoney(sourcecena)
    exports["pystories-db"]:dbSet("update pystories_logs set ile=ile+1 where usluga=? limit 1""pjx")
    else
        triggerClientEvent(client"onClientAddNotification"client"To nie jest Tw?j pojazd!""warning")
    end
end)


Postaw piwo autorowi tego posta
 

 
Tagi: zbagowane :: eazy :: shop :: paczce :: its :: you :: world :: 2k17
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Zbagowane eazy shop w paczce its you world 2k17 Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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
Dodaj temat do Ulubionych
Wersja do druku