_PIN_MAP_ENTITY
Pins the given entity on the map and returns the created map pin ID.
Hash
0xAAACB74442C1BED3Runtime name
PinMapEntityNamespaceENTITY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _PIN_MAP_ENTITY(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
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
local retval = PinMapEntity(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xAAACB74442C1BED3, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = PinMapEntity(entity);
// by hash
const retval = Citizen.invokeNative('0xAAACB74442C1BED3', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
See also
_UNPIN_MAP_ENTITYRemoves/unpins a map pin using its pin ID.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.