_GET_WEAPON_ATTACH_POINT
Returns WeaponAttachPoint
Hash
0xCAD4FE9398820D24Runtime name
GetWeaponAttachPointNamespaceWEAPON
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_WEAPON_ATTACH_POINT(Ped ped, int attachPoint);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
attachPoint | int | — |
Returns int
Description
Returns WeaponAttachPoint
Usage
local retval = GetWeaponAttachPoint(ped, attachPoint)
-- always works, by hash
local retval = Citizen.InvokeNative(0xCAD4FE9398820D24, ped, attachPoint, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetWeaponAttachPoint(ped, attachPoint);
// by hash
const retval = Citizen.invokeNative('0xCAD4FE9398820D24', ped, attachPoint, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xCAD4FE9398820D24, ped, attachPoint);- 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.
Enums and flags
- eWeaponAttachPoint 33 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.