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: mechaniczny
1. Tuning mechaniczny
Pomoze kto? Chcia?em przerobi? sobie Tunera i wszystko dzia?a mk trakcje itd ale nie dzia?aj? pojemnosci i cylindry a b??d wyskakuje taki :
[lua]s_vehbuy.lua:436: bad argument #28 to 'format' (number expected, got string)[/lua]

[lua]s.lua:387: call: failed to call 'pystories-vehicles:onSaveVehicle' [string "?"][/lua]




[lua]elements = {}
elements["positions"] = {
["Tuning mechaniczny"]={
marker = {950.78, 1874.22, 10.85},
cuboid = {950.78, 1874.22, 10.85, 5},
}
}
--1575.76, -1392.81, 14.02
createBlip(950.78, 1874.22, 10.85, 27,2,0,0,0,0,0,275)--ls

local napis=createElement("text")
setElementData(napis, "name", "Tuning mechaniczny")
setElementPosition(napis, 950.78, 1874.22, 10.85)

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]-1, "cylinder", 5, 0,64,255,0)
createMarker(950.78, 1874.22, 10.85-4.5, "cylinder", 5, 0,64,255,75)
end

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

if getElementData(ccar, "vehicle:ownedPlayer") == getElementData(client, "player:sid") then
if hajs < cena then exports["np-notyfikacje"]:noti("Nie sta? Ci? aby zakupi? to ulepszenie!&q...
2. Tuning mechaniczny
Siema, mam problem ma?y. Podczas Pr?by monta?u Cylinder?w oraz Pojemno?ci silnika wyskakuje Error : https://imgur.com/a/39PZY82 wie kto? o co chodzi ?

a tu kod: [lua]addEvent("poj", true)
addEventHandler("poj", getRootElement(), function()
local hajs = getPlayerMoney(source)
local ccar = getPedOccupiedVehicle(source)
local cena = 30000

if getElementData(ccar, "vehicle:ownedPlayer") == getElementData(client, "player:sid") then
if hajs < cena then exports["np-notyfikacje"]:noti("Nie sta? ci? na te ulepszenie!", client, "error") return end
local id = getElementData(ccar, "vehicle:id")
if not id then exports["np-notyfikacje"]:noti("To nie jest pojazd prywatny!", client, "error") return end
if getElementData(ccar, "Pojemnosc:silnika") == "1.0" then
setElementData(ccar, "Pojemnosc:silnika", "1.2")
cancelEvent()
elseif getElementData(ccar, "Pojemnosc:silnika") == "1.2" then
setElementData(ccar, "Pojemnosc:silnika", "1.4")
cancelEvent()
elseif getElementData(ccar, "Pojemnosc:silnika") == "1.4" then
setElementData(ccar, "Pojemnosc:silnika", "1.6")
cancelEvent()
elseif getElementData(ccar, "Pojemnosc:silnika") == "1.6" then
setElementData(ccar, "Pojemnosc:silnika", "1.8")
...
3. Tuning mechaniczny
Przerobi mi kto? to aby po oddaniu do przecho nie usuwa?o si? mk?


function handling(gracz,cmd)
pojazd getPedOccupiedVehicle(gracz)
if 
pojazd then
local slock 
50.5 -- (Promien
local trac 1.0 -- (Przyczepno??)
  
local id getElementData(pojazd"vehicle:id")
  
exports["ogrpg-db"]:dbSet("UPDATE ogrpg_vehicles SET mk1=1 WHERE id=?"id)
setVehicleHandling(pojazd"tractionMultiplier"trac)
setVehicleHandling(pojazd"steeringLock"slock)
end
end 
addCommandHandler
("dodajmk1"handling)
4. Nie działający tuning mechaniczny
Witam!, wgra?em na sw?j serwer tuning mechaniczny, jest on zaznaczony w dw?ch pliczkach, "nitro_s" i "nitro_c", sprawa wygl?da tak ?e dzia?a jedynie MK1, Mk2, 4x4 a mk3 i gz niestety po zakupie nawet sie nie pojawia, a mam te info ?e zakupi?em i mam odda? do przecho, po czym wyjmuje i nie ma ;d jest jedynie mk1 mk2 4x4 pod spodem podsy?am kodzik tego, je?li kto? pom?g?by mi, to z g?ry dzi?kuje, b?d? wdzi?czny i wynagrodz? to zimnym :piwo:

to jest nitro_c)

[lua]
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(330, 200, 405, 460, "==>MONTOWANIE MK<==", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 0.83)

GUIEditor.button[1] = guiCreateButton(23, 37, 115, 58, "MK1n2,000,000 PLN", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")

GUIEditor.button[2] = guiCreateButton(145, 37, 115, 58, "MK2n4,000,000 PLN", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")

GUIEditor.button[3] = guiCreateButton(267, 37, 115, 58, "MK3n5,000,000 PLN", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "...
5. Tuning Mechaniczny
Witam, mam skrypt CL-TuningMechaniczny i poprostu polega na tym, ?e daje mk1,mk2 i mk3 lecz tak nie jest. Zabiera pieni?dze a tego nie daje. Wpis w konsoli:
[2017-06-10 20] ERROR: CL-TuningMechaniczny/TuningMechaniczny_s.lua:52: exports: Call to non-running server resource (1) [string "?"]


server
[lua] mk1 = 100000
mk2 = 150000
rh = 50000
maskowanie = 375000

local licz = {}
local t=createElement('text')
setElementData(t,'name','.createYourWorldnTuning mechaniczny')
setElementPosition(t,100.85, -191.72, 1.61+0.5)

local t=createElement('text')
setElementData(t,'name','.createYourWorldnTutaj powstaje stanowiskontuningu wizualnego!')
setElementPosition(t,100.00, -156.24, 2.60+0.5)

addEvent("mk1", true)
addEventHandler("mk1", root, function()
pojazd = getPedOccupiedVehicle(source)
if not pojazd then return end
if (getPlayerMoney(source) > tonumber(mk1)) then
local id = getElementData(pojazd, "vehicle:id")
exports["ogrpg-db"]:dbSet("UPDATE ogrpg_vehicles SET um1=1 WHERE id=?", id)
exports["1"]:outputNotificationBox (source, "#00ff00Pomy?lnie zamontowano #00ccccFiltr sto?kowy#00cc00. Oddaj auto do przecho aby zobaczy? efekty!", source,true)
takePlayerMoney( source, mk1 )
else
exports["1"]:outputNotificationBox (source, "#ff0000Masz za ma?o pieni?dzy, ?eby kupi? Filtr sto?kowy!")
end
end
)

addEvent("mk2", true)
addEven...