Blip codding

I have a script but its blip is missing… can you tell me the code to add blip in that?

Use this native https://runtime.fivem.net/doc/natives/#_0x5A039BB0BCA604B6

@d0p3t making sure… after giving x,y,z coordinates in code below can give me the blip? basically i am asking blip for pillbox

ADD_BLIP_FOR_COORD(float x, float y, float z)

I think for that you need the Sprite one. But I could be wrong.

(LUA)
Get player position ingame command /getpos (client side):

RegisterCommand("getpos", function()
     local id = GetPlayerPed(PlayerId())
     local pos = GetEntityCoords(id, false)
     local str = tostring("x = " .. string.format("%0.3f", pos.x) .. ", y = " .. string.format("%0.3f", pos.y) .. ", z = " .. string.format("%0.3f", pos.z))

     TriggerEvent('chat:addMessage', {args = {str} })
end, false)

( “%0.3f” reduces decimal amount of a variable to 3 numbers only )
Copy coordinates and add/modify info in below “blips” list

Draw blips (client side):

local blips =
{
    	{title="Gas Station", color=64, id=361, scale = 1.2, x = 1785.498, y = 3330.739, z = 41.580},
    	{title="Hospital", color=1, id=61, scale = 1.2, x = 1834.118, y = 3680.186, z = 39.661},
    	{title="Pay 'n' Spray", color=0, id=72, scale = 1.2, x = 103.372, y = 6623.006, z = 31.527},
}

Citizen.CreateThread(function()
	for _, info in pairs(blips) do
		info.blip = AddBlipForCoord(info.x, info.y, info.z)
		SetBlipSprite(info.blip, info.id)
		SetBlipDisplay(info.blip, 4)
		SetBlipScale(info.blip, info.scale)
		SetBlipColour(info.blip, info.color)
		SetBlipAsShortRange(info.blip, true)
		BeginTextCommandSetBlipName("STRING")
		AddTextComponentString(info.title)
		EndTextCommandSetBlipName(info.blip)
	end
end)

Blip icons (id=) & color (color=) reference: https://docs.fivem.net/game-references/blips/

@nukedaway i will sure give it a try… btw thank you so much for the help bro, I appreciate…

@nukedaway 1)I ALREADY HAVE A RESOURCE FOR COMMANDS, SO I SHOULD NOT WRITE UPPER CODES RIGHT? 2) IF I AM LOOKING BLIP FOR ONLY PILLBOX, I SHOULD NOT WRITE FOR GAS STATION AND PAY SPRAY IN LOCAL BLIP RIGHT?