Witam, prosz? o szybk? pomoc, chodzi o to ?e jak wjad? w marker montazu podswietlenia licznika laguje i nie pokazuje przyciskow z kolorami pod cena podswietlenia. Daje tu screena na ktorym rowniez widac blad w DB3: https://imgur.com/a/sUOHkZz
tutaj macie kod montowanie_c gdzie znajduje sie ten error.
[lua]--[[
--[[
Autor Skryptu: NexBoy
Zakaz Usuwania Autora i u?ywania tego kodu be? mojej zgody!
2016r
]]--
local screenW, screenH = guiGetScreenSize()
panelL = false
[b]Witam, mam ma?y problem mam sobie skrypt na gz chcia?bym ?eby po wjechaniu w marker i po wpisaniu "/zamontuj" odje?o graczowi 1000 PLN i da?o mu gz (rh1)
Da rade kto? mi to zwyk?y kod pod gz tak przerobi? xd ? lub wys?a? inny skrypt tak zrobiony xd ?[/b]
[code] 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
function o(c)
if c then
local gora = getElementData(c, "rh:up") or 0
local s=getVehicleHandlingProperty(c,"suspensionForceLevel")
if tonumber(gora) == 4 then outputChatBox("Osi?gn??e? limit regulacji zawieszenia!", getVehicleController(c), 255, 255, 255) cancelEvent() return end
setVehicleHandling(c,"suspensionForceLevel",tonumber(s) - 0.19)
setElementData(c, "rh:up", gora+1)
outputChatBox("Obni?y?e? auto k****",getVehicleController(c),255,255,255,true)
end
end
addEvent("rh:o", true)
addEventHandler("rh:o", root, o)
function p(c)
if c then
local gora = getElementData(c, "rh:up") or 0
local s=getVehicleHandlingProperty(c,"suspensionForceLevel")
...