RedM Natives

ADD_BLIP_FOR_ENTITY

Create a blip that by default is red (enemy), you can use SET_BLIP_AS_FRIENDLY to make it blue (friend).\ Can be used for objects, vehicles and peds.

Hash0x30822554
Runtime nameAddBlipForEntity
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

Blip ADD_BLIP_FOR_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity

The entity handle to create the blip.

Returns Blip — A blip handle.

Description

Cfx.re native reference

Create a blip that by default is red (enemy), you can use SET_BLIP_AS_FRIENDLY to make it blue (friend).
Can be used for objects, vehicles and peds. Example of enemy: enemy Example of friend: friend

This is the server-side RPC native equivalent of the client native ADD_BLIP_FOR_ENTITY.

Usage

Lua
local retval = AddBlipForEntity(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x30822554, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = AddBlipForEntity(entity);

// by hash
const retval = Citizen.invokeNative('0x30822554', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x30822554, entity);

Sources

Cfx.re native reference

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