Security HUD
System Watchdog
×
Threads Scanned
-- / --
SYS. LOAD --%
AI SHIELD ACTIVE
DMCA Policy
×

📋 DMCA Compliance

This platform and community fully complies with the Digital Millennium Copyright Act (DMCA) and international copyright laws. We take all copyright protection seriously.

🛡️ Copyright Protection

If you believe a posted item belongs to you or violates your copyright, you may file a DMCA takedown request through our official channels. Upon receiving a valid claim, the infringing content will be removed within 24 hours.

What's new
×
Fiveguard

Script [QB] fazitanvir Vehicleshop - Optimised

Drake0Dyson

Member
Joined
Sep 23, 2024
Messages
4
Reaction score
1
Points
146
Location
126 house
This was sourced from

To whom it might interest,

Please keep in mind that I don't exactly know what I'm doing. I have minimum Lua experience and would not know how to further optimise the system.
Although, I've done a fairly decent job as the resource is now taking half of the ms.

Changes:
-Optimised for the latest qb-core build.
-Functionality for oxmysql.
-Changed vehicle spawn and cam to Inside Dealership.
-Added Routing Bucket equivalent to the player ID for when viewing a vehicle and Test Driving it.
-Removed npc population for when in a Routing bucket to save resources.
-Added original qb-vehicleshop Plate Generation function. - It is way more optimised and overall works better.
-Check if a player is already in a driving test so that it can't be abused or spammed.



OPTIONAL
_________
qb-customs

-Added a check on the vehicle to see if there is a custom colour. (Colors From the vehicleshop colorwheel are custom)
-Temporarily remove the custom colour to allow the normal colour to be displayed. (both primary and secondary)
-Repaint the vehicle with the custom colours if no default colour is selected. (both primary and secondary)


Stay Safe,
Absolut.



C3bHmnH.png


*** Hidden text: cannot be quoted. ***
[/thanks]
 

ionescu200

Member
Joined
Jan 28, 2025
Messages
2
Reaction score
0
Points
146
Location
bucuresti
This was sourced from

To whom it might interest,

Please keep in mind that I don't exactly know what I'm doing. I have minimum Lua experience and would not know how to further optimise the system.
Although, I've done a fairly decent job as the resource is now taking half of the ms.

Changes:
-Optimised for the latest qb-core build.
-Functionality for oxmysql.
-Changed vehicle spawn and cam to Inside Dealership.
-Added Routing Bucket equivalent to the player ID for when viewing a vehicle and Test Driving it.
-Removed npc population for when in a Routing bucket to save resources.
-Added original qb-vehicleshop Plate Generation function. - It is way more optimised and overall works better.
-Check if a player is already in a driving test so that it can't be abused or spammed.



OPTIONAL
_________
qb-customs

-Added a check on the vehicle to see if there is a custom colour. (Colors From the vehicleshop colorwheel are custom)
-Temporarily remove the custom colour to allow the normal colour to be displayed. (both primary and secondary)
-Repaint the vehicle with the custom colours if no default colour is selected. (both primary and secondary)


Stay Safe,
Absolut.



C3bHmnH.png


*** Hidden text: cannot be quoted. ***
[/thanks]
salut
 

Gustavt781

Member
Joined
Jun 1, 2025
Messages
3
Reaction score
0
Points
86
Location
sweden
This was sourced from

To whom it might interest,

Please keep in mind that I don't exactly know what I'm doing. I have minimum Lua experience and would not know how to further optimise the system.
Although, I've done a fairly decent job as the resource is now taking half of the ms.

Changes:
-Optimised for the latest qb-core build.
-Functionality for oxmysql.
-Changed vehicle spawn and cam to Inside Dealership.
-Added Routing Bucket equivalent to the player ID for when viewing a vehicle and Test Driving it.
-Removed npc population for when in a Routing bucket to save resources.
-Added original qb-vehicleshop Plate Generation function. - It is way more optimised and overall works better.
-Check if a player is already in a driving test so that it can't be abused or spammed.



OPTIONAL
_________
qb-customs

-Added a check on the vehicle to see if there is a custom colour. (Colors From the vehicleshop colorwheel are custom)
-Temporarily remove the custom colour to allow the normal colour to be displayed. (both primary and secondary)
-Repaint the vehicle with the custom colours if no default colour is selected. (both primary and secondary)


Stay Safe,
Absolut.



C3bHmnH.png


*** Hidden text: cannot be quoted. ***
[/thanks]
nice
 
Top