Adding a minimap icon

Hello! I am trying to add a fire department blip for the davis station. Would someone know how to add them in and where. Thanks!

local blip = AddBlipForCoord(x,y,z)
SetBlipSprite(blip, BLIP ID HERE!)
SetBlipScale(blip, 1.0)
BeginTextCommandSetBlipName("STRING")
AddTextComponentString("TEXT HERE")
EndTextCommandSetBlipName(blip)
1 Like

Ok thanks, and would i put this into a server.lua file or client or what?

Client Side, dont put it in a loop (trust me it wasnt fun)

1 Like

haha, thanks for your help man!

sorry for asking, but for this what do I put and how do I find the blip string

BeginTextCommandSetBlipName("STRING")
AddTextComponentString("TEXT HERE")

AddTextComponentString("TEXT HERE") is what you put the name of the blip in. So if you wanted it to be called Fire Department youd do AddTextComponentString("Fire Department")

Would you know where to find the string? I can’t seem to find a website with them

What do you mean??? Do you mean blip ids?

For

BeginTextCommandSetBlipName("STRING")

what do you put here? And if it’s the string, how do I find it

You don’t change that, leave it as is

Alright i’m going to see if I can get it to work, thanks man.

Hello. If i want to add a blip for a Player what should i write? And the blip should only be there if he is a Cop. I mean i want blip 42. Is there any Way?

Because in this Video you see this on the Minimap this Player has it.
It would be nice if someone can Help me :slight_smile:

User AddBlipForEntity instead of AddBlipForCoord and you can utilize ShowHeadingIndicatorOnBlip to show the direction they’re facing.

    local blip = AddBlipForEntity( playerPed )
    ShowHeadingIndicatorOnBlip( blip, true )

If you want it to show if the player is a cop, then you’ll need to perform some logic to check their job.

Thanks for your Reply! So what extacly do i have to add? And in the Esx_policejob >client.lua?