Installation
Download resource
Download the purchased resource from keymaster - the official site of fivem with purchased resources.
Dependencies
Resource
Download Link
Es Extended (Legacy)
Start the script and Obligation
Add in your
server.cfg
this afteres_extended
and all OX resources:ensure Jail_System
The use of the Steam link is OBLIGATORY, for the proper functioning of the script.
In your server.cfg, add this:
set steam_webApiKey "xxxxxxxxxxxxxxx"
Replace the xxxx
with your API key and leave the quotes
To get your api key go to this site: https://steamcommunity.com/dev/apikey/
Database
Add the required sql file to your database
CREATE TABLE `jail_history` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`player_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`staff_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`time` INT(11) NOT NULL,
`reason` VARCHAR(255) NOT NULL COLLATE 'utf8mb4_general_ci',
`date` TIMESTAMP NOT NULL DEFAULT current_timestamp(),
`remaining_time` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=4;
CREATE TABLE `players_jail` (
`player_id` VARCHAR(50) NOT NULL COLLATE 'utf8mb4_general_ci',
`remaining_time` INT(11) NOT NULL,
PRIMARY KEY (`player_id`) USING BTREE
)
COLLATE='utf8mb4_general_ci'
ENGINE=InnoDB;
Last updated