RedM Index logoRedM Index
NativesHashesClothesBlipsPropsItem Tool
Sign inGet started

Reference

  • Natives
  • Hashes
  • Clothes
  • Blips
  • Props

Namespace

  1. Reference
  2. Natives
  3. _SET_PLAYER_HAT_ACCESS

_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 void

Parameters

NameTypeDescription
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

On this page

  • Signature
  • Parameters
  • Usage
  • Details