Jump to content

simple marker not being created


Recommended Posts

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

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...