| Property | Value |
|---|---|
| Native Name | _CAN_PED_ACCESS_MOUNT_WEAPONS |
| Hash | 0x23BF601A42F329A0 |
| Return Type | BOOL |
| Build | 1207 |
| API Set | client |
| Parameters | ped (Ped) |
Description: Returns true if the given ped is in a valid state to stow or retrieve weapons from their owned mount. This typically means the ped is either on their horse or close enough to it for saddle weapon interactions. Notes:
- The ped does not need to currently hold a weapon. This check simply determines if saddle stowing/retrieval actions are allowed.
- Commonly used to enable weapon wheel or stow prompts near the player’s own horse.
- Will return false if the ped is near a non-owned horse or too far from their own.
Usage
Lua (Direct):
local result = CanPedAccessMountWeapons(ped)
Lua (Hash):
local result = Citizen.InvokeNative(0x23BF601A42F329A0, ped)