> For the complete documentation index, see [llms.txt](https://wert-dev.gitbook.io/wert-dev-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wert-dev.gitbook.io/wert-dev-docs/products/esx/wert-car-arena-death-race-death-match-arena-war.md).

# Wert Car Arena (Death race, Death match, Arena war)

## <mark style="background-color:orange;">INSTALLATION</mark>

## ESX Depends

* ESX
* qb-target (If you use another target please edit codes in editable.lua)
* PolyZone
* qb-menu

1 - Upload the script folder to the location of your resources

2 - Do not forget to add the necessary items to your item list

```lua
-- Item
["cararena_menu"]								= {["name"] = "cararena_menu",				["label"] = "Car arena menu",										["weight"] = 100,	["type"] = "item",	["image"] = "cararena_menu.png",				["unique"] = true,	["useable"] = true,	["shouldClose"] = false,	["combinable"] = nil,	   ["description"] = "Car arena settings tool"},
```

3 - Don't forget to check out the editable settings and codes

4 - <https://github.com/Wert22/Wert-arena> (Load this script your server, this is a arena map) !IMPORTANT

5 - **Installation successful, have a good funs**

<mark style="color:blue;">**Note : Css file is not encrypted, you can customize images (I provided this for you to create your own style).**</mark>

## <mark style="background-color:green;">OX LIB OPTION</mark>

If you want enable ox-lib you need set Config.OxLib = true

After this step you can found this code and  open in fxmanifest.lua

<figure><img src="/files/8ddAFIAFkgqqlPhHLpsm" alt=""><figcaption></figcaption></figure>

## <mark style="color:green;background-color:yellow;">EXPORTS</mark>

1 - Client side exports

* Get client player game data

````lua
```lua
local GameData = exports['wert-cararena']:GetClientGameData()
--Results
--GameData.start
--GameData.gamename
--GameData.gamepass
--GameData.maxplayer
--GameData.joinprice
--GameData.gametype
--GameData.mapname
--GameData.mapid
--GameData.owner
--GameData.reward
```
````

* Is the player on the spectator camera?

````lua
```lua
local CamData = exports['wert-cararena']:GetSpectCamActive()
if CamData then
    -- Player use camera
else
    -- Player not use camera
end
```
````

2 - Server side exports

* Retrieves the data of the current game

````lua
```lua
local GameData = exports['wert-cararena']:GetServerGameData()
for k,v in pairs(GameData) do
    print(k, v)
end
```
````

* Get active all cameras data

````lua
```lua
local CamData = exports['wert-cararena']:GetServerCamActive()
for k,v in pairs(CamData) do
    print(k, v)
end
```
````

**Note : If you want to put control in a different script, you can try the exports I mentioned above.**


---

# 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://wert-dev.gitbook.io/wert-dev-docs/products/esx/wert-car-arena-death-race-death-match-arena-war.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.
