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: ulepszanie
1. Ulepszanie mki bankomat
Witam chcialbym zrobic tak aby pobieralo hajs z banku zamiast z gotowki w skrypcie na mk
s.lua
[lua]
elements = {}
elements["positions"] = {
["EZ 1"]={
marker = {1249.42, -1824.18, 13.41},
cuboid = {1249.42, -1824.18, 13.41, 5},
text = "Monta? wzmocnie?"
}
}

local napis=createElement("text")
setElementData(napis, "name", "Dost?pne ulepszenian(brak mo?liwo??i demonta?u)nnUlepszenie silnika - 50kknUlepszenie silnika - 99kknNitro sta?e - 90kk")
setElementPosition(napis, 1249.42, -1824.18, 13.5)

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", 3, 32, 64, 128, 50)
end

addEvent("mk1", true)
addEventHandler("mk1", getRootElement(), function()
local hajs = getPlayerMoney(source)
local ccar = getPedOccupiedVehicle(source)
local cena = 50000000

if getElementData(ccar, "vehicle:ownedPlayer") == getElementData(client, "player:sid") then
if hajs < cena then triggerClientEvent(client, "onClientAddNotification", client, "Nie sta? Ci? aby zakupi? to ulepszenie!", "error") return end
local id = getElementData(ccar, "vehicle:id")
if not id then triggerClientEvent(client, "onClientAddNotification", client, "To nie jest pojazd prywatny!", "error...
2. ulepszanie pojemność
tworz? sobie sktypt na tuning pojemno?? ale jest jeden problem pojemno?? si? nie zmienia


sil1cena 
---neony czerwone cena

local t
=createElement("text")
setElementData(t"name""Zmiana pojemno??.")
setElementPosition(t, -534.77, -1026.8624.30)


local licz = {}
addEvent("sil1"true)
addEventHandler("sil1"root, function(plr)
pojazd getPedOccupiedVehicle(source)
if 
not pojazd then return end
if (getPlayerMoney(source) > tonumber(sil1cena)) then
    setElementData
(pojazd"vehicle:pojemnosc"10)
    
local sil1=exports["tiyl-db"]:dbSet("UPDATE tiyl_pojazdy SET pojemnosc=10 WHERE id=?"id)
    
takePlayerMoneysourcesil1cena )
    
outputChatBox("* Pomy?lnie zmieniono pojemnosc."source,true)
    else
     
outputChatBox("* Nie sta? Ci? na to."source,true)
end
end
)
3. [DM] Poziomy i ulepszanie umiejętności
Cze??.
Chc? zrobi? aby na serwerze za punkty si? ulepsza?o ?ycie czy armora.
Oczywi?cie ulepszanie za respekt czy mo?na by bylo co? innego zrobi? ni? respekt ale ?eby by?y punkty.