Hello everyone. I’d like to introduce my first script.
The script makes it possible to
- Browse through a list of cars from the config (NUI button click and/or shortcut key)
- Show Car info NUI (approximate max speed, #gears, seats, price)
- Do a testdrive (NUI button click and/or shortcut key)
- Buy the car (uses owned_vehicles table)
- Multiple shops are possible!
Video
Configurable items
- Blacklisted jobs are not allowed to testdrive / buy vehicles to prevent moneyfarmers
- If you’re using high-phone it’s possible to set custom phone numbers/job so everyone of the job will get a text saying the player is moneyfarming
- Customizable text above the car
- Customizable blips - blips per carposition are possible
- Shortcut keys don’t require the player to open the NUI to testdrive/browse. These can be disabled or changed.
- Testdrive locations & duration
- Shop & vehicle positions
- Plate settings
- Some performance variables used to determine shop size
- Provided locales: NL & EN
Optimized - Tested with i7 8700k & GTX1080ti - See video for ms demonstration
- Cars will spawn/despawn from a fixed distance (editable in config)
- Standing away from shop cars: 0.00ms
- Standing next to a shop car: 0.04ms = the default for just showing 3d text
- Using the ‘next’ feature/ loading next cars: 0.07ms
(When spamming this can increase because the vehicles are loading, but this will settle back to 0.4ms if spamming stops)
- During testdrive: 0.01ms
The script makes use of ESX, but esx_vehicleshop is not required (so can be replaced by this)
Car data is given in the config file
Editable files
- Config.lua
- locales (en.lua & nl.lua)
- html files (css, js, index.html & index_nl.html)
Get it on my Tebex
|
|
Code is accessible |
Partly (see above) |
Subscription-based |
No |
Lines (approximately) |
> 500 |
Requirements |
ESX |
Support |
Yes |