Configuration
Check the instructions below.
The primary configuration file is config.lua
. Below is a breakdown of the settings.
General Settings
Locales
Language for the script (EN
, FR
, PT
, TR
).
"EN"
SQLScript
Database library (oxmysql
, ghmattimysql
, mysql-async
).
"oxmysql"
EditPlate
Allow players to edit license plates.
true
OfflineSelling
Allow offline vehicle sales.
true
EditPlateCost
Cost for editing license plates.
5000
BuyType
Currency type for transactions (bank
, cash
).
"bank"
TestDriveTime
Duration for test drives (in seconds).
60
TestDriveVector4
Spawn location for test drives.
vector4(-1007.3341, -3015.9114, 13.3133, 61.0055)
Collisions
Enable/disable vehicle collisions.
true
Parking Lots
Define the available parking lots for vehicle showcases. Each parking lot has a name and a list of coordinates.
Job Restrictions
If specific jobs are required to manage parking lots or vehicles, define them in the Config.Jobs
table.
Interaction Settings
Choose the interaction method players will use to access features:
textui
Text-based UI interactions.
false
drawtext
On-screen text interaction.
true
target
Target-based interaction.
false
Notifications
Customizable notifications for various events.
Config.Notification
Sends notifications to players.
Config.Hud
Toggles HUD visibility.
Example usage for server-side notifications:
Test Drive and Purchase Functions
Config.TestVehicle
Grants temporary ownership of a test vehicle during a test drive.
Config.BuyVehicle
Handles the purchase of a vehicle, transferring ownership.
Advanced Features
Editable License Plates
Enable/Disable via
Config.EditPlate
.Define the cost using
Config.EditPlateCost
.
Offline Vehicle Selling
Enable/Disable via
Config.OfflineSelling
.
Vehicle Collisions
Enable/Disable via
Config.Collisions
.
Last updated