_GET_PED_CURRENT_HELD_WEAPON
Returns eCurrentHeldWeapon _GET_R* - _GET_T*
Hash
0x8425C5F057012DABRuntime name
GetPedCurrentHeldWeaponNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Hash _GET_PED_CURRENT_HELD_WEAPON(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Hash
Description
Returns eCurrentHeldWeapon
_GET_R* - _GET_T*
Usage
local retval = GetPedCurrentHeldWeapon(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x8425C5F057012DAB, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPedCurrentHeldWeapon(ped);
// by hash
const retval = Citizen.invokeNative('0x8425C5F057012DAB', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x8425C5F057012DAB, ped);- The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.