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: możliwośći
1. Usuwanie możliwośći tp do przecho
Witam ot?? usuniecie mi linijki kt?re teleportuj? pojazd do przecho po zamontowaniu neon?w?
kod

defs_c.lua
[lua]function isEventHandlerAdded(sEventName, pElementAttachedTo, func)
if type(sEventName) == 'string' and isElement(pElementAttachedTo) and type(func) == 'function' then
local aAttachedFunctions = getEventHandlers(sEventName, pElementAttachedTo)
if type(aAttachedFunctions) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs(aAttachedFunctions) do if v == func then return true end end end
end return false
end

function secondsToClock(seconds)
seconds = seconds or 0
if seconds <= 0 then
return "00:00:00"
else
hours = string.format("%02.f", math.floor(seconds/3600))
mins = string.format("%02.f", math.floor(seconds/60 - (hours*60)))
secs = string.format("%02.f", math.floor(seconds - hours*3600 - mins *60))
return ""..hours.." godzin "..mins
end
end[/lua]

s.lua

[lua]elements = {}
elements["positions"] = {
["EZ 3"]={
marker = {-2138.74, -110.33, 34.88},
cuboid = {-2138.74, -110.33, 34.88, 4},
text = "Monta? wzmocnie?"
},
}

local napis=createElement("text")
setElementData(napis, "name", "Montarz PaintJob'anCena 5kk")
setElementPosition(napis, -2138.74, -110.33, 34.88)

for i,v in pairs(elements["positions"]) do
v.cuboid = ColShape.Sphere(unpack(v.cuboid))
v.ma...