_PIN_MAP_ENTITY
Pins a map entity so it stays loaded and returns a pin id.
Signature
int _PIN_MAP_ENTITY(Entity entity); // 0xAAACB74442C1BED3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
Facts
| Name | _PIN_MAP_ENTITY |
|---|---|
| Hash | 0xAAACB74442C1BED3 |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xAAACB74442C1BED3, -- _PIN_MAP_ENTITY
PlayerPedId(), -- Entity entity
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xAAACB74442C1BED3", // _PIN_MAP_ENTITY
PlayerPedId(), // Entity entity
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xAAACB74442C1BED3, // _PIN_MAP_ENTITY
API.PlayerPedId() // Entity entity
);Related ENTITY natives
- PIN_CLOSEST_MAP_ENTITY
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _GET_PINNED_MAP_ENTITY
- _UNPIN_MAP_ENTITY
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_A_MISSION_ENTITY
- IS_ENTITY_AT_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.