# Config

## Novel\_NoNewLife

### Configuration

```lua
SharedConfig.DisplayIgnoredZones = true
SharedConfig.IgnoredZones = {
    {
        coords = vector2(1382.8177, 653.9075),
        radius = 25.0
    }
}

SharedConfig.EnableEvent = ''
SharedConfig.UseScreenEffect = true
SharedConfig.ScreenEffect = 'TinyRacerPinkOut' -- https://wiki.rage.mp/index.php?title=Screen_FX

SharedConfig.ZoneRadius = 50.0
SharedConfig.TimeInMinutes = 5
```

#### DisplayIgnoredZones

The ignored zones are zones in wich no damage is deald to the player when there is a new life zone

| Type     | Bool                                          |
| -------- | --------------------------------------------- |
| Enabled  | Displays the Ignored Zones on the Map         |
| Disabled | Does not Display the Ignored Zones on the Map |

#### IgnoredZones

The ignored zones are zones in wich no damage is deald to the player when there is a new life zone

| Type   | Table                                                                                  |
| ------ | -------------------------------------------------------------------------------------- |
| coords | The center coords of a zone where the no new life zones get ignored                    |
| radius | The radius from the center of the zone in each direction where the ignored zone counts |

#### EnableEvent

The event when the no new life zone should be created on.

## [Sample](https://github.com/esx-framework/esx_ambulancejob/blob/c6d0366a64137a233287e89553020628dfaf6cec/client/main.lua#L317C1-L317C1)

From

```lua
function RemoveItemsAfterRPDeath()
  TriggerServerEvent('esx_ambulancejob:setDeathStatus', false)

  CreateThread(function()
    ESX.TriggerServerCallback('esx_ambulancejob:removeItemsAfterRPDeath', function()
      local ClosestHospital = GetClosestRespawnPoint()

      ESX.SetPlayerData('loadout', {})

      DoScreenFadeOut(800)
      RespawnPed(PlayerPedId(), ClosestHospital.coords, ClosestHospital.heading)
      while not IsScreenFadedOut() do
        Wait(0)
      end
      DoScreenFadeIn(800)
    end)
  end)
end
```

To

```lua
function RemoveItemsAfterRPDeath()
  TriggerEvent('Novel_NoNewLife:Enable')
  TriggerServerEvent('esx_ambulancejob:setDeathStatus', false)

  CreateThread(function()
    ESX.TriggerServerCallback('esx_ambulancejob:removeItemsAfterRPDeath', function()
      local ClosestHospital = GetClosestRespawnPoint()

      ESX.SetPlayerData('loadout', {})

      DoScreenFadeOut(800)
      RespawnPed(PlayerPedId(), ClosestHospital.coords, ClosestHospital.heading)
      while not IsScreenFadedOut() do
        Wait(0)
      end
      DoScreenFadeIn(800)
    end)
  end)
end
```

Then you need to put "Novel\_NoNewLife:Enable" in your config

#### UseScreenEffect

You can choose if you whant to use a screen effect

| Type     | Bool                                                                                       |
| -------- | ------------------------------------------------------------------------------------------ |
| Enabled  | The screeneffect that is defined in the config aswell will be enabled when in newlife zone |
| Disabled | No screeneffect will be triggerd                                                           |

#### ScreenEffect

Here you can define the screeneffect you like from the [Screen Effects](https://wiki.rage.mp/index.php?title=Screen_FX) Page

#### ZoneRadius

The Radius of the new life zone where the player gets damage when he enters

#### TimeInMinutes

The ammount of minutes a zone is active for


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://novel-devolution.gitbook.io/novel_devolution/novel_nonewlife-standalone/config.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.
