> For the complete documentation index, see [llms.txt](https://arivia.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arivia.rlib.io/developers/entities/price.md).

# ▸price

## Alias

&#x20;           *`price`*

## Source

&#x20;           *`default field added by DarkRP gamemode`*

## Requires

&#x20;           *`no additional requirements`*

## Type

&#x20;           *`integer`*

## Info

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

![](/files/-MK-cRM7f20seqPOA8Ni)

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

![](/files/-MK-ck8GfEWeDRXQYryw)

## Example

{% tabs %}
{% tab title="addentities.lua" %}

```lua
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 ),
} )
```

{% endtab %}
{% endtabs %}
