> 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.**
