Natives PLAYER 0x2975C866E6713290 BOOL GET_ENTITY_PLAYER_IS_FREE_AIMING_AT (Player player, Entity* entity); Documentation Community 0
Property
Value
Native Name
GET_ENTITY_PLAYER_IS_FREE_AIMING_AT
Hash
0x2975C866E6713290
Return Type
BOOL
Parameters
player (Player), entity (Entity*)
Description: ```
Returns TRUE if it found an entity in your crosshair within range of your weapon. Assigns the handle of the target to the *entity that you pass it.
Returns false if no entity found.
Back to PLAYER Before you callA `*` parameter here is an in/out pointer slot, not an ordinary value argument, and its marshalling depends on type and direction: getter out-slots come back as extra Lua return values (pass a Citizen.PointerValueInt() / PointerValueFloat() placeholder and read them after the normal return), while Vector3* params and in/out handles you supply a value into (e.g. a sequence-task id) are passed differently — confirm the exact convention with get_invoke_guide before passing it like a normal arg.
Let your AI read the fine print. Native signatures, warnings, and community context. Directly in your editor.
Connect via MCP