John Smith Posted May 11, 2015 Share Posted May 11, 2015 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
Dimos7 Posted May 11, 2015 Share Posted May 11, 2015 (edited) there not type marker its cylinder, arrow, checkpoint, ring, corona marker = createMarker(488, -1743, 12, "cylinder", 1, 255, 0, 0, 255) setElementData(marker, "garageID", 12) Edited May 11, 2015 by Guest Link to comment
John Smith Posted May 11, 2015 Author Share Posted May 11, 2015 Ohhhh i made such an embarrassing mistake.. Thanks Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now