[HELP] Flying Drawmarker

Hi there,

Got a problem on my Drawmarkers, they all Fly :confused: Any idea on how to put them on the ground ? :slight_smile:

	DrawMarker(1, 306.567, -3232.601, 5.86, 0, 0, 0, 0, 0, 0, 2.001, 2.0001, 0.5001, 0, 155, 255, 200, 0, 0, 0, 0)
		-- Affiche Marqueur pour faire spawn
		if GetDistanceBetweenCoords(306.567, -3232.601, 5.86, GetEntityCoords(LocalPed())) < 1 then

Any help will be welcomed. Thanks :slight_smile:

They are all 1 meter in the air, thats the center of your character, I usually lower the Z value by 1, I do wonder however if they is a setting to β€œstick to ground” or something.

1 Like

So in this case, i have to put 4.86 instead of 5.86. Thanks for the advice, I’ll try that and come back to tell if it’s good :slight_smile:
Think that it can help a lot of people :slight_smile:

1 Like

Yup but sometimes -1 is a bit much I adjust by .50 so part of the marker isn’t below ground. But you get the picture 1 maybe on the money. Happens sometimes

1 Like

β€œ-1” on β€œz” coord works great for me :slight_smile:

Thnaks for your help guys :slight_smile:

1 Like

Also you can use :

local boolean,groundZ=GetGroundZFor_3dCoord(x,y,z,false);
-- groundZ : is the ground of x , y