DrawMarker not showing

I made a casual test script to check out the drawMarker native in Lua but even though I follow all the tutorials I can, the marker I’m trying to show isn’t there.

Here’s the code:

Client.CreateThread(
	function()
		while true do
			Citizen.Wait(1)
			local cords = vector3(-931.94, -3181.99, 12.94)
			DrawMarker(
				33
				cords.x
				cords.y
				cords.z
				0.0,
				0.0,
				0.0,
				0.0,
				0.0,
				0.0,
				2.0,
				2.0,
				2.0,
				255,
				255,
				255,
				255,
				false,
				true,
				2,
				nil,
				nil,
				true
			)
		end
	end
)

I’ve tried everything but it doesn’t seem to work. I have tried it on two different computers and they don’t work. Please help me. (thx)

Have you tried using

Citizen.Wait(0)

instead of

Citizen.Wait(1)

just tested it and it still doesnt work

you didn’t put , after 33, cords.x, cords.y and cords.z so this is an error on your code
and I think you don’t need that Client before CreateThread

this is the code :

CreateThread(function()
		while true do
			Citizen.Wait(1)
			local cords = vector3(-931.94, -3181.99, 12.94)
			DrawMarker(
				33,
				cords.x,
				cords.y,
				cords.z,
				0.0,
				0.0,
				0.0,
				0.0,
				0.0,
				0.0,
				2.0,
				2.0,
				2.0,
				255,
				255,
				255,
				255,
				false,
				true,
				2,
				nil,
				nil,
				true
			)
		end
	end
)

and this is your marker :

Nope, it still doesn’t work :/.
Btw I don’t receive any errors in the f8 console

is your resource starts properly? I mean check your console(not f8) and fxmanifest. the code looks right(you can see my screenshot)

I use txadmin web-service cuz I host the server locally.
I start all my resources from there and they usually work.
The console log doesn’t give any errors neither.
My fxmanifest.lus file does get picked-up by txadmin and goes like this:

fx_version ‘cerulean’
games {‘gta5’}

name ‘test script’
description ‘marker test script’
version ‘v1.0’

client_script ‘test_client.lua’

What is above might be wrong cuz I wrote it on my phone but that’s basically what is in it.

No I meant check console for something like this “Started resource Resource-Name

and this fxmanifest has some problems with “”
you have to put " instead of

example :
client_script ‘test_client.lua’ : :x:
client_script 'test_client.lua' : :white_check_mark:

restart your resource then look for some errors in console or f8 if it didn’t work
and this is the resource that worked for me look at this and compare with yours
test_resource.zip (945 Bytes)

Apparently, it worked and I am still confused.
Btw I used the ‘’ symbols in the last message cuz I was on my phone.

Thank you very much

if you didn’t understand how it works just compare my resource with yours and ask me question if something was unclear

You’re welcome