Natives WEAPON 0x3A87E44BB9A01D54 BOOL GET_CURRENT_PED_WEAPON (Ped ped, Hash* weaponHash, BOOL p2); Documentation Community 0
Property
Value
Native Name
GET_CURRENT_PED_WEAPON
Hash
0x3A87E44BB9A01D54
Return Type
BOOL
Parameters
ped (Ped), weaponHash (Hash*), p2 (BOOL)
Description: ```
The return value seems to indicate returns true if the hash of the weapon object weapon equals the weapon hash.
p2 seems to be 1 most of the time; and is not implemented.
Back to WEAPON 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