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: mechaniczne
1. Tune Mechaniczne nie dziala
Cze?? mam problem z tune mechanicznym z gm crpg dok?adnie problem istnieje w tym ?e jak chce co? kupi? to nie pobiera pieni?dzy i nie jest dodane do pojazdu.
DB3: [img]https://imgur.com/a/gD6ZCmF[/img]

Kody

Server:

[lua]--[[
Autor: Asper
Dla: .newMode
Skrypt: Tuning v?w
Typ: Server
]]

function getVehicleHandlingProperty ( element, property )
if isElement ( element ) and getElementType ( element ) == "vehicle" and type ( property ) == "string" then
local handlingTable = getVehicleHandling ( element )
local value = handlingTable[property]

if value then
return value
end
end

return false
end

local marker = createMarker(2483.53, 1754.61, 10.82-3, "cylinder", 5, 255, 0, 0, 100)
local blip = createBlip(2496.00, 1761.14, 10.82, 23,2,255,0,0,255,0,100) -- PILGRIM LV

addEvent("mTuning", true)
addEventHandler("mTuning", root, function(v, i, c)
if not v and not i and not c then return end
local hand = getVehicleHandlingProperty(v, "driveType")
local hajs = getElementData(source, "pieniadze")
local bak = getElementData(v, "bak")
bak = tonumber(bak)
if i == "Zawieszenie hydrauliczne" then
if getElementData(v, "zawieszenie") then
local cx = c/2
cx = string.format("%1.2f", cx)
setElementData(source, "pieniadze", hajs+cx)
exports["nm-noti"...