[Request] Draw a marker

Hello,

maybe it’s a stupid question, but
I’ve often tried to make it work.
How can i draw a marker? (not a blip on the map).

I made this:

Citizen.CreateThread(function()

while true do
		DrawMarker(1,131.14,-1302.6,29.23,0,0,0,0,0,0,2.001,2.0001,0.5001,0,155,255,200,0,0,0,0)
		marker = { r = 0, g = 155, b = 255, a = 200, type = 1 },  
   end
end)

I know, it seems silly, but i tried.
I hope someone can help me.

Bit of code I have for drawing some markers.

[code] Citizen.CreateThread(function()
while true do
Wait(0)
DrawMarker(2, coordsL.x, coordsL.y, coordsL.z+2, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0, 0.75, 0.75, 0.75, 255, 0, 0, 100, false, true, 2, false, false, false, false)
DrawMarker(2, coordsR.x, coordsR.y, coordsR.z+2, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0, 0.75, 0.75, 0.75, 0, 255, 0, 100, false, true, 2, false, false, false, false)

        DrawMarker(2, coordsA.x, coordsA.y, coordsA.z+2, 0.0, 0.0, 0.0, 180.0, 0.0, 0.0, 0.75, 0.75, 0.75, 0, 255, 0, 100, false, true, 2, false, false, false, false)
    end
end)

[/code]

1 Like

Also, just a little bite of info: If something says ‘float’, it needs to be a decimal value. Even if it is 0, it needs to be 0.0

So, I’ve got this about DrawMarker:

DrawMarker(type, x, y, z, dirX, dirY, dirZ, rotX, rotY, rotZ, scaleX, scaleY, scaleZ, colorR, colorG, colorB, alpha, bobUpAndDown, faceCamera, p19, rotate, textureDict, textureName, drawOnEnts)

AND

void DRAW_MARKER(int type, Any x, Any y, Any z, Any dir_x, Any dir_y, Any dir_z, Any rot_x, Any rot_y, Any rot_z, Any scale_x, Any scale_y, Any scale_z, Any r, Any g, Any b, int a, BOOL bob_up_and_down, BOOL face_camera, int p19, BOOL rotate, Any p21, Any p22, Any draw_on_ents) // 0x48D84A02

What are bobUpAndDown, p19, textureDict, textureName, drawOnEnts and what their values can be?

1 Like

Can someone explain how to get the cords to draw a marker like this.
DrawMarker(1,454.03,-1020.87,27.30,0,0,0,0,0,0,2.001,2.0001,0.5001,0,155,255,200,0,0,0,0)

You can get coords with mod, like “Show coordinates”

http://www.grandtheftauto5.fr/telechargements/mods/83-show-coordinates/

Rather than using a singleplayer mod, just download vmenu; There are developer options that will allow you to be able see your x, y, z and heading…

Citizen.CreateThread(function()

while true do
Citizen.Wait(2)
DrawMarker(1,131.14,-1302.6,29.23,0,0,0,0,0,0,2.001,2.0001,0.5001,0,155,255,200,0,0,0,0)
marker = { r = 0, g = 155, b = 255, a = 200, type = 1 },
end
end)

How can i do rainbow marker?

i need rebel cordinates

Your coords going here DrawMarker(1, 454.03,-1020.87,27.30

**