Hello i am wondering how to change the interaction circles as shown below.

This circle is in the tattooshops. I would like to make all the interaction circles for everything else such as police clockin, stores, etc to the one in tattoshops

One I want to change everything to:

If you have any idea how to change it please let me know, Thank you.

The default Interaction circle:

In your esx scripts you want to look for all instances of the function DrawMarker() and change the first argument from 1 to 27. Example: DrawMarker(1, ... becomes DrawMarker(27, .... (don’t change anything after the first comma)

If you want you can view some of the other interaction circle types in the native docs here. :smile:

1 Like

Thank you very much, but I have just now checked my esx_police and esx_vehicleshop for DrawMarker and it would look like this.

esx_vehicleshop/client/main.lua:

DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, false, false, false)

I also tried adding DrawMarker(27,v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, false, false, false) and restarted the resource but It had the circle invisible. so i am assumbing the formatting is not right added DrawMarker(27,v.Type, v.Pos.x, v.P… for some reason.

Well the first argument in that call is v.Type so you need to change that to 27 not add 27 to the start.

sorry for the confusion but, I just tried it like this: if(v.Type ~= 27 and GetDistanceBetweenCoords(coords, v.Pos.x, v.Pos.y, v.Pos.z, true) < Config.DrawDistance) then
DrawMarker(v.Type, v.Pos.x, v.Pos.y, v.Pos.z, 0.0, 0.0, 0.0, 0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, Config.MarkerColor.r, Config.MarkerColor.g, Config.MarkerColor.b, 100, false, true, 2, false, false, false, false)

and restarted the resource and it didn’t work, also tried restarting the server.

1 Like

like I said above only change the DrawMarker functions, use DrawMarker(27, v.Pos.x, v.Pos.y, v.Pos.z...
also revert the changes to the if statement

I got it to work now, thank you.

I am now having a problem that I will only be able to access the car dealer once, and after I exit the car shop menu and able to move I can no longer use the car dealer. The option and ability to use the car dealer ship comes back when i restart the resource and it will be empty because It needs restart.

Hai , You Just Need to find DrawMarker Function () And Most Of The Scripts Have Config File To Change the Marker , It is based on numbers from 1 to 43. Which means every numbers have their own different looks
So Visit Down The Link = Markers

And Get Your Favorite Marker Number And Add it to the respected file. client.lua or config.lua , it depends on the script

Thank You , Sorry For My Bad English

If anyone have any kinds of help needed , feel free to ask , happy to help

can you give me an example plz and thank you

Hello JerkyGamingXD.

CreateThread(function()
	while true do
		-- draw every frame
		Wait(0)

		local pedCoords = GetEntityCoords(PlayerPedId())
		DrawMarker(2, pedCoords.x, pedCoords.y, pedCoords.z + 2, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 2.0, 2.0, 2.0, 255, 128, 0, 50, false, true, 2, nil, nil, false)
	end
end)

Markers can be seen here
Official example given by FiveM itself.

The 2 after DrawMarker( and behind , pedCoords.x… is the ID of MARKER. Who looks that :
image

Can be very different to your resources.

King regards,

I need help!
I did this to all my markers and now they all invisible, what did i do wrong?
I also tried to change it back but they still invisible…

DrawMarker(27, v.Type, v.Coords, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, v.Size.x, v.Size.y, v.Size.z, v.Color.r, v.Color.g, v.Color.b, 100, false, true, 2, false, nil, nil, false)