▸allowed

Defines what teams are allowed to buy the entity.

Alias

allowed

Source

default field added by DarkRP gamemode

Requires

no additional requirements

Type

table { }

Info

This is a default field within darkrp; however, if it is used on an entity while using Arivia; it will have priority over all other checks.

If the player is NOT in the list of teams provided by the allowed field; the item will not display on the F4 menu at all. There is no fading functionality with this field.

Example

In the above example; ONLY players in TEAM_HOBO will be able to ever see the Tip Jar in the F4 menu. If other players are not in that team; they will not even know that the entity exists.

Last updated