I want to be able to add callsigns to the players blips so when there driving around i can open my map and see the blips with the unit callsigns on them.

I know its show_number_on_blip, but idk where to add it and have it register players call sign

function CreateDutyBlips(playerId, playerLabel, playerJob)

local ped = GetPlayerPed(playerId)

local blip = GetBlipFromEntity(ped)

if not DoesBlipExist(blip) then

    blip = AddBlipForEntity(ped)

    SetBlipSprite(blip, 1)

    ShowHeadingIndicatorOnBlip(blip, true)

    SetBlipRotation(blip, math.ceil(GetEntityHeading(ped)))

    SetBlipScale(blip, 1.0)

    if playerJob == "police" then

        SetBlipColour(blip, 38)

    else

        SetBlipColour(blip, 5)

    end

    SetBlipAsShortRange(blip, true)

    BeginTextCommandSetBlipName('STRING')

    AddTextComponentString(playerLabel)

    EndTextCommandSetBlipName(blip)

    

    table.insert(DutyBlips, blip)

end

end

The easiest way to do this is to have the players “register” their callsign somehow unless you want to store and be forced to update a table every time someone’s callsign changes

1 Like

yes i have callsigns stored but iwant something like this to showScreenshot (142)

You can’t do custom blip images, as far as I know. If you are not too picky, you could just use a different color for each unit, or maybe the roulette wheel numbers in the higher sprite numbers. They are red and black, 1-36 with a green 0 and 00.

i dont want custom blip image i just want to add so numbers show on player blips. but i want it to be there registered callsign

I have not seen a way to add text to the map screen. You could probably change the title of the blip, which would show up in the legend on the right side of the map. But that could get messy if you have a lot of units on duty. That list is alphabetical, though, so the number would be on top and only police will see them, I assume. You could thin out some of the other blips. I have never tried to prevent blips from being seen by certain jobs while on duty. But it may be possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.