Ui::customMinimapSetBlipObject

From RAGE Multiplayer Wiki
Revision as of 19:00, 5 November 2024 by Shr0x (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax


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


See also