Installation
Step-by-step guide to install the Multiplayer Diving Job on your FiveM server.
Prerequisites
Before installing, make sure you have:
Framework
QBCore, QBox, ESX, vRP, or Standalone
Database Resource
oxmysql (recommended), mysql-async, or ghmattimysql
PolyZone
Required for all Tworst Scripts
FiveM Server
Build 2802 or higher recommended
Step 1: Download the Script
From Cfx.re Portal (Recommended)
Go to portal.cfx.re
Navigate to Granted Assets
Find tw-diving in your purchased scripts
Click Download to get the latest version
From Tebex
Log in to your Tebex account
Go to your purchases
Download the script package
Step 2: Extract Files
Extract the downloaded archive
You will find two folders:
tw-diving- Main scriptLiftbag-model- Stream assets (diving island, underwater props, boat)
Place both folders in your server's
resourcesdirectory
Important: The stream folder contains the diving island map, underwater coral props, treasure boxes, and boat models. Without it, the job location and underwater elements won't appear!
Step 3: Database Setup
Automatic Setup: The script automatically creates the required database tables when it starts for the first time. No manual SQL import needed!
Step 4: Configure the Script
Open config/config.lua and set your framework:
QBox Users: Set Config.Framework = 'qb' - QBox is fully compatible with the 'qb' setting.
See the Configuration page for all available options.
Step 5: Add to server.cfg
Add the following to your server.cfg:
Load Order:
Dependencies must start before the script
Stream resource (
Liftbag-model) must be started before or with the main script
Step 6: Restart Server
Save all configuration changes
Restart your server completely
Check the server console for any errors
Verification
After starting the server, verify the installation:
Check Console
Look for these messages in your server console:
Database tables created successfully (first run only)
No error messages related to tw-diving
In-Game Test
Go to the diving job location
Look for the job blip on the map
Interact with the NPC to open the job menu
Purchase diving equipment
Take a boat and test diving mechanics
Troubleshooting
Script Won't Start
Check resource name matches exactly (case-sensitive on Linux)
Verify all dependencies are started before the script
Check for syntax errors in config files
Missing Props / Island Not Loading
Make sure the stream folder is in your resources folder
Verify it's started in your
server.cfgCheck the server console for streaming errors
The diving island should be visible when you approach the area
Database Errors
Verify database connection string in
server.cfgCheck that your database resource is starting properly
Ensure
Config.SQLmatches your database resource
Framework Not Detected
Make sure
Config.Frameworkmatches your frameworkVerify framework resource is starting before tw-diving
Check framework resource name matches expected names
Need Help?
Having installation issues? Join our Discord server and open a support ticket with:
Server console errors
Your
Config.FrameworkandConfig.SQLsettingsScreenshots of any issues
Last updated

