▸price

Defines what the price of an entity will be.

Alias

price

Source

default field added by DarkRP gamemode

Requires

no additional requirements

Type

integer

Info

If a player cannot afford an item, it will appear faded:

Player will also receive an error message on the right side of the interface:

Example

DarkRP.createEntity( 'Tip Jar',
{
    ent         = 'darkrp_tip_jar',
    model       = 'models/props_lab/jar01a.mdl',
    price       = 2000000,
    max         = 2,
    cmd         = 'tipjar',
    accent      = Color( 183, 27, 116 ),
} )

Last updated