# Configuration

## Setup Framework

To use the correct function that provides the framework to the script, you must either set `Config.GetSharedObjectFunction` to `true` here, or use the `GetESX()` function.

If you want to use the `GetESX()` function, you have to set `Config.GetSharedObjectFunction` to `false`.

If you are using ESX 1.7.5 or later, set `Config.GetSharedObjectFunction` to `true`.

## Revive Trigger

By default, the esx\_ambulancejob is enabled. However, you can change the trigger by entering your revive trigger in the config.

```lua
Config.Revive = function(player) 
    TriggerClientEvent('esx_ambulancejob:revive', player)
    -- Insert your revive code here
end
```

## Change language

{% hint style="warning" %}
If you change the language, make sure the file also exists under `./locales` and the language exists under `./html/language.js`
{% endhint %}

Change the value to the language you want to use

```lua
Config.Locale = 'en'
```

## Add custom Notify

If you want to change the default notify messages, change the value in the config.

```lua
function SendNotify(message, _type)
    exports['mxo-notify']:Alert('Moneywash', message, 4000, _type)
end
```

## Blacklisted Deathcauses

If a player has died from a death cause that is blacklisted, he cannot be revived in revivestation. To add a blacklisted death cause just put it in the list.

```lua
Config.BlacklistedDeathCauses = ["Explosion", "Burn", "Gas", ...]
```

possible death causes are:

* Animal
* Bullet
* Burn
* Car
* Drown
* Explosion
* FallDamage
* Gas
* Knife
* Melee


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mxo-scripts.com/mxo-revivestation/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
