doesCurrentPedPropHaveRestrictionTag

DOES_CURRENT_PED_PROP_HAVE_RESTRICTION_TAG0xD726BAB4554DA580

The 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.

SignatureJavaScript
doesCurrentPedPropHaveRestrictionTag(
  ped: Ped,
  componentId: number,
  restrictionTagHash: Hash
): boolean
SignatureLua
doesCurrentPedPropHaveRestrictionTag(
  ped: Ped,
  componentId: integer,
  restrictionTagHash: Hash
): boolean

Usage

JavaScript
const result = doesCurrentPedPropHaveRestrictionTag(ped, componentId, restrictionTagHash);
Lua
local result = doesCurrentPedPropHaveRestrictionTag(ped, componentId, restrictionTagHash)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
componentIdintnumberinteger
restrictionTagHashHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

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

Open in the interactive natives reference