RedM Natives

_UNPIN_MAP_ENTITY

Removes/unpins a map pin using its pin ID.

Hash0xD2B9C78537ED5759
Runtime nameUnpinMapEntity
NamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207

Signature

void _UNPIN_MAP_ENTITY(int pinId);

Parameters

NameTypeDescription
pinIdint—

Returns void

Description

Removes/unpins a map pin using its pin ID.

Earlier documentation incorrectly listed this parameter as an Entity.
Based on the observed pin workflow, this operates on the pin handle/ID returned by _PIN_MAP_ENTITY, not directly on the entity.

Usage

Lua
UnpinMapEntity(pinId)

-- always works, by hash
Citizen.InvokeNative(0xD2B9C78537ED5759, pinId)
JavaScript and C#
JavaScript
UnpinMapEntity(pinId);

// by hash
Citizen.invokeNative('0xD2B9C78537ED5759', pinId);
C#
Function.Call((Hash)0xD2B9C78537ED5759, pinId);
  • 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.