_GET_PLAYER_INTERACTION_AIM_ENTITY
Writes the entity player is aiming at in interaction mode into outEntity, returning true if any.
Signature
BOOL _GET_PLAYER_INTERACTION_AIM_ENTITY(Player player, Entity* outEntity); // 0xBEA3A6E5F5F79A6F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | outEntity | Entity* (out pointer) |
Facts
| Name | _GET_PLAYER_INTERACTION_AIM_ENTITY |
|---|---|
| Hash | 0xBEA3A6E5F5F79A6F |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, outEntity = Citizen.InvokeNative(0xBEA3A6E5F5F79A6F, -- _GET_PLAYER_INTERACTION_AIM_ENTITY
PlayerId(), -- Player player
Citizen.PointerValueInt(), -- Entity* outEntity
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, outEntity] = Citizen.invokeNative("0xBEA3A6E5F5F79A6F", // _GET_PLAYER_INTERACTION_AIM_ENTITY
PlayerId(), // Player player
Citizen.pointerValueInt(), // Entity* outEntity
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var outEntityArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xBEA3A6E5F5F79A6F, // _GET_PLAYER_INTERACTION_AIM_ENTITY
API.PlayerId(), // Player player
outEntityArg // Entity* outEntity
);
int outEntity = outEntityArg.GetResult<int>();Related PLAYER natives
- _GET_PLAYER_FREE_AIM_CLOSEST_ENTITY
- GET_PLAYER_INTERACTION_TARGET_ENTITY
- _GET_PLAYER_CACHED_DEAD_EYE_AMOUNT
- _GET_PLAYER_DEAD_EYE
- _GET_PLAYER_DEAD_EYE_METER_LEVEL
- _GET_PLAYER_HEALTH
- _GET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
- _GET_PLAYER_HUNTING_WAGON
- _GET_PLAYER_MAX_DEAD_EYE
- _GET_PLAYER_MOOD
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- _GET_PLAYER_OWNER_OF_MOUNT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.