GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
Writes the entity player is free aiming at into entity, returning true if there is one.
Signature
BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT(Player player, Entity* entity); // 0xA6817C110B830EAD b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
| 2 | entity | Entity* (out pointer) |
Facts
| Name | GET_ENTITY_PLAYER_IS_FREE_AIMING_AT |
|---|---|
| Hash | 0xA6817C110B830EAD |
| 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, entity = Citizen.InvokeNative(0xA6817C110B830EAD, -- GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
PlayerId(), -- Player player
Citizen.PointerValueInt(), -- Entity* entity
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, entity] = Citizen.invokeNative("0xA6817C110B830EAD", // GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
PlayerId(), // Player player
Citizen.pointerValueInt(), // Entity* entity
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var entityArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xA6817C110B830EAD, // GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
API.PlayerId(), // Player player
entityArg // Entity* entity
);
int entity = entityArg.GetResult<int>();Related PLAYER natives
- IS_PLAYER_FREE_AIMING_AT_ENTITY
- _GET_PLAYER_FREE_AIM_CLOSEST_ENTITY
- IS_PLAYER_FREE_AIMING
- GET_IS_PLAYER_UI_PROMPT_ACTIVE
- GET_PLAYER_INTERACTION_TARGET_ENTITY
- GET_PLAYER_TARGET_ENTITY
- _GET_PLAYER_INTERACTION_AIM_ENTITY
- _GET_PLAYER_MOUNT_IS_SPRINTING_ON_ROAD
- _GET_PLAYER_UI_PROMPT_FOR_PED_IS_ENABLED
- _GET_PLAYER_UI_PROMPT_IS_DISABLED
- _IS_PLAYER_FREE_FOCUSING
- _IS_PLAYER_LOCKED_ON_ENTITY_ON_HORSE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.