| Property | Value |
|---|---|
| Native Name | _GET_DEFAULT_WEAPON_ATTACH_POINT |
| Hash | 0x65DC4AC5B96614CB |
| Return Type | int |
| Build | 1311 |
| API Set | client |
Description: Returns default attach point for given weapon hash. Returns -1 for melee as they can't be attached. Example: https://imgur.com/a/mUE5fug
Usage
Lua (Direct):
local result = GetDefaultWeaponAttachPoint()
Lua (Hash):
local result = Citizen.InvokeNative(0x65DC4AC5B96614CB)