▸level
Assigns a certain level that a player must be in order to buy the item
Alias
level, lvl
Source
added in Arivia v3
Requires
compatible level / xp addon
Type
integer
Info
Providing the level field to an entity will force players to be that particular level before they can buy the item.
Example
DarkRP.createEntity( 'Tip Jar',
{
ent = 'darkrp_tip_jar',
model = 'models/props_lab/jar01a.mdl',
price = 5,
max = 2,
cmd = 'tipjar',
level = 4,
} )
Output
If a player views an entity with a level requirement that the player does not meet; the entity will be faded in the menu:

The player will also be given an error message:

Notes
If you wish to enable or disable the level plugin all-together on Arivia; you must open lua\modules\arivia\cfg\sh_13_plugins.lua and modify cfg.plugins.levels
Last updated