--tworzenie colsphere
local colshape = createColSphere(-138.17485, 1079.58557, 19.15291, 5)
addEventHandler("onClientGUIClick", resourceRoot, function()
local pojazdy=getElementsWithinColShape(colshape,"vehicle")
if source == RH1.btncloseactive then
guiSetVisible(RH1.win, false)
elseif source == RH1.btnclosetxtactive then
guiSetVisible(RH1.win, false)
elseif source == RH1.btnmntactive then
setElementData(pojazdy, "RH1MOUNTED", true)
elseif source == RH1.btnmnttxtactive then
setElementData(pojazdy, "RH1MOUNTED", true)
elseif source == RH1.btndemntactive then
setElementData(pojazdy, "RH1MOUNTED", false)
elseif source == RH1.btndemnttxtactive then
setElementData(pojazdy, "RH1MOUNTED", false)
end
end)
i jak nada? t? element date dla pojazdu w tym colsphere?