RedM Natives

_PIN_MAP_ENTITY

Pins the given entity on the map and returns the created map pin ID.

Hash0xAAACB74442C1BED3
Runtime namePinMapEntity
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _PIN_MAP_ENTITY(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Description

Pins the given entity on the map and returns the created map pin ID.
Related natives include PIN_CLOSEST_MAP_ENTITY, GET_PINNED_MAP_ENTITY, IS_MAP_ENTITY_PINNED, and _UNPIN_MAP_ENTITY.

Usage

Lua
local retval = PinMapEntity(entity)

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

// by hash
const retval = Citizen.invokeNative('0xAAACB74442C1BED3', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xAAACB74442C1BED3, entity);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB

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