hiii i just made perfect code for creating a marker and it doesnt create my perfect marker
local tuningMarkers = {
[1] = {488,-1743,12,"marker",1,255,0,0,255,12} -- garage 12;last argument
}
function onThisResStart() -- markers
for i = 1,#tuningMarkers do
local x,y,z,theType,size,r,g,b,a,garageID = unpack(tuningMarkers[i]) -- all variables carry correct data
marker = createMarker(x,y,z,theType,size,r,g,b,a)
outputDebugString(tostring(marker)) -- returns false
setElementData(marker,"garageID",garageID) -- returns marker doesn't exist
end
end
addEventHandler("onResourceStart",resourceRoot,onThisResStart)
help would be appreciated