> For the complete documentation index, see [llms.txt](https://adminpluss-development.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adminpluss-development.gitbook.io/docs/paid-scripts/qb-qbox-esx-anti-fall-free.md).

# \[QB/QBOX/ESX] Anti-Fall \[FREE]

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FT15gj6ZyZ6i6BBfMJJfh%2Fthumbnail.png?alt=media&amp;token=b64345cc-d9d2-4c8f-b364-1dedbb5b5190" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:blue;">adminplus-antifall</mark> is a script for FiveM servers which <mark style="color:blue;">help players get to safety</mark> when they are <mark style="color:blue;">stuck or falling through the map / sky</mark>. Some housing scripts have issues where on some server-restarts you <mark style="color:blue;">fall through the sky</mark> alongside players <mark style="color:blue;">falling through the map</mark> when stuff doesn't load in quickly. This script is to help staff-members in servers - with lowering reports by having an <mark style="color:blue;">automated system</mark> for players to help themselves via script.
{% endhint %}

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FCy3y3Gv3t8FZT4Pa6RRc%2Ffeatures.png?alt=media&amp;token=0477a285-417f-4ada-8bee-4413fec70123" alt=""><figcaption></figcaption></figure>

Dependencies 🔗

> ox\_lib
>
> * <mark style="color:blue;">wasabi\_ambulance</mark> OR <mark style="color:blue;">esx\_ambulancejob</mark> OR <mark style="color:blue;">qb-ambulancejob</mark> for revive feature.

***

**Configurables** :eyes:

> * Configurable vehicle teleport - allow to teleport if inside a vehicle. (enable/disable option).&#x20;
> * Configurable revive option (wasabi-ambulance/esx\_ambulancejob) make ticket to add another ambulance script. (enable/disable option).
> * Configurable safe teleport coordinates if can't find ground.
> * Configurable minZ & maxZ for when to trigger UI.
> * Configurable webhooks (enable/disable option).
> * Configurable zones - if in specific area, able to teleport out.
> * Configurable text (change language).

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FKolaTzag0myC87a8DXZz%2Finstall.png?alt=media&amp;token=3165a02a-6af8-42f2-b619-3388fb5bc51d" alt=""><figcaption></figcaption></figure>

* This resource is drag/drop with a couple configurable options.

> <mark style="color:orange;">ensure adminplus-antifall</mark>

{% hint style="warning" %}
Feel free to check the config file to be able to edit some options.
{% endhint %}

```lua
Config = {
	debug = false, -- for debugging purposes - do not have this enabled on live server.
	vehicleTeleport = true, -- do you want to allow players to be able to teleport - if their in a vehicle when their stuck?
	revive = false, -- should the player be revived if they are trying to get to safety?
	safety = vec4(190.7731, -948.9607, 30.0967, 152.0540), -- coordinates to teleport to for fallback point if ground isn't found when falling (currently legion)
	minZ = -11.0, -- if player freeFalling under (11 meters of ground level) trigger UI
	maxZ = 80.0, -- if player freeFalling above (80 meters of ground level) trigger UI
	webhooks = {}, -- do not touch this, visit server/sv_webhooks.lua
	Zones = {
		{
			points = { -- pillbox tunnels (right under pillbox)
				vec(260.5359, -592.2571, 17.8258),
				vec(261.2091, -578.5816, 17.8258),
				vec(337.0766, -578.9214, 17.8258),
				vec(339.9200, -592.0355, 17.8258),
			},
			thickness = 3,
			debug = false,
		},
		-- the points are basically a box, go to each corner of where you want to add the zone & copy coordinate & paste accordingly.
		-- copy / paste from line "10" to "19" & change the vec coordinates.
	},
	Strings = {
		stuck_title = 'AdminPlus antiFall',
		stuck_desc = 'You have been teleported to your safety!',
		teleport_title = 'Teleport',
		teleport_desc = 'Click this button to teleport to a safe area!',
		teleport_in_vehicle = 'You can not teleport while in a vehicle',
		ambulance_not_available = 'Ambulance revive is not available.', -- this error shows if a revive script is not available.
	}
}

return Config
```

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FzUBw2K8iJtQN1PmrvtyY%2Fchangelog.png?alt=media&amp;token=a35ca929-89e9-4d76-a7e1-5967797b7a25" alt=""><figcaption></figcaption></figure>

```markup
V 1.0.0
```

* Original Release

```
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
```

<figure><img src="https://4274191150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcaPZpEbITNtKQaqEE6V%2Fuploads%2FNwMogM8VwPQ3aPHa5VUu%2Fpurchase.png?alt=media&amp;token=b0f72168-8d77-4fea-b347-8735abd1e002" alt=""><figcaption></figcaption></figure>

* [<mark style="color:yellow;">Tebex (purchase)</mark>](https://adminplus.tebex.io/package/6803089)
* [<mark style="color:yellow;">Support (discord)</mark>](https://discord.gg/J2mP9kJJ83)
* [<mark style="color:yellow;">Showcase (video)</mark>](https://www.youtube.com/watch?v=BJVs6QK9vNo\&feature=youtu.be)
