# Setter Functions

### `set(player: Player, name: string, value: any)`

Sets the given `Player`'s value of `name` to the specified `value`

#### Example

{% hint style="warning" %}
The `name` parameter must be apart of the `Player`'s leaderstats folder.
{% endhint %}

```lua
Ezstatz:set(player, "Cash", 10) -- Changes the player's cash to 10
```

### `incrementValue(player: Player, name: string, delta: number)`

Increases the `Player`'s provied stat `name` by the provided `delta` number.

#### Example

```lua
Ezstatz:incrementValue(player, "Cash", 5)
```

### `decrementValue(player: Player, name: string, delta: number)`

Similar to `incrementValue()`, except it decreases.

#### Example

```lua
Ezstatz:decrementValue(player, "Cash", 10)
```
