RedM Natives

SET_BLIP_SPRITE

Sets the displayed sprite for a specific blip.

Hash0x8DBBB0B9
Runtime nameSetBlipSprite
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

void SET_BLIP_SPRITE(Blip blip, int spriteId);

Parameters

NameTypeDescription
blipBlip

The blip to change.

spriteIdint

The sprite ID to set.

Returns void

Description

Cfx.re native reference

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

Lua
SetBlipSprite(blip, spriteId)

-- always works, by hash
Citizen.InvokeNative(0x8dbbb0b9, blip, spriteId)
JavaScript and C#
JavaScript
SetBlipSprite(blip, spriteId);

// by hash
Citizen.invokeNative('0x8dbbb0b9', blip, spriteId);
C#
Function.Call((Hash)0x8dbbb0b9, blip, spriteId);

Sources

Cfx.re native reference

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.