▸customHideUnavail
Forces an entity to not show in the F4 menu if CustomCheck is provided and the player does not meet the requirements.
Last updated
Forces an entity to not show in the F4 menu if CustomCheck is provided and the player does not meet the requirements.
Last updated
DarkRP.createEntity( 'Acetone',
{
ent = 'bp_chemical_acet2',
model = 'models/blues_pharm/jar_3.mdl',
price = 750,
max = 2,
cmd = 'bpbuyacet',
category = 'Blue\'s Pharmaceuticals',
customHideUnavail = true,
customCheck = function( ply ) return
table.HasValue( { TEAM_Pharmaceutica }, ply:Team( ) )
end,
CustomCheckFailMsg = 'Must be a Pharmacist',
} )DarkRP.createEntity( 'Acetone',
{
ent = 'bp_chemical_acet2',
model = 'models/blues_pharm/jar_3.mdl',
price = 750,
max = 2,
cmd = 'bpbuyacet',
category = 'Blue\'s Pharmaceuticals',
allowed = { TEAM_Pharmaceutica },
} )