doesCurrentPedPropHaveRestrictionTag
DOES_CURRENT_PED_PROP_HAVE_RESTRICTION_TAG0xD726BAB4554DA580The GTA V native DOES_CURRENT_PED_PROP_HAVE_RESTRICTION_TAG of the EXTRAMETADATA namespace, as LS:MP client scripts call it: the global function doesCurrentPedPropHaveRestrictionTag, in JavaScript and in Lua.
doesCurrentPedPropHaveRestrictionTag(
ped: Ped,
componentId: number,
restrictionTagHash: Hash
): booleandoesCurrentPedPropHaveRestrictionTag(
ped: Ped,
componentId: integer,
restrictionTagHash: Hash
): booleanUsage
JavaScript
const result = doesCurrentPedPropHaveRestrictionTag(ped, componentId, restrictionTagHash);Lua
local result = doesCurrentPedPropHaveRestrictionTag(ped, componentId, restrictionTagHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
componentId | int | number | integer |
restrictionTagHash | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Shop metadata EXTRAMETADATA
- In the game
BOOL DOES_CURRENT_PED_PROP_HAVE_RESTRICTION_TAG(Ped ped, int componentId, Hash restrictionTagHash)- Hash
0xD726BAB4554DA580- Introduced
- Game build 2612 legacy numbering
- Formerly
_DOES_CUSTOMIZATION_PROP_HAVE_RESTRICTION_TAG