This is the multi-page printable view of this section. Click here to print.
- 1:
- 2:
- 2.1: Basic knowledge
- 2.2: Database
- 2.2.1: Secure Database Communication
- 2.2.2: Database Server Hardening
- 2.2.3: Database Access Monitoring
- 2.2.4: Secure FiveM Server Database
- 2.3: FiveM Installation
- 2.4: FiveM Server Tutorials for GTA V
- 3: Pixxy Framework
- 4:
1 -
2 -
FiveM Installation Tutorial
1. Grand Theft Auto V (GTA V)
Make sure you have a legal copy of Grand Theft Auto V installed on your computer. You can purchase GTA V from platforms like Steam, Rockstar Games, or other authorized retailers.
2. FiveM Account
Visit the FiveM website and create a FiveM account. You’ll need this account to log in to FiveM servers.
3. Download and Install FiveM
- Go to the FiveM download page.
- Click on the “Download Client” button.
- Run the downloaded installer and follow the on-screen instructions.
4. Specify GTA V Location
During the installation process, you’ll be asked to locate your GTA V installation directory. Browse to the folder where GTA V is installed on your computer and select it.
5. Launch FiveM
After the installation is complete, launch FiveM from your desktop or start menu.
6. Update FiveM
FiveM may prompt you to update when you launch it. Allow the update to proceed to ensure you have the latest version.
7. Join a Server
- Once FiveM is installed and up to date, click on the “Servers” tab in the main menu.
- Browse through the available servers, choose one, and click “Connect.”
8. Install Mods (Optional)
Some servers may have custom mods or assets. Follow the server-specific instructions to install any additional mods required to join the server.
Note: Using mods or connecting to unofficial servers might violate the terms of service of GTA V, so proceed at your own risk. FiveM is a third-party modification and is not affiliated with Rockstar Games.
2.1 - Basic knowledge
CPU:
- For a single FiveM server instance, you should allocate at least 4-6 CPU cores or vCPUs.
- FiveM is heavily dependent on single-threaded performance, so a modern CPU with high clock speeds and strong per-core performance is recommended.
- Intel Core i7 or AMD Ryzen 5/7 series CPUs are suitable for a single server instance.
RAM:
- A single FiveM server instance typically requires 8-16 GB of RAM.
- Higher RAM capacity is recommended if you plan to host a large number of players or resource-intensive custom scripts/mods.
Storage:
- Allocate at least 100-200 GB of SSD storage for the game files, server data, and potential growth.
- SSDs provide better I/O performance and reduced latency compared to traditional hard disk drives (HDDs).
Network:
- A reliable and high-speed network connection is crucial for online gaming servers.
- Gigabit Ethernet or faster network interfaces are recommended.
- Low latency and consistent bandwidth are important for a smooth gaming experience.
Player Capacity and Performance:
- The number of players on your FiveM server can significantly impact performance.
- As the player count increases, the server will require more CPU, RAM, and network resources to handle the increased workload.
- It’s essential to monitor resource utilization and adjust the hardware resources accordingly based on your target player capacity.
- As a general guideline, for every 20-30 players, you may need to allocate an additional CPU core or vCPU and 2-4 GB of RAM.
Operating System and Docker Configuration:
- Use a stable and efficient operating system like Linux (Ubuntu LTS, CentOS, etc.) or Windows Server, as they are designed for server workloads.
- Ensure that the operating system is properly configured and optimized for Docker containers and gaming server workloads.
- Configure Docker container resources (CPU, RAM, and storage) appropriately to match the server’s requirements.
It’s important to note that these are general recommendations, and your specific requirements may vary depending on the server configurations, custom scripts/mods, and other factors. It’s always a good idea to monitor resource utilization and performance during testing and adjust the hardware resources accordingly.
2.2 - Database
2.2.1 - Secure Database Communication
Use Encrypted Connections (SSL/TLS)
-- MySQL: Enable SSL/TLS for database connections
# 1. Generate SSL certificates
openssl genrsa 2048 > ca-key.pem
openssl req -new -x509 -nodes -days 3600 -key ca-key.pem -out ca.pem
openssl req -newkey rsa:2048 -days 3600 -nodes -keyout server-key.pem -out server-req.pem
openssl rsa -in server-key.pem -out server-key.pem
openssl x509 -req -in server-req.pem -days 3600 -CA ca.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem
# 2. Configure MySQL to use SSL
[mysqld]
ssl-ca=ca.pem
ssl-cert=server-cert.pem
ssl-key=server-key.pem
# 3. Connect using SSL
mysql --ssl-ca=ca.pem --ssl-cert=client-cert.pem --ssl-key=client-key.pem
-- PostgreSQL: Enable SSL/TLS for database connections
# 1. Generate SSL certificates
openssl req -new -text -out server.req
openssl rsa -in privkey.pem -modulus -noout -out modulus
openssl req -x509 -in server.req -text -key privkey.pem -out server.crt
chmod og-rwx privkey.pem
# 2. Configure PostgreSQL to use SSL
ssl = on
ssl_cert_file = 'server.crt'
ssl_key_file = 'privkey.pem'
# 3. Connect using SSL
psql "host=localhost user=postgres sslmode=require"
Enforce Certificate-Based Authentication
-- MySQL: Configure certificate-based authentication
# 1. Generate client certificates
openssl req -newkey rsa:2048 -days 3600 -nodes -keyout client-key.pem -out client-req.pem
openssl rsa -in client-key.pem -out client-key.pem
openssl x509 -req -in client-req.pem -days 3600 -CA ca.pem -CAkey ca-key.pem -set_serial 01 -out client-cert.pem
# 2. Configure MySQL to use certificate-based authentication
[mysqld]
ssl-ca=ca.pem
ssl-cert=server-cert.pem
ssl-key=server-key.pem
[client]
ssl-ca=ca.pem
ssl-cert=client-cert.pem
ssl-key=client-key.pem
-- PostgreSQL: Configure certificate-based authentication
# 1. Generate client certificates
openssl req -new -text -out client.req
openssl rsa -in privkey.pem -modulus -noout -out modulus
openssl req -x509 -in client.req -text -key privkey.pem -out client.crt
# 2. Configure PostgreSQL to use certificate-based authentication
hostssl all all 0.0.0.0/0 cert clientcert=1
Restrict Database Access to Specific IP Addresses/Networks
-- MySQL: Restrict access to specific IP addresses/networks
CREATE USER 'game_server'@'192.168.1.100' IDENTIFIED BY 'StrongPassword123!';
GRANT ALL PRIVILEGES ON fivem.* TO 'game_server'@'192.168.1.100';
-- PostgreSQL: Restrict access to specific IP addresses/networks (pg_hba.conf)
host fivem game_server 192.168.1.100/32 md5
Implement Database User Roles and Permissions
-- MySQL: Create roles and assign permissions
CREATE ROLE fivem_read_only, fivem_data_entry, fivem_manager;
GRANT SELECT ON fivem.* TO fivem_read_only;
GRANT INSERT ON fivem.player_data TO fivem_data_entry;
GRANT INSERT, UPDATE, DELETE ON fivem.* TO fivem_manager;
CREATE USER 'game_viewer'@'192.168.1.100' IDENTIFIED BY 'StrongPassword123!';
GRANT fivem_read_only TO 'game_viewer'@'192.168.1.100';
-- PostgreSQL: Create roles and assign permissions
CREATE ROLE fivem_read_only;
GRANT SELECT ON ALL TABLES IN SCHEMA fivem TO fivem_read_only;
CREATE ROLE fivem_data_entry;
GRANT INSERT ON fivem.player_data TO fivem_data_entry;
CREATE ROLE fivem_manager;
GRANT INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA fivem TO fivem_manager;
CREATE USER game_viewer WITH PASSWORD 'StrongPassword123!';
GRANT fivem_read_only TO game_viewer;
2.2.2 - Database Server Hardening
Disable or Remove Unnecessary Services and Features
-- MySQL: Disable unnecessary components during installation
# For MySQL 8.0, add the following options during installation:
mysqld=--skip-profiling,--skip-perfschema
# For existing installations, you can disable components in the my.cnf file:
skip-perfschema
skip-profiling
# PostgreSQL: Disable unnecessary components during installation
# Add the following options to the postgresql.conf file:
shared_preload_libraries = '' # Disables all preloaded libraries
Enable Database Server’s Built-in Firewall
-- MySQL: Enable and configure the built-in firewall
# Enable the firewall
INSTALL SONAME 'MYSQLX_FIREWALL';
# Create a whitelist for allowed IP addresses
MYSQLX_FIREWALL_INSTALL(
'WHITELIST_INET',
'WHITELIST_USERS',
'client_ip=192.168.1.0/24,127.0.0.1, user=fivem_viewer,fivem_entry,fivem_admin'
);
# Start the firewall
MYSQLX_FIREWALL_ACTIVATE();
-- PostgreSQL: Enable and configure the built-in firewall (pg_hba.conf)
# Allow connections from specific IP addresses
host all all 192.168.1.0/24 md5
host all all 127.0.0.1/32 md5
# Deny all other connections
host all all 0.0.0.0/0 reject
Implement Strong Authentication and Least Privilege
-- Create users with strong passwords and assign roles
CREATE USER 'fivem_viewer'@'localhost' IDENTIFIED BY 'StrongPassword123!';
GRANT fivem_read_only TO 'fivem_viewer'@'localhost';
CREATE USER 'fivem_entry'@'localhost' IDENTIFIED BY 'AnotherStrongPass!';
GRANT fivem_data_entry TO 'fivem_entry'@'localhost';
CREATE USER 'fivem_admin'@'localhost' IDENTIFIED BY 'SuperSecurePass123!';
GRANT fivem_manager TO 'fivem_admin'@'localhost';
Enable Auditing and Logging
-- MySQL: Enable and configure audit logging
INSTALL SONAME 'server_audit';
SET GLOBAL server_audit_logging=ON;
SET GLOBAL server_audit_file_rotate_size=1000000; # Rotate log files at 1MB
SET GLOBAL server_audit_file_rotate_max_retained_files=10; # Keep 10 log files
-- Configure log events to capture
SET GLOBAL server_audit_events='CONNECT,QUERY';
-- PostgreSQL: Enable and configure logging
# Edit the postgresql.conf file
log_destination = 'csvlog'
logging_collector = on
log_directory = 'pg_log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_truncate_on_rotation = off
log_rotation_age = 1d
log_rotation_size = 100000 # Rotate log files at 100MB
2.2.3 - Database Access Monitoring
Enable Database Activity Logging
-- MySQL: Enable and configure audit logging
INSTALL SONAME 'server_audit';
SET GLOBAL server_audit_logging=ON;
SET GLOBAL server_audit_file_rotate_size=1000000; # Rotate log files at 1MB
SET GLOBAL server_audit_file_rotate_max_retained_files=10; # Keep 10 log files
-- Configure log events to capture
SET GLOBAL server_audit_events='CONNECT,QUERY';
-- PostgreSQL: Enable and configure logging
# Edit the postgresql.conf file
log_destination = 'csvlog'
logging_collector = on
log_directory = 'pg_log'
log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'
log_truncate_on_rotation = off
log_rotation_age = 1d
log_rotation_size = 100000 # Rotate log files at 100MB
Implement Intrusion Detection/Prevention Systems (IDS/IPS)
# Install and configure an IDS/IPS solution like Snort or Suricata
# Example for Snort on Ubuntu
sudo apt-get install snort
# Configure Snort to monitor database traffic
# Edit the snort.conf file
ipvar HOME_NET 192.168.1.0/24
ipvar EXTERNAL_NET !$HOME_NET
# Add rules to detect potential threats
include $RULE_PATH/mysql.rules
include $RULE_PATH/postgresql.rules
include $RULE_PATH/sql-injection.rules
# Start Snort in IDS mode
sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i eth0
Set up Alerts for Potential Threats
-- MySQL: Set up alerts for failed login attempts and SQL injection
DELIMITER $$
CREATE TRIGGER failed_login_attempts_trigger
AFTER INSERT ON mysql.general_log
FOR EACH ROW
BEGIN
IF NEW.argument LIKE 'ACCESS DENIED%' THEN
INSERT INTO failed_login_attempts (user, host, timestamp)
VALUES (SUBSTRING_INDEX(NEW.argument, '@', 1),
SUBSTRING_INDEX(SUBSTRING_INDEX(NEW.argument, '@', -1), ']', 1),
NEW.event_time);
END IF;
END$$
DELIMITER ;
DELIMITER $$
CREATE TRIGGER sql_injection_attempts_trigger
AFTER INSERT ON mysql.general_log
FOR EACH ROW
BEGIN
IF NEW.argument RLIKE '(^(\\\\\\\'|\\\'|\\%27|\')|\\b(union|select|insert|update|delete)\\b.*(\\b(from|into)\\b.*(\\b(information_schema|mysql|sys|data)\\b|\\bconcaten\\(|\\bchar\\())|\\b(outfile|load_file|into|dumpfile))' THEN
INSERT INTO sql_injection_attempts (user, host, query, timestamp)
VALUES (SUBSTRING_INDEX(NEW.argument, '@', 1),
SUBSTRING_INDEX(SUBSTRING_INDEX(NEW.argument, '@', -1), ']', 1),
NEW.argument,
NEW.event_time);
END IF;
END$$
DELIMITER ;
-- PostgreSQL: Set up alerts for failed login attempts and SQL injection
CREATE EXTENSION IF NOT EXISTS log_fdw;
CREATE SERVER log_server
FOREIGN DATA WRAPPER log_fdw
OPTIONS (filename '/var/log/postgresql/postgresql-%Y-%m-%d_%H%M%S.log');
CREATE TABLE failed_login_attempts (
username TEXT,
client_addr TEXT,
timestamp TIMESTAMP
);
CREATE RULE failed_login_alert AS
ON INSERT TO failed_login_attempts
WHERE NEW.username IS NOT NULL
DO NOTIFY failed_login_attempt,
E'Username: ' || NEW.username || E'\nClient Address: ' || NEW.client_addr || E'\nTimestamp: ' || NEW.timestamp;
CREATE VIEW failed_logins WITH (security_barrier) AS
SELECT
split_part(message, ' ', 10) AS username,
split_part(message, ' ', 11) AS client_addr,
timestamp
FROM pg_log.postgresql_log
WHERE message LIKE 'FATAL%password authentication failed for user%';
Regularly Review and Analyze Logs
# Analyze MySQL audit logs
sudo mysqlauditgrep --query-log=/var/log/mysql/audit.log --query-pam-ksok --query-has-comment-augment --query-has-sleep-augment --query-has-delay-augment
# Analyze PostgreSQL logs
sudo grep 'FATAL' /var/log/postgresql/*.log | awk '{print $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11}'
2.2.4 - Secure FiveM Server Database
User Account Management
Principle of Least Privilege
-- Create roles for FiveM server operations
CREATE ROLE fivem_read_only, fivem_data_entry, fivem_manager;
-- Grant minimum required permissions to each role
GRANT SELECT ON fivem.* TO fivem_read_only;
GRANT INSERT ON fivem.player_data TO fivem_data_entry;
GRANT INSERT, UPDATE, DELETE ON fivem.* TO fivem_manager;
-- Create users and assign roles
CREATE USER 'fivem_viewer'@'localhost' IDENTIFIED BY 'StrongPassword123!';
GRANT fivem_read_only TO 'fivem_viewer'@'localhost';
CREATE USER 'fivem_entry'@'localhost' IDENTIFIED BY 'AnotherStrongPass!';
GRANT fivem_data_entry TO 'fivem_entry'@'localhost';
CREATE USER 'fivem_admin'@'localhost' IDENTIFIED BY 'SuperSecurePass123!';
GRANT fivem_manager TO 'fivem_admin'@'localhost';
Strong Password Policies
-- Enforce a strong password policy
SET GLOBAL validate_password.length=14;
SET GLOBAL validate_password.number_count=2;
SET GLOBAL validate_password.mixed_case_count=1;
SET GLOBAL validate_password.special_char_count=1;
SET GLOBAL validate_password.dictionary_file='/usr/share/mysql/english_dictionary.txt';
-- Update user password to comply with the new policy
ALTER USER 'fivem_viewer'@'localhost' IDENTIFIED BY 'N3wStr0ngPa$$word';
Multi-Factor Authentication (MFA)
-- Install the MFA plugin
INSTALL PLUGIN authentication_mfa SONAME 'authentication_mfa.so';
-- Create an MFA-enabled user account
CREATE USER 'fivem_superadmin'@'localhost' IDENTIFIED BY 'UltraSecurePass123!';
-- Configure MFA for the user, using a hardware security key
ALTER USER 'fivem_superadmin'@'localhost'
IDENTIFIED WITH authentication_mfa
BY 'initial_secret_key'
REQUIRE SECURE_REMOTE_USER;
Database Permissions
Role-Based Access Control (RBAC)
-- Create a role for FiveM server developers
CREATE ROLE fivem_developer;
GRANT SELECT, INSERT, UPDATE ON fivem.resources TO fivem_developer;
-- Assign the role to a user
GRANT fivem_developer TO 'dev_user'@'%';
Granular Permissions
-- Grant SELECT permission on specific tables
GRANT SELECT ON fivem.player_data, fivem.server_logs TO 'fivem_viewer'@'%';
-- Grant INSERT permission on specific columns
GRANT INSERT(name, score) ON fivem.player_scores TO 'fivem_entry'@'%';
Secure Database Objects
-- Create a stored procedure for inserting player scores
DELIMITER $$
CREATE PROCEDURE InsertPlayerScore(
IN p_name VARCHAR(50),
IN p_score INT
)
BEGIN
-- Input validation
IF p_score < 0 THEN
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = 'Score cannot be negative';
END IF;
-- Check if player exists
IF NOT EXISTS (SELECT 1 FROM player_data WHERE name = p_name) THEN
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = 'Player does not exist';
END IF;
-- Insert score
INSERT INTO player_scores (name, score)
VALUES (p_name, p_score);
END$$
DELIMITER ;
-- Grant execute permission on the stored procedure
GRANT EXECUTE ON PROCEDURE InsertPlayerScore TO 'fivem_entry'@'%';
-- Create a view that masks sensitive player data
CREATE VIEW player_data_public AS
SELECT name, game_id, join_date
FROM player_data;
-- Grant SELECT permission on the view
GRANT SELECT ON player_data_public TO 'fivem_viewer'@'%';
2.3 - FiveM Installation
FiveM Installation
Welcome to the FiveM installation guide. Follow the steps below to get started:
Grand Theft Auto V (GTA V)
- Make sure you have a legal copy of Grand Theft Auto V installed on your computer.
FiveM Account
- Visit the FiveM website and create a FiveM account. You’ll need this account to log in to FiveM servers.
…
- Install Mods (Optional)
- Some servers may have custom mods or assets. Follow the server-specific instructions to install any additional mods required to join the server.
Note: Using mods or connecting to unofficial servers might violate the terms of service of GTA V, so proceed at your own risk. FiveM is a third-party modification and is not affiliated with Rockstar Games.
Always follow the rules and guidelines of the server you’re playing on, and have fun exploring the various multiplayer experiences that FiveM offers!
FiveM Installation Tutorial
1. Grand Theft Auto V (GTA V)
Make sure you have a legal copy of Grand Theft Auto V installed on your computer. You can purchase GTA V from platforms like Steam, Rockstar Games, or other authorized retailers.
2. FiveM Account
Visit the FiveM website and create a FiveM account. You’ll need this account to log in to FiveM servers.
3. Download and Install FiveM
- Go to the FiveM download page.
- Click on the “Download Client” button.
- Run the downloaded installer and follow the on-screen instructions.
4. Specify GTA V Location
During the installation process, you’ll be asked to locate your GTA V installation directory. Browse to the folder where GTA V is installed on your computer and select it.
5. Launch FiveM
After the installation is complete, launch FiveM from your desktop or start menu.
6. Update FiveM
FiveM may prompt you to update when you launch it. Allow the update to proceed to ensure you have the latest version.
7. Join a Server
- Once FiveM is installed and up to date, click on the “Servers” tab in the main menu.
- Browse through the available servers, choose one, and click “Connect.”
8. Install Mods (Optional)
Some servers may have custom mods or assets. Follow the server-specific instructions to install any additional mods required to join the server.
Note: Using mods or connecting to unofficial servers might violate the terms of service of GTA V, so proceed at your own risk. FiveM is a third-party modification and is not affiliated with Rockstar Games.
2.4 - FiveM Server Tutorials for GTA V
Welcome to the FiveM Server Tutorials
Explore our detailed tutorials designed to assist you in setting up and managing your FiveM servers for Grand Theft Auto V. Perfect for both beginners and experienced server administrators, these guides cover everything from basic setup to advanced configurations.
Tutorials
- Installing a FiveM Server on Windows
- Setting Up a FiveM Server on Debian
- Installing a FiveM Server on CentOS
Getting Started
To begin, choose the tutorial that corresponds to your operating system and follow the instructions carefully. Each guide is designed to be easy to understand and will walk you through the process from start to finish.
Need Help?
If you encounter any issues or have questions, don’t hesitate to visit our community support forum for assistance.
Happy gaming and server managing!
2.4.1 - Installing a FiveM Server on CentOS
Installing a FiveM Server on CentOS
Prerequisites
- A server running CentOS.
- Root or sudo access on the server.
- Basic knowledge of the Linux command-line interface.
Step 1: Installing Dependencies
Update your system:
sudo yum update
Install the EPEL repository:
sudo yum install epel-release
Install required packages:
sudo yum install git curl screen xz wget -y
Step 2: Adding a New User for FiveM
It’s recommended to run the FiveM server as a separate user for security purposes.
Create a new user:
sudo adduser fivem
Switch to the new user:
su - fivem
Step 3: Downloading and Extracting FiveM Server Files
Download the latest server artifact:
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/latest.tar.xz
Extract the server files:
tar xf latest.tar.xz
Step 4: Configuring the Server
Create a server configuration file (
server.cfg
):nano server.cfg
Add basic configuration settings to
server.cfg
. Refer to the FiveM documentation for sample configurations.Save and exit the nano editor.
Step 5: Running the Server
- Start the server using the
screen
utility:screen -S fivem-server ./run.sh +exec server.cfg
Step 6: Server Management
- To detach from the
screen
session, pressCtrl+A
followed byCtrl+D
. - To return to the session, use
screen -r fivem-server
.
Conclusion
Your FiveM server should now be operational on CentOS. Always manage your server responsibly and in compliance with FiveM’s terms of service.
For detailed configuration options and more advanced settings, consult the FiveM Documentation.
2.4.2 - Setting Up a FiveM Server on Debian
Setting Up a FiveM Server on Debian
Creating a FiveM server on a Debian server involves several steps. This guide will walk you through the process from start to finish.
Prerequisites
- A server running Debian or a Debian-based Linux distribution.
- Root or sudo access on the server.
- Basic knowledge of Linux command-line interface.
Step 1: Installing Dependencies
Before installing the FiveM server, you need to install the required dependencies.
Update your package lists:
sudo apt update
Install the necessary packages:
sudo apt install git curl screen xz-utils wget -y
Step 2: Creating a User for FiveM
It’s a good practice to run services like FiveM under a separate user.
Create a new user:
sudo adduser fivem
Switch to the new user:
su - fivem
Step 3: Downloading and Preparing FiveM Server Files
Download the latest server artifact:
wget https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/latest.tar.xz
Extract the server files:
tar xf latest.tar.xz
Clone the
cfx-server-data
repository from GitHub. This repository contains essential data for your FiveM server:git clone https://github.com/citizenfx/cfx-server-data.git
Move the
resources
folder fromcfx-server-data
to your main FiveM server directory:mv cfx-server-data/resources /home/fivem/
Remove the now-empty
resources
directory fromcfx-server-data
:rm -rf cfx-server-data/resources
Step 4: Configuring the Server
Create a new configuration file (
server.cfg
):nano server.cfg
# Only change the IP if you're using a server with multiple network interfaces, otherwise change the port only. endpoint_add_tcp "0.0.0.0:30120" endpoint_add_udp "0.0.0.0:30120" # These resources will start by default. ensure mapmanager ensure chat ensure spawnmanager ensure sessionmanager ensure basic-gamemode ensure hardcap ensure rconlog # This allows players to use scripthook-based plugins such as the legacy Lambda Menu. # Set this to 1 to allow scripthook. Do note that this does _not_ guarantee players won't be able to use external plugins. sv_scriptHookAllowed 0 # Uncomment this and set a password to enable RCON. Make sure to change the password - it should look like rcon_password "YOURPASSWORD" #rcon_password "" # A comma-separated list of tags for your server. # For example: # - sets tags "drifting, cars, racing" # Or: # - sets tags "roleplay, military, tanks" sets tags "default" # A valid locale identifier for your server's primary language. # For example "en-US", "fr-CA", "nl-NL", "de-DE", "en-GB", "pt-BR" sets locale "root-AQ" # please DO replace root-AQ on the line ABOVE with a real language! :) # Set an optional server info and connecting banner image url. # Size doesn't matter, any banner sized image will be fine. #sets banner_detail "https://url.to/image.png" #sets banner_connecting "https://url.to/image.png" # Set your server's hostname. This is not usually shown anywhere in listings. sv_hostname "FXServer, but unconfigured" # Set your server's Project Name sets sv_projectName "My FXServer Project" # Set your server's Project Description sets sv_projectDesc "Default FXServer requiring configuration" # Set Game Build (https://docs.fivem.net/docs/server-manual/server-commands/#sv_enforcegamebuild-build) #sv_enforceGameBuild 2802 # Nested configs! #exec server_internal.cfg # Loading a server icon (96x96 PNG file) #load_server_icon myLogo.png # convars which can be used in scripts set temp_convar "hey world!" # Remove the `#` from the below line if you want your server to be listed as 'private' in the server browser. # Do not edit it if you *do not* want your server listed as 'private'. # Check the following url for more detailed information about this: # https://docs.fivem.net/docs/server-manual/server-commands/#sv_master1-newvalue #sv_master1 "" # Add system admins add_ace group.admin command allow # allow all commands add_ace group.admin command.quit deny # but don't allow quit add_principal identifier.fivem:1 group.admin # add the admin to the group # enable OneSync (required for server-side state awareness) set onesync on # Server player slot limit (see https://fivem.net/server-hosting for limits) sv_maxclients 48 # Steam Web API key, if you want to use Steam authentication (https://steamcommunity.com/dev/apikey) # -> replace "" with the key set steam_webApiKey "" # License key for your server (https://keymaster.fivem.net) sv_licenseKey changeme
Populate the configuration file. A basic example can be found in the FiveM documentation.
Save and exit the editor:
- Once you have finished editing the file in
nano
, you need to save your changes. To do this, pressCtrl + O
. This command stands for ‘write Out’, which is nano’s way of saying ‘save’. - After pressing
Ctrl + O
, nano will ask you to confirm the file name. By default, it will use the name of the file you’re editing. Simply pressEnter
to confirm. - Now that your changes are saved, you can exit nano. Press
Ctrl + X
to close the editor and return to the command prompt.
- Once you have finished editing the file in
Step 5: Configuring Firewall for FiveM
Before enabling the firewall, it’s important to ensure you won’t lose remote access to your server, especially if you’re using SSH.
Check if UFW (Uncomplicated Firewall) is installed:
sudo apt install ufw
Allow SSH connections to ensure you can still access your server after the firewall is enabled:
sudo ufw allow 22/tcp
Enable UFW:
sudo ufw enable
Allow the default FiveM ports. FiveM typically uses ports 30120 and 30110 for server and HTTP server:
sudo ufw allow 30120/tcp sudo ufw allow 30110/tcp
Optionally, if you are using additional ports for specific resources or services, open them similarly:
sudo ufw allow [YourAdditionalPort]/tcp
Check your UFW status to ensure the rules are applied:
sudo ufw status
Step 6: Running the Server
- Start the server using
screen
for background execution:screen -S fivem-server ./run.sh +exec server.cfg
cd ~/FXServer/server-data && bash ~/FXServer/server/run.sh +exec server.cfg
Step 6: Managing Your Server
- To detach from the
screen
session, pressCtrl+A
thenCtrl+D
. - To reattach to the session, use
screen -r fivem-server
.
Conclusion
You have now set up a FiveM server on Debian. Remember to manage your server responsibly and adhere to the FiveM terms of service.
For more advanced configurations and troubleshooting, refer to the FiveM Documentation.
2.4.3 - Creating a FiveM Server on Windows
Creating a FiveM Server on Windows
This guide will walk you through the steps to set up a FiveM server on your Windows PC.
Prerequisites
- A PC running Windows.
- A copy of Grand Theft Auto V installed.
- Administrative access on your PC.
Step 1: Downloading FiveM Server Files
- Visit the FiveM website: FiveM.net
- Download the server files.
- Extract the downloaded files into a folder where you want your server to be located.
Step 2: Configuring the Server
- Navigate to the folder where you extracted the server files.
- Create a new text document named
server.cfg
. - Edit
server.cfg
to configure your server settings. You can find a sample configuration on the FiveM documentation page.
Step 3: Running the Server
- Open the folder where your server files are located.
- Run
FXServer.exe
. - Your server should now start. Ensure that your firewall allows incoming and outgoing connections for FiveM.
Step 4: Connecting to Your Server
- Open FiveM.
- Go to the server browser.
- Search for your server by name.
- Connect and start playing.
Additional Configuration
- Adding Mods: You can add mods by placing their files in the
resources
folder and configuring them in yourserver.cfg
. - Server Administration: Consider using a resource like txAdmin for easier server management.
Remember, running a server can require a significant amount of resources depending on the number of players and mods you plan to use.
Conclusion
Setting up a FiveM server can be a fun way to customize your GTA V experience. Always ensure you respect the game’s and FiveM’s terms of service when operating your server.
This tutorial is a basic guide. For more detailed instructions and advanced configurations, refer to the FiveM Documentation.
3 - Pixxy Framework
Introduction to Syslogine’s GTAV Server Management Tools
At Syslogine, we’re always looking for ways to enhance our gaming experience and streamline server management tasks for Grand Theft Auto V. To this end, we’ve developed a couple of scripts that have significantly made our lives easier and we’re excited to share them with our community. These tools are designed to simplify admin setup and server management, allowing you to focus more on enjoying the game rather than getting bogged down by the technicalities of server maintenance.
fivem-admin-setup
The fivem-admin-setup
script is designed to automate the initial setup process for admins in a GTAV server. It streamlines the configuration of admin privileges, making it quicker and more efficient to get new admins up and running. This script ensures that all administrative settings are correctly and uniformly applied, reducing the likelihood of errors.
View fivem-admin-setup
on GitHub
fivem-server-manager
Our fivem-server-manager
script takes the hassle out of server management. With features that allow for easy updates, mod installations, and server monitoring, it’s an indispensable tool for any GTAV server administrator. The script is designed with user-friendliness in mind, ensuring that even those with minimal technical knowledge can manage their server effectively.
View fivem-server-manager
on GitHub
Implementing the Tools
To start using these tools, follow the detailed setup instructions available on their respective GitHub pages. Both scripts come with a comprehensive README that guides you through installation and usage, ensuring a smooth setup process.
- For
fivem-admin-setup
, follow the installation guide here. - For
fivem-server-manager
, check out the usage instructions here.
Join Our Community
We hope these tools will make managing your GTAV servers as much of a breeze for you as they have for us. We’re open to feedback and contributions, so if you have any suggestions or improvements, please don’t hesitate to share them with us. Together, we can make GTAV server management an even smoother experience for everyone.
Visit our Syslogine Cloud Documentation for more resources and support.
3.1 -
Job Grades
Explore the diverse job opportunities within our server, each offering a unique progression path and rewarding experiences. Below is a comprehensive list of job grades available, allowing you to climb the ranks, earn salaries, and shape your virtual career.
Ambulance
The Ambulance job in our server is all about providing crucial medical support during emergencies. As a member of the Ambulance team, you’ll start as a “Jr. EMT” and work your way up the ranks, gaining experience and saving lives along the way.
Jr. EMT (Grade 0)
- Salary: $20
- Your journey as an EMT begins here. You’ll respond to emergency calls, administer first aid, and transport patients to medical facilities. It’s a challenging but rewarding role.
EMT (Grade 1)
- Salary: $40
- With more experience, you become a certified EMT. You’ll handle a wider range of medical situations and make critical decisions to stabilize patients.
Sr. EMT (Grade 2)
- Salary: $60
- As a Senior EMT, you’ll take on additional responsibilities and mentor junior members of the team. Your expertise is vital in life-or-death situations.
EMT Supervisor (Grade 3)
- Salary: $80
- You’re now in a leadership role, overseeing ambulance operations and ensuring efficient responses. Your decisions can impact the success of critical missions.
Chief EMT (Grade 4)
- Salary: $100
- Congratulations, you’ve reached the rank of Chief EMT! You’ll lead the Ambulance division, coordinate resources, and train future EMTs.
Ambulance Supervisor (Grade 5)
- Salary: $120
- As an Ambulance Supervisor, you’ll manage multiple teams and collaborate with other emergency services. Your expertise is essential for the safety of the community.
Ambulance Manager (Grade 6)
- Salary: $140
- In this role, you’ll oversee the entire Ambulance department, ensuring that it operates smoothly and efficiently. You’ll make strategic decisions to improve emergency medical services for all.
Join the Ambulance team and make a difference by saving lives and providing critical medical care to those in need.
Banker
The Banker job in our server is all about managing financial affairs and helping clients achieve their financial goals. As a Banker, you’ll start as a “Consultant” and work your way up through the ranks, gaining expertise in the world of banking and finance.
Consultant (Grade 0)
- Salary: $10
- Your journey as a Banker begins as a Consultant. You’ll assist clients with basic financial services and help them open accounts.
Banker (Grade 1)
- Salary: $20
- As a Banker, you’ll dive deeper into financial advisory services. You’ll manage accounts, provide investment advice, and assist clients in achieving their financial objectives.
Investment Banker (Grade 2)
- Salary: $30
- With experience, you become an Investment Banker. You’ll specialize in investment strategies, handle more complex financial portfolios, and work closely with businesses.
Broker (Grade 3)
- Salary: $40
- As a Broker, you’ll focus on stock trading and investment management. You’ll help clients buy and sell stocks and other securities, aiming for profitable outcomes.
Bank Manager (Grade 4)
- Salary: $50
- Congratulations, you’ve reached the rank of Bank Manager! You’ll oversee daily banking operations, manage a team of bankers, and ensure excellent customer service.
Bank Director (Grade 5)
- Salary: $60
- In this leadership role, you’ll oversee multiple branches and develop strategic plans to grow the bank’s presence in the financial market.
Bank Executive (Grade 6)
- Salary: $70
- As a Bank Executive, you’ll be responsible for the bank’s overall performance and profitability. Your decisions will shape the future of the financial institution.
Join the Banker team and embark on a rewarding career in the world of finance. Help clients secure their financial futures, make wise investments, and build a strong financial foundation.
Bartender
Welcome to the world of mixology and hospitality! As a Bartender in our server, you’ll become the life of the party and master the art of crafting delicious cocktails and beverages.
Barback (Grade 0)
- Salary: $10
- Your bartending journey starts as a Barback. You’ll assist experienced Bartenders, restock supplies, and learn the basics of bar operations.
Apprentice Bartender (Grade 1)
- Salary: $20
- As an Apprentice Bartender, you’ll start creating simple drinks and cocktails. You’ll gain valuable experience in mixing and serving beverages.
Mixologist (Grade 2)
- Salary: $30
- With time, you’ll become a Mixologist, known for your creative and unique drink recipes. Customers will flock to your bar for your signature creations.
Senior Bartender (Grade 3)
- Salary: $40
- As a Senior Bartender, you’ll handle more complex drink orders with ease. You’ll also be responsible for training newer bartenders.
Bar Manager (Grade 4)
- Salary: $50
- Congratulations on becoming a Bar Manager! You’ll oversee the entire bar operation, manage inventory, and ensure a smooth flow of customers.
Nightclub Owner (Grade 5)
- Salary: $60
- In this role, you’ll own and operate your own nightclub, complete with exclusive drinks and entertainment. Your establishment will become a hotspot for nightlife.
Cocktail Mogul (Grade 6)
- Salary: $70
- As a Cocktail Mogul, you’ll expand your bartending empire, open multiple venues, and dominate the nightlife scene in the city.
Join the Bartender profession, shake, stir, and pour your way to success, and leave a lasting impression on every patron who walks into your bar. Whether it’s a classic cocktail or an innovative concoction, your bartending skills will keep the drinks flowing and the party going!
Bounty Hunter
Step into the thrilling world of bounty hunting, where you’ll track down fugitives and bring them to justice. As a Bounty Hunter in our server, you’ll be the enforcer of the law and embark on dangerous missions.
Trainee Hunter (Grade 0)
- Salary: $20
- Your journey as a Bounty Hunter begins as a Trainee. You’ll learn the basics of tracking, surveillance, and apprehension of targets.
Licensed Hunter (Grade 1)
- Salary: $40
- As a Licensed Hunter, you’ll have the authority to accept contracts and pursue wanted criminals. Your skills in tracking and combat will improve.
Experienced Hunter (Grade 2)
- Salary: $60
- With experience, you become an Experienced Hunter, specializing in capturing high-value targets. Your reputation will grow, and more challenging bounties will come your way.
Master Hunter (Grade 3)
- Salary: $80
- The title of Master Hunter is earned by those who have a track record of successful captures. You’ll be trusted with the toughest cases and receive higher rewards.
Bounty Hunter Chief (Grade 4)
- Salary: $100
- Congratulations on becoming a Bounty Hunter Chief! You’ll lead a team of hunters, coordinate operations, and ensure justice prevails in the city.
Bounty Hunter Guild Leader (Grade 5)
- Salary: $120
- As the Guild Leader, you’ll establish your own guild, recruit and train new hunters, and expand your influence in the bounty hunting community.
Legendary Bounty Hunter (Grade 6)
- Salary: $140
- Your name will be known far and wide as a Legendary Bounty Hunter. You’ll have access to exclusive contracts and legendary targets with extraordinary rewards.
Join the ranks of the fearless Bounty Hunters, hone your tracking skills, and become a force to be reckoned with in the world of fugitive apprehension. Your determination and expertise will ensure that no fugitive can escape the long arm of the law.
Bus Driver
Hop behind the wheel and take on the role of a Bus Driver in our bustling city. As a Bus Driver, you’ll be responsible for safely transporting passengers to their destinations while navigating the busy streets.
Novice Driver (Grade 0)
- Salary: $15
- Your journey as a Bus Driver starts as a Novice. You’ll learn the ropes of operating a bus, managing schedules, and providing excellent customer service.
Experienced Driver (Grade 1)
- Salary: $30
- As an Experienced Driver, you’ll gain confidence in handling different bus routes and handling various passenger situations. Your skills will improve, and your routes will expand.
Route Supervisor (Grade 2)
- Salary: $45
- With experience comes the role of a Route Supervisor. You’ll oversee a group of bus drivers, ensure punctuality, and resolve any on-road issues efficiently.
Fleet Manager (Grade 3)
- Salary: $60
- As a Fleet Manager, you’ll be responsible for managing a fleet of buses, optimizing routes for efficiency, and making decisions to enhance the city’s public transportation system.
Transportation Director (Grade 4)
- Salary: $75
- Congratulations on becoming a Transportation Director! You’ll have a pivotal role in shaping the city’s transportation policies, implementing improvements, and planning for the future.
Public Transit Executive (Grade 5)
- Salary: $90
- As a Public Transit Executive, you’ll lead the city’s public transportation authority, making strategic decisions that impact the lives of countless residents.
City Transport Commissioner (Grade 6)
- Salary: $105
- The City Transport Commissioner holds the highest authority in the realm of public transportation. You’ll have the power to revolutionize the city’s transit system.
Take pride in being the driving force behind the city’s public transit network, ensuring that commuters reach their destinations safely and on time. Your dedication to providing top-notch service will be appreciated by passengers throughout the city.
Car Dealer
Welcome to the world of high-end automobiles and lucrative deals as a Car Dealer. As a Car Dealer, you’ll dive into the exciting world of car sales, showcasing the latest models and helping customers find their dream vehicles.
Sales Trainee (Grade 0)
- Salary: $20
- Your journey as a Car Dealer begins as a Sales Trainee. You’ll learn the basics of car sales, customer interaction, and product knowledge.
Sales Associate (Grade 1)
- Salary: $40
- As a Sales Associate, you’ll start building your reputation for excellent customer service. You’ll assist customers in selecting the right vehicle, provide test drives, and close deals.
Experienced Salesperson (Grade 2)
- Salary: $60
- With experience, you’ll become an Experienced Salesperson, mastering the art of negotiation and upselling additional features to boost your commission.
Sales Manager (Grade 3)
- Salary: $80
- As a Sales Manager, you’ll oversee a team of Sales Associates, set sales targets, and implement strategies to maximize the dealership’s revenue.
Luxury Car Specialist (Grade 4)
- Salary: $100
- Congratulations on achieving the rank of Luxury Car Specialist! You’ll specialize in selling high-end and luxury vehicles, catering to an elite clientele.
Dealership Director (Grade 5)
- Salary: $120
- As a Dealership Director, you’ll take on a leadership role in managing the entire car dealership. You’ll make critical decisions and steer the business towards success.
Automotive Tycoon (Grade 6)
- Salary: $140
- The title of Automotive Tycoon awaits those who reach the pinnacle of the car sales world. You’ll have the power to influence the industry and shape the future of the dealership.
In the fast-paced world of Car Dealers, every sale brings the opportunity for profit and success. Your knowledge of automobiles and your ability to provide top-notch service will be the keys to your triumph in this competitive industry.
Casino Dealer
Step into the thrilling world of casino entertainment as a Casino Dealer. As a Casino Dealer, you’ll be at the heart of the action, dealing cards, spinning roulette wheels, and ensuring an unforgettable gaming experience for your players.
Trainee Dealer (Grade 0)
- Salary: $20
- Your journey begins as a Trainee Dealer, where you’ll learn the ropes of various casino games, from blackjack to poker. Accuracy and quick thinking are your best allies.
Card Shark (Grade 1)
- Salary: $40
- As a Card Shark, you’ll deal cards with confidence and handle bets with finesse. Your skills in shuffling and dealing will be tested at higher-stakes tables.
Roulette Pro (Grade 2)
- Salary: $60
- Specializing in the art of roulette, you’ll become a Roulette Pro, expertly spinning the wheel and announcing the winning numbers. Precision is key.
Poker Master (Grade 3)
- Salary: $80
- Achieve the rank of Poker Master by mastering the complexities of poker games. You’ll host poker tournaments and showcase your expertise in the world of high-stakes gambling.
Blackjack Kingpin (Grade 4)
- Salary: $100
- As a Blackjack Kingpin, you’ll handle the iconic card game with skill and strategy. Counting cards and reading players’ expressions will be your forte.
Casino Supervisor (Grade 5)
- Salary: $120
- Take on the role of a Casino Supervisor, overseeing multiple tables and ensuring the smooth operation of the casino floor. Your attention to detail and problem-solving abilities will be put to the test.
Casino Manager (Grade 6)
- Salary: $140
- As a Casino Manager, you’ll be responsible for the overall success of the casino. You’ll make decisions on marketing, staffing, and maintaining the casino’s reputation.
The world of casino gaming is fast-paced and filled with excitement. Whether you’re dealing with novice players or seasoned gamblers, your ability to create an engaging and fair gaming environment will determine your success as a Casino Dealer.
Delivery Driver
Become a vital part of the urban hustle and bustle as a Delivery Driver. In this role, you’ll crisscross the city, delivering packages, food, and goods to their destinations promptly and efficiently.
Trainee Driver (Grade 0)
- Salary: $15
- As a Trainee Driver, you’ll start your journey learning the routes and basics of safe driving. You’ll make local deliveries and ensure packages arrive intact.
Local Courier (Grade 1)
- Salary: $30
- Progress to become a Local Courier, where you’ll handle a wider range of deliveries. Timeliness and customer service will be your top priorities.
Express Delivery Specialist (Grade 2)
- Salary: $45
- As an Express Delivery Specialist, you’ll master the art of speedy deliveries. You might be delivering hot meals or urgent parcels, so every second counts.
Fleet Supervisor (Grade 3)
- Salary: $60
- Take on the role of Fleet Supervisor, overseeing a team of drivers and coordinating complex delivery operations. Efficiency and organization are your strengths.
Logistics Manager (Grade 4)
- Salary: $75
- As a Logistics Manager, you’ll be responsible for optimizing routes, managing schedules, and ensuring the entire delivery process runs like a well-oiled machine.
Courier Captain (Grade 5)
- Salary: $90
- Lead a team of skilled drivers as a Courier Captain. Your decision-making abilities and leadership skills will be essential for the success of your crew.
Delivery Mogul (Grade 6)
- Salary: $110
- Reach the pinnacle of the Delivery Driver profession as a Delivery Mogul. You’ll make critical business decisions, expand your delivery empire, and establish a lasting legacy in the world of logistics.
Whether you’re delivering hot pizzas, important documents, or online shopping orders, the life of a Delivery Driver is never dull. Your ability to navigate the streets swiftly and handle all sorts of deliveries will make you a sought-after asset in the bustling city.
DJ
Step into the spotlight and become the life of the party as a DJ. In this exhilarating role, you’ll command the turntables, create music magic, and keep the dance floor grooving all night long.
Amateur DJ (Grade 0)
- Salary: $30
- Start your DJ journey as an Amateur DJ, learning the basics of mixing tracks and building your music collection.
Party Mixer (Grade 1)
- Salary: $50
- As a Party Mixer, you’ll be in charge of rocking small to medium-sized events, making sure everyone has a blast on the dance floor.
Club DJ (Grade 2)
- Salary: $80
- Progress to become a Club DJ, where you’ll play at the hottest nightclubs in town, curating the perfect beats and vibes for the crowd.
Radio Host (Grade 3)
- Salary: $100
- Take your skills to the airwaves as a Radio Host, entertaining listeners with your music selection and charismatic on-air presence.
Festival Headliner (Grade 4)
- Salary: $150
- As a Festival Headliner, you’ll be the main attraction at music festivals, drawing thousands of fans from all over with your electrifying sets.
Music Producer (Grade 5)
- Salary: $200
- Expand your horizons as a Music Producer, creating your own original tracks and collaborating with other artists to make chart-topping hits.
DJ Superstar (Grade 6)
- Salary: $250
- Reach the pinnacle of DJ stardom as a DJ Superstar. Your name will be synonymous with music excellence, and you’ll have fans all around the world.
Being a DJ isn’t just a job; it’s a lifestyle. You’ll immerse yourself in the world of music, mastering the art of mixing and blending tracks to create unforgettable experiences. From intimate parties to massive festivals, your talent will set the mood and make every event unforgettable.
Drug Dealer
Enter the gritty underworld of illicit substances as a Drug Dealer. This high-risk, high-reward profession involves navigating the shadows, making connections, and raking in the profits. But beware, the law is always on your tail, and rival dealers are waiting to cut into your territory.
Street Peddler (Grade 0)
- Income: $50
- As a Street Peddler, you’ll start your journey by selling small quantities of various narcotics on street corners and in alleys.
Small-Time Dealer (Grade 1)
- Income: $100
- Progress to become a Small-Time Dealer, expanding your reach and clientele while avoiding the authorities.
Drug Kingpin (Grade 2)
- Income: $200
- Rise through the ranks to become a Drug Kingpin, controlling a substantial portion of the city’s drug trade and managing your criminal empire.
Narcotics Syndicate (Grade 3)
- Income: $350
- Establish a powerful Narcotics Syndicate, working with other criminal organizations to maximize your profits and influence.
Cartel Leader (Grade 4)
- Income: $500
- As a Cartel Leader, you’ll be at the helm of a drug cartel, orchestrating international drug trafficking operations and living a life of luxury.
Underground Chemist (Grade 5)
- Income: $750
- Dive into the world of chemistry as an Underground Chemist, producing your own high-quality narcotics and staying one step ahead of the competition.
Drug Lord (Grade 6)
- Income: $1,000
- Reach the pinnacle of the drug trade as a feared Drug Lord. Your name will be synonymous with power and danger.
Becoming a Drug Dealer means living on the edge, where every deal could lead to immense wealth or dire consequences. You’ll need street smarts, cunning, and the ability to stay one step ahead of the law enforcement agencies aiming to bring you down.
Fisherman
Dive into the world of the “Fisherman” and experience life on the high seas and serene lakes. As a fisherman, you’ll navigate waters, cast your nets, and bring in the catch of the day. Whether you’re a novice or a seasoned angler, this job offers a tranquil yet challenging way to make a living.
Beginner Angler (Grade 0)
- Income: $50
- Start your journey as a Beginner Angler, learning the basics of fishing and catching smaller fish.
Amateur Fisher (Grade 1)
- Income: $100
- Progress to become an Amateur Fisher, mastering the art of angling and reeling in more valuable fish species.
Experienced Fisherman (Grade 2)
- Income: $200
- As an Experienced Fisherman, you’ll have a reputation for your fishing skills and be able to tackle larger and more elusive fish.
Professional Angler (Grade 3)
- Income: $350
- Reach the level of a Professional Angler, known for your ability to navigate challenging waters and bring in rare catches.
Fishing Captain (Grade 4)
- Income: $500
- Become a Fishing Captain, leading your own crew of fishermen and exploring the vast oceans for the biggest prizes.
Master Angler (Grade 5)
- Income: $750
- Achieve the title of Master Angler, where you’re revered for your knowledge of fish species and your impressive catches.
Legendary Fisher (Grade 6)
- Income: $1,000
- Reach the pinnacle as a Legendary Fisher, having caught the most elusive and legendary sea creatures.
Fishing isn’t just about catching fish; it’s about the thrill of the hunt and the peace of the water. Whether you’re fishing for sustenance or sport, the Fisherman job offers a unique and relaxing experience.
Cast your line, set your hooks, and embark on a journey to become the ultimate Fisherman in your server’s world of opportunities.
Flight Instructor
Take to the skies and become a Flight Instructor, guiding aspiring pilots on their journey to mastering the art of aviation. In this thrilling and educational role, you’ll be responsible for teaching others how to soar through the clouds safely and confidently.
Trainee Pilot (Grade 0)
- Income: $20 per lesson
- As a Trainee Pilot, you’ll start by providing introductory flight lessons to beginners, covering the basics of aircraft control and navigation.
Novice Aviator (Grade 1)
- Income: $40 per lesson
- Progress to become a Novice Aviator, teaching more advanced flight maneuvers and helping students gain confidence in the cockpit.
Certified Instructor (Grade 2)
- Income: $60 per lesson
- Attain the title of Certified Instructor, where you’ll train pilots on emergency procedures, instrument flying, and advanced flight techniques.
Flight Specialist (Grade 3)
- Income: $100 per lesson
- As a Flight Specialist, you’ll have the expertise to teach complex topics such as aerobatics, cross-country navigation, and aircraft maintenance.
Chief Flight Instructor (Grade 4)
- Income: $150 per lesson
- Rise to the rank of Chief Flight Instructor, overseeing the training program and mentoring other instructors.
Aviation Mentor (Grade 5)
- Income: $200 per lesson
- Become an Aviation Mentor, guiding the most promising students through their journey to becoming professional pilots.
Flight School Director (Grade 6)
- Income: $300 per lesson
- Reach the pinnacle as a Flight School Director, where you’ll lead your own flight school, develop curriculum, and shape the future of aviation.
Being a Flight Instructor is not just a job; it’s a passion for aviation and a commitment to safety. You’ll watch your students evolve from nervous novices into skilled pilots capable of handling various aircraft.
Whether you dream of teaching commercial pilots or helping hobbyists take flight, the Flight Instructor job allows you to share your knowledge and love of flying with others.
Fly high, inspire future aviators, and ensure the skies are filled with confident and capable pilots under your guidance in your server’s aviation world.
Fueler (Truck)
If you have a passion for keeping vehicles on the road, the Fueler (Truck) job is perfect for you. As a Fueler for trucks, you’ll play a vital role in ensuring that various vehicles, from delivery trucks to construction vehicles, have the fuel they need to keep moving.
Fueling Assistant (Grade 0)
- Salary: $12 per refueling
- Begin your career as a Fueling Assistant, learning the ropes of refueling and maintaining truck fleets.
Fuel Technician (Grade 1)
- Salary: $18 per refueling
- Progress to become a Fuel Technician, responsible for efficiently refueling and maintaining different types of trucks.
Diesel Mechanic (Grade 2)
- Salary: $25 per refueling
- Advance to the level of Diesel Mechanic, where you’ll specialize in handling diesel trucks, performing basic maintenance, and ensuring fuel efficiency.
Fleet Supervisor (Grade 3)
- Salary: $35 per refueling
- As a Fleet Supervisor, you’ll oversee the refueling operations for a variety of truck fleets and coordinate schedules.
Fueling Manager (Grade 4)
- Salary: $45 per refueling
- Become a Fueling Manager, responsible for managing a team of fuelers, optimizing fueling processes, and maintaining inventory.
Transportation Fuel Specialist (Grade 5)
- Salary: $55 per refueling
- Attain the title of Transportation Fuel Specialist, where you’ll handle specialized fuels for specific trucking needs and make strategic decisions.
Chief Fuel Officer (Grade 6)
- Salary: $70 per refueling
- Reach the highest rank as a Chief Fuel Officer, overseeing all fueling operations for trucks, managing logistics, and ensuring the smooth flow of transportation.
As a Fueler (Truck), you’ll work closely with various truck drivers and fleet managers to ensure that the vehicles stay on the road and deliveries are made efficiently. Your expertise in truck refueling and maintenance will be crucial to the success of transportation operations in your server’s world.
Lumberjack
Venture into the great outdoors and embrace the rugged life of a Lumberjack. This job is not for the faint of heart but promises an exhilarating experience in the heart of the wilderness.
Lumberjack Trainee (Grade 0)
- Salary: Commission-based
- Begin your journey as a Lumberjack Trainee, learning the art of felling trees and processing timber.
Woodcutter (Grade 1)
- Salary: Commission-based
- Rise to the rank of Woodcutter, where you’ll become proficient in efficiently cutting down trees and preparing logs for transport.
Forestry Technician (Grade 2)
- Salary: Commission-based
- Advance to the role of Forestry Technician, responsible for managing tree farms and overseeing sustainable logging practices.
Timber Specialist (Grade 3)
- Salary: Commission-based
- Become a Timber Specialist, skilled in identifying premium timber, maximizing lumber yield, and ensuring environmental compliance.
Lumberyard Supervisor (Grade 4)
- Salary: Commission-based
- Take charge as a Lumberyard Supervisor, where you’ll oversee the sorting, stacking, and storage of timber at the lumberyard.
Forest Manager (Grade 5)
- Salary: Commission-based
- Excel to the position of Forest Manager, responsible for managing entire forests, implementing conservation practices, and planning sustainable logging operations.
Lumber Baron (Grade 6)
- Salary: Commission-based
- Reach the pinnacle as a Lumber Baron, where you’ll own and operate your timber empire, making strategic business decisions and dominating the lumber industry.
As a Lumberjack, you’ll work amidst the towering trees, mastering the art of felling and processing timber. Your dedication to sustainable logging practices and your ability to manage forests responsibly will ensure a steady supply of lumber for construction and crafting needs in your server’s world. Embrace the call of the wild and become a true Lumberjack!
News Anchor
Step into the fast-paced world of broadcasting and journalism as a News Anchor. In this exciting and influential role, you’ll be at the forefront of delivering news, updates, and stories to your server’s community.
News Intern (Grade 0)
- Salary: Entry-level
- Begin your journey as a News Intern, learning the ropes of journalism and gaining valuable experience in the newsroom.
Junior Reporter (Grade 1)
- Salary: Competitive
- Rise to the rank of Junior Reporter, covering local events, conducting interviews, and delivering news reports to inform and engage your audience.
Senior Correspondent (Grade 2)
- Salary: Competitive
- Advance to the role of Senior Correspondent, specializing in in-depth reporting, investigative journalism, and breaking news coverage.
News Anchor (Grade 3)
- Salary: Competitive
- Become a News Anchor, the face of your server’s news broadcasts. You’ll be responsible for presenting news stories, conducting live interviews, and providing expert analysis.
Lead Anchor (Grade 4)
- Salary: Competitive
- Take on the role of Lead Anchor, where you’ll lead the news team, make editorial decisions, and ensure the highest quality news coverage.
News Director (Grade 5)
- Salary: Competitive
- Excel to the position of News Director, overseeing the entire news department, setting editorial direction, and shaping the server’s news agenda.
Network Executive (Grade 6)
- Salary: Competitive
- Reach the pinnacle as a Network Executive, where you’ll have a hand in strategic planning, business development, and the overall success of the news network.
As a News Anchor, you’ll be responsible for delivering accurate and timely news updates to keep the server’s community well-informed. Whether you’re reporting on local events, conducting in-depth investigations, or anchoring live broadcasts, your role as a News Anchor is crucial in shaping public opinion and fostering engagement. Join the ranks of journalism and become a trusted source of information and entertainment for your server!
Mechanic
Join the world of grease, gears, and engines as a Mechanic. As a vital part of the automotive industry, you’ll be responsible for maintaining, repairing, and fine-tuning various vehicles, ensuring they run smoothly on the server’s virtual roads.
Recruit (Grade 0)
- Salary: Entry-level
- Begin your career as a Recruit Mechanic, learning the basics of vehicle maintenance and repair while working under the guidance of experienced technicians.
Novice (Grade 1)
- Salary: Competitive
- Advance to the role of Novice Mechanic, where you’ll gain more experience and confidence in diagnosing and fixing common vehicle issues.
Experienced (Grade 2)
- Salary: Competitive
- As an Experienced Mechanic, you’ll handle a wide range of vehicle repairs and maintenance tasks, earning the trust of your clients and colleagues.
Leader (Grade 3)
- Salary: Competitive
- Take on the position of Leader Mechanic, overseeing repair teams and managing complex automotive projects, ensuring quality work and customer satisfaction.
Boss (Grade 4)
- Salary: Competitive
- Reach the pinnacle of the automotive world as a Boss Mechanic. You’ll manage your own auto repair shop, making business decisions, and setting the standard for excellence.
Master Mechanic (Grade 5)
- Salary: Competitive
- Become a Master Mechanic, recognized for your exceptional skills and expertise in handling all types of vehicles, from classic cars to modern marvels.
Engine Whisperer (Grade 6)
- Salary: Competitive
- Achieve legendary status as an Engine Whisperer, known for your ability to resurrect even the most stubborn of vehicles and turn them into masterpieces.
In the role of a Mechanic, you’ll dive into the world of automotive repair, offering your skills to keep the server’s vehicles running smoothly. Whether it’s fixing engines, tuning performance, or customizing cars to perfection, your work as a Mechanic is essential to the server’s transportation infrastructure. Join the ranks of skilled technicians and leave your mark on the virtual roads!
Miner
Delve deep into the virtual earth and embark on an underground adventure as a Miner. Your job is to extract valuable resources from the server’s vast underground landscape, contributing to the economy and development of the server.
Employee (Grade 0)
- Salary: Entry-level
- As an Employee Miner, you’ll start your journey by learning the basics of mining and resource extraction. You’ll work in teams to gather valuable ores and minerals.
Laborer (Grade 1)
- Salary: Competitive
- Progress to the role of Laborer Miner, where you’ll gain more experience in mining techniques and begin to specialize in specific types of resources.
Digger (Grade 2)
- Salary: Competitive
- As a Digger Miner, you’ll become proficient in operating heavy mining equipment and machinery, increasing your resource extraction efficiency.
Foreman (Grade 3)
- Salary: Competitive
- Take on the responsibilities of a Foreman Miner, overseeing mining operations, managing teams, and ensuring the safe and efficient extraction of resources.
Mining Engineer (Grade 4)
- Salary: Competitive
- Reach the position of Mining Engineer, where your expertise in geological analysis and resource management will be instrumental in optimizing mining operations.
Mine Owner (Grade 5)
- Salary: Competitive
- Become a Mine Owner and manage your mining empire, making strategic decisions to expand your mining operations and increase your wealth.
Mineral Magnate (Grade 6)
- Salary: Competitive
- Achieve the title of Mineral Magnate, known for your vast wealth and control over the server’s most valuable resources. Your influence in the mining industry is unmatched.
As a Miner, you’ll work tirelessly underground, extracting valuable ores and minerals that fuel the server’s economy and technological advancements. Whether you’re seeking precious metals, rare gemstones, or valuable minerals, your contributions as a Miner play a crucial role in the server’s growth and prosperity. So grab your pickaxe, put on your mining helmet, and embark on a journey into the depths of the virtual world!
Police
Maintain law and order in the virtual realm as a dedicated officer of the law in the Police force. Your duty is to uphold justice, protect citizens, and ensure a safe environment within the server.
Recruit (Grade 0)
- Salary: $20
- As a Recruit, you’ll undergo training to familiarize yourself with the server’s laws and regulations. You’ll patrol the streets and assist in various tasks, learning the basics of law enforcement.
Officer (Grade 1)
- Salary: $40
- Progress to the role of Officer, where you’ll take on more responsibilities. You’ll respond to incidents, conduct investigations, and work closely with the community to maintain peace.
Sergeant (Grade 2)
- Salary: $60
- As a Sergeant, you’ll lead teams of officers, coordinate operations, and provide guidance in complex situations. Your experience and leadership skills are crucial to maintaining order.
Lieutenant (Grade 3)
- Salary: $85
- Reach the position of Lieutenant, overseeing larger areas and divisions within the Police force. You’ll play a key role in developing and implementing strategies for crime prevention.
Captain (Grade 4)
- Salary: $100
- Assume the rank of Captain, where you’ll lead entire precincts and divisions. You’ll make important decisions, allocate resources, and maintain a strong presence in the server’s law enforcement community.
Chief (Grade 5)
- Salary: Competitive
- Become the Chief of Police, responsible for the overall operation of the Police force. You’ll set policies, manage budgets, and ensure that justice is served throughout the server.
Police Commissioner (Grade 6)
- Salary: Competitive
- Achieve the prestigious title of Police Commissioner, known for your unwavering commitment to justice. You’ll work closely with server administrators to shape law enforcement policies and lead the force to greatness.
As a Police officer, you’ll be at the forefront of ensuring a safe and orderly environment for all server users. From handling routine traffic stops to investigating complex crimes, your dedication and bravery are essential in maintaining the server’s security. Join the ranks of the Police force and be a beacon of justice in the virtual world!
Reporter
Uncover the latest stories, events, and scandals in the virtual world as a dedicated Reporter. Your role is to provide up-to-the-minute news coverage, conduct interviews, and deliver breaking news to the server’s community.
Employee (Grade 0)
- Salary: $0 (Internship)
- As an Employee, you start as an intern, eager to learn the ropes of journalism. You’ll assist senior reporters, write articles, and gather news material to build your skills.
Junior Reporter (Grade 1)
- Salary: $15
- Step into the role of a Junior Reporter, where you’ll have the chance to write your own articles and cover small-scale events. Your reporting skills will begin to shine.
Senior Reporter (Grade 2)
- Salary: $30
- Progress to the Senior Reporter position, taking on more significant stories and investigative work. You’ll conduct interviews, analyze data, and provide in-depth coverage of server events.
Editor (Grade 3)
- Salary: $45
- As an Editor, you’ll oversee the publication process, ensuring that articles are well-written and meet editorial standards. You’ll have a hand in shaping the server’s news landscape.
Chief Editor (Grade 4)
- Salary: Competitive
- Reach the rank of Chief Editor, where you’ll lead the entire news team. You’ll make editorial decisions, manage reporters, and play a pivotal role in shaping server news coverage.
News Director (Grade 5)
- Salary: Competitive
- Assume the role of News Director, responsible for the server’s entire news division. You’ll set editorial policies, guide the team, and ensure that the server stays well-informed.
Media Mogul (Grade 6)
- Salary: Competitive
- Become a Media Mogul, known for your influence and impact on the server’s news landscape. You’ll work closely with server administrators to shape news policies and lead the media industry.
As a Reporter, you’ll have the opportunity to be the eyes and ears of the server, bringing important information and stories to the community. Whether you’re covering in-game events, conducting interviews with server celebrities, or breaking news on major updates, your dedication to reporting will make you an essential part of the virtual world’s narrative. Join the server’s news team and be the voice that keeps everyone informed!
Slaughterer (Butcher)
Embrace the art of butchery and ensure a steady supply of fresh meat for the server’s inhabitants as a Slaughterer, also known as a Butcher. Your role involves processing animals, preparing meat cuts, and managing inventory to keep everyone well-fed.
Employee (Grade 0)
- Salary: $0 (Trainee)
- As an Employee, you start your journey as a Trainee Slaughterer. You’ll learn the basics of meat processing, safety protocols, and inventory management.
Butcher (Grade 1)
- Salary: $10
- Progress to the rank of Butcher, where you’ll be responsible for slaughtering animals and breaking down carcasses into various cuts of meat. Precision and efficiency are key.
Meat Cutter (Grade 2)
- Salary: $20
- Become a skilled Meat Cutter, specializing in creating specific meat cuts. You’ll work with different types of meat and ensure quality and consistency in your cuts.
Inventory Manager (Grade 3)
- Salary: $30
- Take on the role of Inventory Manager, overseeing stock levels, ordering supplies, and ensuring the server’s meat storage is well-organized.
Shop Owner (Grade 4)
- Salary: $45
- Establish your own Butcher Shop within the server. You’ll manage your business, serve customers, and have the opportunity to expand and grow your meat empire.
Master Butcher (Grade 5)
- Salary: Competitive
- Attain the prestigious title of Master Butcher. You’ll be renowned for your expertise in meat processing, and you may even become a mentor to aspiring butchers.
Meat Mogul (Grade 6)
- Salary: Competitive
- As a Meat Mogul, you’ll dominate the server’s meat industry. You’ll have the power to influence meat prices, control supply chains, and shape the server’s culinary landscape.
As a Slaughterer (Butcher), you play a crucial role in providing sustenance to the server’s inhabitants. Your dedication to meat processing ensures that everyone can enjoy a variety of delicious dishes. Whether you’re just starting as a Trainee or aiming to become a renowned Master Butcher, your expertise will be in high demand, making you an essential part of the server’s economy and culinary culture. Join the ranks of the server’s Butchers and carve out a successful career in the world of meat!
Tailor
Unleash your creativity and fashion sense as a Tailor in the server. As a Tailor, you’ll be responsible for crafting a wide range of clothing and accessories, ensuring that the server’s inhabitants look their best.
Employee (Grade 0)
- Salary: $0 (Apprentice)
- Begin your journey as an Apprentice Tailor. You’ll learn the basics of sewing, fabric selection, and garment construction.
Seamstress/Seamster (Grade 1)
- Salary: $10
- Progress to become a skilled Seamstress (female) or Seamster (male). You’ll specialize in creating everyday clothing and minor alterations.
Fashion Designer (Grade 2)
- Salary: $20
- Elevate your skills as a Fashion Designer. You’ll have the opportunity to create unique and stylish clothing pieces, setting fashion trends in the server.
Bespoke Tailor (Grade 3)
- Salary: $30
- As a Bespoke Tailor, you’ll cater to the server’s elite clientele, crafting custom-made garments that fit perfectly and showcase your craftsmanship.
Fashion Boutique Owner (Grade 4)
- Salary: $45
- Establish your own Fashion Boutique, offering a curated selection of clothing and accessories. Manage your boutique, serve customers, and expand your fashion empire.
Couturier (Grade 5)
- Salary: Competitive
- Attain the prestigious title of Couturier. Your haute couture creations will be sought after by fashion enthusiasts, making you a fashion icon on the server.
Fashion Magnate (Grade 6)
- Salary: Competitive
- As a Fashion Magnate, you’ll dominate the server’s fashion industry. You’ll have the influence to set fashion trends, organize fashion events, and shape the server’s style culture.
As a Tailor, you have the power to transform fabrics into works of art, and your creations will define the server’s fashion landscape. Whether you’re starting as an Apprentice or aiming to become a renowned Couturier, your talent for fashion design and garment construction will be in high demand. Join the ranks of the server’s Tailors and make a stylish impact on the server’s inhabitants!
Taxi
Hit the road and embark on a career as a Taxi driver in the server. As a Taxi driver, you’ll provide essential transportation services to the community, helping citizens reach their destinations safely and efficiently.
Recruit (Grade 0)
- Salary: $12 (Trainee)
- Begin your journey as a Trainee Cabby, learning the basics of navigation, customer service, and driving skills. Pick up passengers and get them to their destinations.
Novice (Grade 1)
- Salary: $24
- Progress to become a Novice Cabby, gaining experience in handling different routes and passenger requests. Improve your driving skills and knowledge of the city.
Experienced (Grade 2)
- Salary: $36
- As an Experienced Cabby, you’ll be well-versed in the city’s streets and shortcuts. Provide top-notch service to your passengers, earning their loyalty.
Uber Cabby (Grade 3)
- Salary: $48
- Take your taxi career to the next level by becoming an Uber Cabby. Offer premium rides and additional services, such as carpooling or luxury vehicles.
Lead Cabby (Grade 4)
- Salary: Competitive
- Reach the pinnacle of the taxi industry as a Lead Cabby. Manage your own fleet of taxis, coordinate routes, and expand your taxi business empire.
As a Taxi driver, you’ll navigate through the city’s bustling streets, ensuring that passengers reach their destinations promptly and safely. Whether you’re just starting as a Trainee Cabby or aiming to become a successful Lead Cabby with your own fleet, your dedication to providing transportation services will be valued by the server’s residents. Join the ranks of Taxi drivers and become an essential part of the server’s transportation network!
Unemployed
The “Unemployed” job offers a unique progression system, allowing players to advance through various roles as they gain experience and expertise in different fields. Starting as a “Job Seeker” and climbing up to the highest ranks, players can explore different career paths and opportunities within the server.
Job Seeker (Grade 1)
- Salary: $5
- Begin your journey as a Job Seeker, exploring the server and seeking employment opportunities.
Freelancer (Grade 2)
- Salary: $10
- As a Freelancer, you’ll have the flexibility to take on independent projects and earn a bit more.
Self-Employed (Grade 3)
- Salary: $15
- Transition to self-employment and start your small business, offering products or services to the community.
Small Business Owner (Grade 4)
- Salary: $25
- Grow your small business into a thriving enterprise, managing a team and expanding your reach.
Entrepreneur (Grade 5)
- Salary: $35
- Venture into new business opportunities and innovations, taking calculated risks for potential rewards.
Business Magnate (Grade 6)
- Salary: $50
- Establish yourself as a Business Magnate, overseeing multiple successful businesses and investments.
Tycoon (Grade 7)
- Salary: $100
- Become a Tycoon, with a significant influence on the server’s economy and business landscape.
Unemployed Mogul (Grade 8)
- Salary: $200
- Reach the status of an Unemployed Mogul, known for your wealth, power, and extensive business empire.
Server Owner (Grade 9)
- Salary: $500
- Take control of the server itself as a Server Owner, responsible for its operation and development.
Grandmaster (Grade 10)
- Salary: $1000
- Attain the prestigious rank of Grandmaster, a symbol of excellence and mastery within the server.
Server Developer (Grade 11)
- Salary: $2000
- As a Server Developer, you play a crucial role in shaping the server’s features and functionality.
Coder (Grade 12)
- Salary: $3000
- Ascend to the rank of Coder, known for your coding expertise and contributions to the server’s success.
Scripting God (Grade 13)
- Salary: $5000
- Achieve the title of Scripting God, demonstrating unparalleled scripting skills and knowledge.
AI Programmer (Grade 14)
- Salary: $10000
- Finally, become the AI Programmer, a position of utmost respect and influence in the server’s technology landscape.
The “Unemployed” job provides players with a wide range of opportunities to explore different career paths, from traditional employment to entrepreneurial endeavors and even server development. Progress through the grades, accumulate wealth and influence, and leave your mark on the server’s dynamic economy and community.
3.2 -
FiveM Server Management Script
This shell script facilitates the management and operation of a FiveM server within a Linux environment. It automates tasks such as server creation, starting, stopping, and monitoring within a screen
session.
Prerequisites
Before using this script, ensure the following conditions are met:
- Linux Environment: The script is intended for use on Linux servers.
- Git and xz-utils: These packages must be installed for the script to function correctly.
- Server Directory: The script will create a new directory for the server based on your input.
- Configuration File: The script generates a basic
server.cfg
file, which you can customize as needed.
Installation
To install and use the script, you’ll need to follow these steps:
Obtain the Script:
You have two main options for obtaining the script:
Direct Download: If the script is hosted online (such as on a GitHub repository or a website), you can download it directly. Here’s how:
- Go to the source URL where the script is hosted.
- Look for a download option or link. On GitHub, this might be a “Download” button or a command to clone the repository.
- If it’s a GitHub repository, you can clone it with:
git clone https://github.com/Syslogine/fivem-server-manager.git
- Save the script file to a directory of your choice on your Linux server.
Manual Creation: If direct download is not an option, or if you prefer creating the file manually, follow these steps:
- Open a text editor on your Linux server.
- Create a new file with a
.sh
extension (for example,fivem_manager.sh
). - Copy and paste the content of the provided script into this new file.
- Save the file in a directory where you wish to run the server management script.
Make the Script Executable:
Once you have the script on your server, you need to make it executable. This allows the Linux system to run the script as a program. Here’s how to do it:
- Open your terminal.
- Navigate to the directory where you saved the script. For example, if you saved it in
/home/user/scripts
, use the command:cd /home/user/scripts
- Change the permissions of the script file to make it executable. Replace
fivemanager.sh
with the actual name of your script file:chmod +x fivemanager.sh
- This command sets the execute permission for the user who owns the file, enabling you to run the script.
After completing these steps, the script will be ready to use. You can run it from the terminal in the directory where it’s located using commands like ./fivemanager.sh create
, ./fivemanager.sh start
, and so on, as described in the Usage section of the documentation.
Usage
Once the script is executable, you can use it to manage your FiveM server. Here’s a breakdown of each command and its function:
Create the Server
./fivemanager.sh create
What it does:
- Prompts for Server Name: You will be asked to enter a name for your server. This name is used to create a dedicated directory for your server.
- Prompts for Server Build URL: You need to provide the URL of the FiveM server build you wish to use. This is where your server will download the necessary files from.
- Checks Dependencies: The script checks if required dependencies (like Git and xz-utils) are installed. If not, it will alert you.
- Creates Directories and Configuration Files: It sets up the server’s directory structure, including a resources folder and a basic
server.cfg
file for initial configuration.
When to use it: Run this command when you first set up your FiveM server or when you want to set up a new server instance.
Start the Server
./fivemanager.sh start
What it does:
- Starts the Server in a Screen Session: If the server isn’t already running, the script will start it in a detached
screen
session. This allows the server to run in the background. - Handles Multiple Sessions: If a session with the server’s name already exists, it prevents starting another instance, ensuring that you don’t accidentally run multiple servers.
- Starts the Server in a Screen Session: If the server isn’t already running, the script will start it in a detached
When to use it: Use this command to start the server after creating it or whenever you need to restart the server after stopping it.
Stop the Server
./fivemanager.sh stop
What it does:
- Stops the Server Gracefully: This command stops the running screen session that contains your server, effectively stopping the server without abrupt termination.
When to use it: Run this command to stop the server for maintenance, updates, or when it’s no longer in use.
Check Server Status
./fivemanager.sh status
What it does:
- Displays the Server’s Status: The script checks whether the server’s screen session is active and informs you if the server is running or not.
When to use it: This command is useful for quickly checking if your server is up and running, especially useful in troubleshooting scenarios.
Attach to Server Session
./fivemanager.sh attach
What it does:
- Attaches to the Active Server Session: This allows you to interact directly with the server’s console. It’s useful for server administration tasks that require direct console access.
- Detaching: To detach and leave the server running in the background, press
Ctrl+A
followed byD
.
When to use it: Use this command when you need to perform manual operations or checks on the server through the console.
Invalid Command or Help
./fivemanager.sh
What it does:
- Displays Usage Instructions: If you provide an invalid command or no arguments, the script will display a help message outlining the valid commands and their basic usage.
When to use it: Run this command if you are unsure of the available commands or need a reminder of how to use the script.
Error Handling
The script includes checks for required dependencies and displays error messages if necessary. It ensures that all prerequisites are met before proceeding with server operations.
Contributions
Your contributions to improve or enhance this script are welcome. Feel free to modify, fork, or suggest improvements through pull requests
3.3 -
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(27, 'ambulance', 0, 'jremt', 'Jr. EMT', 25, '{}', '{}'),
(28, 'ambulance', 1, 'emt', 'EMT', 50, '{}', '{}'),
(29, 'ambulance', 2, 'sr_emt', 'Sr. EMT', 75, '{}', '{}'),
(30, 'ambulance', 3, 'emt_supervisor', 'EMT Supervisor', 100, '{}', '{}'),
(31, 'ambulance', 4, 'chief_emt', 'Chief EMT', 125, '{}', '{}'),
(32, 'ambulance', 5, 'ambulance_supervisor', 'Ambulance Supervisor', 150, '{}', '{}'),
(33, 'ambulance', 6, 'ambulance_manager', 'Ambulance Manager', 175, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(36, 'banker', 0, 'consultant', 'Consultant', 10, '{}', '{}'),
(37, 'banker', 1, 'banker', 'Banker', 20, '{}', '{}'),
(38, 'banker', 2, 'business_banker', 'Investment Banker', 30, '{}', '{}'),
(39, 'banker', 3, 'trader', 'Broker', 40, '{}', '{}'),
(40, 'banker', 4, 'bank_manager', 'Bank Manager', 50, '{}', '{}'),
(41, 'banker', 5, 'bank_director', 'Bank Director', 60, '{}', '{}'),
(42, 'banker', 6, 'bank_executive', 'Bank Executive', 70, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(43, 'bartender', 0, 'barback', 'Barback', 10, '{}', '{}'),
(44, 'bartender', 1, 'apprentice_bartender', 'Apprentice Bartender', 20, '{}', '{}'),
(45, 'bartender', 2, 'mixologist', 'Mixologist', 30, '{}', '{}'),
(46, 'bartender', 3, 'senior_bartender', 'Senior Bartender', 40, '{}', '{}'),
(47, 'bartender', 4, 'bar_manager', 'Bar Manager', 50, '{}', '{}'),
(48, 'bartender', 5, 'nightclub_owner', 'Nightclub Owner', 60, '{}', '{}'),
(49, 'bartender', 6, 'cocktail_mogul', 'Cocktail Mogul', 70, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(50, 'bountyhunter', 0, 'trainee_hunter', 'Trainee Hunter', 20, '{}', '{}'),
(51, 'bountyhunter', 1, 'licensed_hunter', 'Licensed Hunter', 40, '{}', '{}'),
(52, 'bountyhunter', 2, 'experienced_hunter', 'Experienced Hunter', 60, '{}', '{}'),
(53, 'bountyhunter', 3, 'master_hunter', 'Master Hunter', 80, '{}', '{}'),
(54, 'bountyhunter', 4, 'bounty_hunter_chief', 'Bounty Hunter Chief', 100, '{}', '{}'),
(55, 'bountyhunter', 5, 'bounty_hunter_guild_leader', 'Bounty Hunter Guild Leader', 120, '{}', '{}'),
(56, 'bountyhunter', 6, 'legendary_bounty_hunter', 'Legendary Bounty Hunter', 140, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(57, 'busdriver', 0, 'novice_driver', 'Novice Driver', 15, '{}', '{}'),
(58, 'busdriver', 1, 'experienced_driver', 'Experienced Driver', 30, '{}', '{}'),
(59, 'busdriver', 2, 'route_supervisor', 'Route Supervisor', 45, '{}', '{}'),
(60, 'busdriver', 3, 'fleet_manager', 'Fleet Manager', 60, '{}', '{}'),
(61, 'busdriver', 4, 'transportation_director', 'Transportation Director', 75, '{}', '{}'),
(62, 'busdriver', 5, 'public_transit_executive', 'Public Transit Executive', 90, '{}', '{}'),
(63, 'busdriver', 6, 'city_transport_commissioner', 'City Transport Commissioner', 105, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(64, 'cardealer', 0, 'sales_trainee', 'Sales Trainee', 20, '{}', '{}'),
(65, 'cardealer', 1, 'sales_associate', 'Sales Associate', 40, '{}', '{}'),
(66, 'cardealer', 2, 'experienced_salesperson', 'Experienced Salesperson', 60, '{}', '{}'),
(67, 'cardealer', 3, 'sales_manager', 'Sales Manager', 80, '{}', '{}'),
(68, 'cardealer', 4, 'luxury_car_specialist', 'Luxury Car Specialist', 100, '{}', '{}'),
(69, 'cardealer', 5, 'dealership_director', 'Dealership Director', 120, '{}', '{}'),
(70, 'cardealer', 6, 'automotive_tycoon', 'Automotive Tycoon', 140, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(71, 'casinodealer', 0, 'trainee_dealer', 'Trainee Dealer', 20, '{}', '{}'),
(72, 'casinodealer', 1, 'card_shark', 'Card Shark', 40, '{}', '{}'),
(73, 'casinodealer', 2, 'roulette_pro', 'Roulette Pro', 60, '{}', '{}'),
(74, 'casinodealer', 3, 'poker_master', 'Poker Master', 80, '{}', '{}'),
(75, 'casinodealer', 4, 'blackjack_kingpin', 'Blackjack Kingpin', 100, '{}', '{}'),
(76, 'casinodealer', 5, 'casino_supervisor', 'Casino Supervisor', 120, '{}', '{}'),
(77, 'casinodealer', 6, 'casino_manager', 'Casino Manager', 140, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(78, 'deliverydriver', 0, 'trainee_driver', 'Trainee Driver', 15, '{}', '{}'),
(79, 'deliverydriver', 1, 'local_courier', 'Local Courier', 30, '{}', '{}'),
(80, 'deliverydriver', 2, 'express_delivery_specialist', 'Express Delivery Specialist', 45, '{}', '{}'),
(81, 'deliverydriver', 3, 'fleet_supervisor', 'Fleet Supervisor', 60, '{}', '{}'),
(82, 'deliverydriver', 4, 'logistics_manager', 'Logistics Manager', 75, '{}', '{}'),
(83, 'deliverydriver', 5, 'courier_captain', 'Courier Captain', 90, '{}', '{}'),
(84, 'deliverydriver', 6, 'delivery_mogul', 'Delivery Mogul', 110, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(85, 'dj', 0, 'amateur_dj', 'Amateur DJ', 30, '{}', '{}'),
(86, 'dj', 1, 'party_mixer', 'Party Mixer', 50, '{}', '{}'),
(87, 'dj', 2, 'club_dj', 'Club DJ', 80, '{}', '{}'),
(88, 'dj', 3, 'radio_host', 'Radio Host', 100, '{}', '{}'),
(89, 'dj', 4, 'festival_headliner', 'Festival Headliner', 150, '{}', '{}'),
(90, 'dj', 5, 'music_producer', 'Music Producer', 200, '{}', '{}'),
(91, 'dj', 6, 'dj_superstar', 'DJ Superstar', 250, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(92, 'drug_dealer', 0, 'street_peddler', 'Street Peddler', 50, '{}', '{}'),
(93, 'drug_dealer', 1, 'small_time_dealer', 'Small-Time Dealer', 100, '{}', '{}'),
(94, 'drug_dealer', 2, 'drug_kingpin', 'Drug Kingpin', 200, '{}', '{}'),
(95, 'drug_dealer', 3, 'narcotics_syndicate', 'Narcotics Syndicate', 350, '{}', '{}'),
(96, 'drug_dealer', 4, 'cartel_leader', 'Cartel Leader', 500, '{}', '{}'),
(97, 'drug_dealer', 5, 'underground_chemist', 'Underground Chemist', 750, '{}', '{}'),
(98, 'drug_dealer', 6, 'drug_lord', 'Drug Lord', 1000, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(99, 'fisherman', 0, 'beginner_angler', 'Beginner Angler', 25, '{}', '{}'),
(100, 'fisherman', 1, 'amateur_fisher', 'Amateur Fisher', 50, '{}', '{}'),
(101, 'fisherman', 2, 'experienced_fisherman', 'Experienced Fisherman', 75, '{}', '{}'),
(102, 'fisherman', 3, 'professional_angler', 'Professional Angler', 100, '{}', '{}'),
(103, 'fisherman', 4, 'fishing_captain', 'Fishing Captain', 125, '{}', '{}'),
(104, 'fisherman', 5, 'master_angler', 'Master Angler', 150, '{}', '{}'),
(105, 'fisherman', 6, 'legendary_fisher', 'Legendary Fisher', 175, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(106, 'flight_instructor', 0, 'trainee_pilot', 'Trainee Pilot', 20, '{}', '{}'),
(107, 'flight_instructor', 1, 'novice_aviator', 'Novice Aviator', 40, '{}', '{}'),
(108, 'flight_instructor', 2, 'certified_instructor', 'Certified Instructor', 60, '{}', '{}'),
(109, 'flight_instructor', 3, 'flight_specialist', 'Flight Specialist', 100, '{}', '{}'),
(110, 'flight_instructor', 4, 'chief_flight_instructor', 'Chief Flight Instructor', 150, '{}', '{}'),
(111, 'flight_instructor', 5, 'aviation_mentor', 'Aviation Mentor', 200, '{}', '{}'),
(112, 'flight_instructor', 6, 'flight_school_director', 'Flight School Director', 300, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(113, 'fueler_truck', 0, 'fueling_assistant', 'Fueling Assistant', 12, '{}', '{}'),
(114, 'fueler_truck', 1, 'fuel_technician', 'Fuel Technician', 18, '{}', '{}'),
(115, 'fueler_truck', 2, 'diesel_mechanic', 'Diesel Mechanic', 25, '{}', '{}'),
(116, 'fueler_truck', 3, 'fleet_supervisor', 'Fleet Supervisor', 35, '{}', '{}'),
(117, 'fueler_truck', 4, 'fueling_manager', 'Fueling Manager', 45, '{}', '{}'),
(118, 'fueler_truck', 5, 'transportation_fuel_specialist', 'Transportation Fuel Specialist', 55, '{}', '{}'),
(119, 'fueler_truck', 6, 'chief_fuel_officer', 'Chief Fuel Officer', 70, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(120, 'lumberjack', 0, 'lumberjack_trainee', 'Lumberjack Trainee', 30, '{}', '{}'),
(121, 'lumberjack', 1, 'woodcutter', 'Woodcutter', 45, '{}', '{}'),
(122, 'lumberjack', 2, 'forestry_technician', 'Forestry Technician', 60, '{}', '{}'),
(123, 'lumberjack', 3, 'timber_specialist', 'Timber Specialist', 75, '{}', '{}'),
(124, 'lumberjack', 4, 'lumberyard_supervisor', 'Lumberyard Supervisor', 90, '{}', '{}'),
(125, 'lumberjack', 5, 'forest_manager', 'Forest Manager', 110, '{}', '{}'),
(126, 'lumberjack', 6, 'lumber_baron', 'Lumber Baron', 130, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(127, 'news_anchor', 0, 'news_intern', 'News Intern', 20, '{}', '{}'),
(128, 'news_anchor', 1, 'junior_reporter', 'Junior Reporter', 40, '{}', '{}'),
(129, 'news_anchor', 2, 'senior_correspondent', 'Senior Correspondent', 60, '{}', '{}'),
(130, 'news_anchor', 3, 'news_anchor', 'News Anchor', 80, '{}', '{}'),
(131, 'news_anchor', 4, 'lead_anchor', 'Lead Anchor', 100, '{}', '{}'),
(132, 'news_anchor', 5, 'news_director', 'News Director', 120, '{}', '{}'),
(133, 'news_anchor', 6, 'network_executive', 'Network Executive', 140, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(134, 'mechanic', 0, 'recruit', 'Recruit', 25, '{}', '{}'),
(135, 'mechanic', 1, 'novice', 'Novice', 50, '{}', '{}'),
(136, 'mechanic', 2, 'experienced', 'Experienced', 75, '{}', '{}'),
(137, 'mechanic', 3, 'leader', 'Leader', 100, '{}', '{}'),
(138, 'mechanic', 4, 'boss', 'Boss', 125, '{}', '{}'),
(139, 'mechanic', 5, 'master_mechanic', 'Master Mechanic', 150, '{}', '{}'),
(140, 'mechanic', 6, 'engine_whisperer', 'Engine Whisperer', 175, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(141, 'miner', 0, 'employee', 'Employee', 25, '{}', '{}'),
(142, 'miner', 1, 'laborer', 'Laborer', 50, '{}', '{}'),
(143, 'miner', 2, 'digger', 'Digger', 75, '{}', '{}'),
(144, 'miner', 3, 'foreman', 'Foreman', 100, '{}', '{}'),
(145, 'miner', 4, 'mining_engineer', 'Mining Engineer', 125, '{}', '{}'),
(146, 'miner', 5, 'mine_owner', 'Mine Owner', 150, '{}', '{}'),
(147, 'miner', 6, 'mineral_magnate', 'Mineral Magnate', 175, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(148, 'police', 0, 'recruit', 'Recruit', 20, '{}', '{}'),
(149, 'police', 1, 'officer', 'Officer', 40, '{}', '{}'),
(150, 'police', 2, 'sergeant', 'Sergeant', 60, '{}', '{}'),
(151, 'police', 3, 'lieutenant', 'Lieutenant', 85, '{}', '{}'),
(152, 'police', 4, 'captain', 'Captain', 100, '{}', '{}'),
(153, 'police', 5, 'chief', 'Chief', 150, '{}', '{}'),
(154, 'police', 6, 'police_commissioner', 'Police Commissioner', 200, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(155, 'reporter', 0, 'employee', 'Employee', 0, '{}', '{}'),
(156, 'reporter', 1, 'junior_reporter', 'Junior Reporter', 15, '{}', '{}'),
(157, 'reporter', 2, 'senior_reporter', 'Senior Reporter', 30, '{}', '{}'),
(158, 'reporter', 3, 'editor', 'Editor', 45, '{}', '{}'),
(159, 'reporter', 4, 'chief_editor', 'Chief Editor', 75, '{}', '{}'),
(160, 'reporter', 5, 'news_director', 'News Director', 100, '{}', '{}'),
(161, 'reporter', 6, 'media_mogul', 'Media Mogul', 150, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(162, 'slaughterer', 0, 'employee', 'Employee', 0, '{}', '{}'),
(163, 'slaughterer', 1, 'butcher', 'Butcher', 10, '{}', '{}'),
(164, 'slaughterer', 2, 'meat_cutter', 'Meat Cutter', 20, '{}', '{}'),
(165, 'slaughterer', 3, 'inventory_manager', 'Inventory Manager', 30, '{}', '{}'),
(166, 'slaughterer', 4, 'shop_owner', 'Shop Owner', 45, '{}', '{}'),
(167, 'slaughterer', 5, 'master_butcher', 'Master Butcher', 60, '{}', '{}'),
(168, 'slaughterer', 6, 'meat_mogul', 'Meat Mogul', 80, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(169, 'tailor', 0, 'employee', 'Employee', 0, '{}', '{}'),
(170, 'tailor', 1, 'seamstress', 'Seamstress', 10, '{}', '{}'),
(171, 'tailor', 1, 'seamster', 'Seamster', 10, '{}', '{}'),
(172, 'tailor', 2, 'fashion_designer', 'Fashion Designer', 20, '{}', '{}'),
(173, 'tailor', 3, 'bespoke_tailor', 'Bespoke Tailor', 30, '{}', '{}'),
(174, 'tailor', 4, 'fashion_boutique_owner', 'Fashion Boutique Owner', 45, '{}', '{}'),
(175, 'tailor', 5, 'couturier', 'Couturier', 60, '{}', '{}'),
(176, 'tailor', 6, 'fashion_magnate', 'Fashion Magnate', 80, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(177, 'taxi', 0, 'recruit', 'Recruit', 12, '{}', '{}'),
(178, 'taxi', 1, 'novice', 'Novice', 24, '{}', '{}'),
(179, 'taxi', 2, 'experienced', 'Experienced', 36, '{}', '{}'),
(180, 'taxi', 3, 'uber_cabby', 'Uber Cabby', 48, '{}', '{}'),
(181, 'taxi', 4, 'lead_cabby', 'Lead Cabby', 60, '{}', '{}');
INSERT INTO `job_grades` (`id`, `job_name`, `grade`, `name`, `label`, `salary`, `skin_male`, `skin_female`) VALUES
(182, 'unemployed', 1, 'job_seeker', 'Job Seeker', 5, '{}', '{}'),
(183, 'unemployed', 2, 'freelancer', 'Freelancer', 10, '{}', '{}'),
(184, 'unemployed', 3, 'self_employed', 'Self-Employed', 15, '{}', '{}'),
(185, 'unemployed', 4, 'small_business_owner', 'Small Business Owner', 25, '{}', '{}'),
(186, 'unemployed', 5, 'entrepreneur', 'Entrepreneur', 35, '{}', '{}'),
(187, 'unemployed', 6, 'business_magnate', 'Business Magnate', 50, '{}', '{}'),
(188, 'unemployed', 7, 'tycoon', 'Tycoon', 100, '{}', '{}'),
(189, 'unemployed', 8, 'unemployed_mogul', 'Unemployed Mogul', 200, '{}', '{}'),
(190, 'unemployed', 9, 'server_owner', 'Server Owner', 500, '{}', '{}'),
(191, 'unemployed', 10, 'grandmaster', 'Grandmaster', 1000, '{}', '{}'),
(192, 'unemployed', 11, 'server_developer', 'Server Developer', 2000, '{}', '{}'),
(193, 'unemployed', 12, 'coder', 'Coder', 3000, '{}', '{}'),
(194, 'unemployed', 13, 'scripting_god', 'Scripting God', 5000, '{}', '{}'),
(195, 'unemployed', 14, 'ai_programmer', 'AI Programmer', 10000, '{}', '{}');