OZ-TESTDRIVING
π₯ TOP FEATURES
β
Vehicle categories (database-based)
β
Test drive system with time limit
β
End test drive at any time with the F key
β
Locales system (DE/EN expandable)
β
Marker & Blip at the shop
β
ESX menu (standard)
β
Support for oz_notify / only_helpnotify
πΊΒ SHOWCASE & DOCUMENTATION
π¬ Showcase Video:Β YouTube
π Full Documentation: GitBook
βοΈ REQUIREMENTS
β’ Framework: ESX (es_extended)
β’ oxmysql
βοΈ Installation
1. Script installieren
Place the folder, for example as oz_testdriving, in your resources folder.
Add the following to the server.cfg file:
ensure oz_testdriving
2οΈ. Prepare database
Your vehicles table needs a category column:
ALTER TABLE vehicles ADD category VARCHAR(50);
Example categories:
UPDATE vehicles SET category = 'Sport' WHERE model IN ('comet2','jester');
UPDATE vehicles SET category = 'SUV' WHERE model IN ('baller','granger');
3οΈ. check fxmanifest.lua
shared_scripts {
'config.lua',
'locales/*.lua'
}
client_script 'client.lua'
server_script 'server.lua'
π§ Use in the game
Go to the marker at the vehicle shop
Press E β Categories menu opens
Choose a category
Choose a vehicle
Test drive starts automatically
βΉ Cancel test drive
Press F to end the test drive immediately.
π Locales (multilingualism)
Set language (config.lua)
Config.Locale = 'de' -- 'de' or 'en'
Add new language
Create new file: locales/fr.lua
Enter translations
Config.Locale = 'fr'
π Configuration (config.lua)
| Option | Beschreibung |
|---|---|
Config.TestDriveTime | Duration of the test drive in seconds |
Config.Marker | Marker & Blip Position |
Config.TestDriveStart | spawn point of the test drive |
Config.ReturnCoords | Return location after test drive |
Config.UseOnlyNotify | use oz_notify |
Config.UseOnlyHelpNotify | use oz_helpnotify |
π Safety & Notices
Vehicles are spawned as mission entities.
Vehicles are always deleted after test drives.
The player will be reliably teleported back.
Abuse through endless loops is not possible.
π SUPPORT
Discord: https://discord.gg/QaMEA95qbS
