Error in console fivem from drawMarker

Hello everyone, I wanted to see how drawmarker worked and I made a script for draw a marker at Legion Square but I get this error. Can someone help me please.


Hmm - my initial guess would be that it has to do with one of the last two string / char-pointer arguments you’re using. When testing natives, I like going as ‘bland’ as possible to test the limits. Try setting the ‘golfputting’ and ‘puttingmarker’ strings to nil

If that works, run a github search for the string “DrawMarker” in lua (Requires an account).
Another thing I’d try to get it barebones is to take it out of the for loop or any other enclosing code so that you can isolate any potentially erroneous code leading up to that point…

Thanks man it Works!!!


1 Like

That’s absolutely fantastic! Can’t wait to see the final product! Happy building! <3