I’m making a function that effectively adds a custom blip on the map, however I ran into an issue with the GetEntityCoords function - the result of the function IS correct, but for some reason, when I try to pass it into my addBlip function, I get a weird error. The function works without a problem when I manually specify the coords at which to place the blip…
command event: https://pastebin.com/WJsdmW9M (the pos.x printed out is correct)
addblip function: https://pastebin.com/Rr1mSbG9
when I add coords to the command manually (so the script doesn’t call GetEntityCoords), the blip gets added without a problem, it’s the Vector3 returned by GetEntityCoords that creates and issue