# okokBossMenu

[**YouTube Video**](https://www.youtube.com/watch?v=u-jhOJ9PZv0)

## Installation Guide

### Requirements:

ox\_lib **v3.16.2+** (<https://github.com/overextended/ox_lib/releases/latest/download/ox_lib.zip>).

### Execute the following SQL code in your database:

```sql
CREATE TABLE IF NOT EXISTS `okokbossmenu_hours` (
  `id` int NOT NULL AUTO_INCREMENT,
  `citizenid` varchar(255) NOT NULL,
  `hours` text NOT NULL,
  `last_login` text DEFAULT NULL,
  `job` text DEFAULT NULL,
  PRIMARY KEY (`id`)
)
```

### ESX ONLY

Execute the following SQL code in your database:

```sql
ALTER TABLE `users` ADD COLUMN `isOnDuty` BOOLEAN NOT NULL DEFAULT FALSE;
```

Add the following code at the end of **es\_extended/server/main.lua**:

```lua
RegisterNetEvent("okokBossMenu:savePlayers")
AddEventHandler("okokBossMenu:savePlayers", function()
    Core.SavePlayers()
end)
```

### Server artifacts

Make sure your server artifacts version is up to date.

* Windows: <https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/>
* Linux: <https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/>
