_SET_PLAYER_HAT_ACCESS
Sets the player's ability to wear hats based on the specified flag. The flag value determines whether the player can wear all hats or only the ones they own. If the flag is set to 15 and `allow` is true, the player can wear all available hats. However, if you want to restrict the player to wearing only their owned hats (flag 1), you **must first** disable flag 15 by setting it to false, and then set flag 1 to true.
PLAYERBuild 1207
Signature
lua
SetPlayerHatAccess(PlayerId(), 0, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Player | — | |
| int | — | |
| BOOL | — |
Usage
lua
SetPlayerHatAccess(PlayerId(), 0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
