Skip to main content

Ui::customMinimapSetBlipObject

Client-side function

Explanation​

This function allows setting a custom sprite as the main blip icon on the minimap, replacing the default player marker. You can specify a spriteId to represent different icons on the minimap, which can be useful for changing the minimap icon based on the player’s status or role.

Required Params​

  • spriteId: number - The ID of the sprite to use as the minimap blip.

Return value​

  • void

Syntax​

mp.game.ui.customMinimapSetBlipObject(spriteId)

Example​

The following example sets a custom minimap icon:

mp.game.ui.customMinimapSetBlipObject(123); // Replace with desired sprite ID