SET_BLIP_SPRITE
Sets the displayed sprite for a specific blip.
Signature
void SET_BLIP_SPRITE(Blip blip, int spriteId);Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip | The blip to change. |
spriteId | int | The sprite ID to set. |
Returns void
Description
Sets the displayed sprite for a specific blip. There's a list of sprites on the FiveM documentation site.
This is the server-side RPC native equivalent of the client native SET_BLIP_SPRITE.
Usage
SetBlipSprite(blip, spriteId)
-- always works, by hash
Citizen.InvokeNative(0x8dbbb0b9, blip, spriteId)JavaScript and C#
SetBlipSprite(blip, spriteId);
// by hash
Citizen.invokeNative('0x8dbbb0b9', blip, spriteId);Function.Call((Hash)0x8dbbb0b9, blip, spriteId);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.