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

absolut.

Silver Elite
Joined
Nov 14, 2022
Messages
16
Reaction score
1,837
Points
296
Location
Honolulu
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


 

bessa

Gold Elite
Joined
Oct 23, 2021
Messages
52
Reaction score
608
Points
316
Location
Portugal
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]
THANKS
 

alekgio

Gold Elite
Joined
Apr 21, 2021
Messages
86
Reaction score
56
Points
221
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
 

Xquard

Bronze Elite
Joined
Nov 1, 2021
Messages
18
Reaction score
4
Points
166
Location
Turkey
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]
1
 
Joined
May 5, 2022
Messages
2
Reaction score
0
Points
156
Location
The Netherlands
It's not working for me. i enabled test drive but i don't see a option to start the test drive. i have problem if i choose a brand then there is no vehicles to choose from. is there a fix?
 

dimodim45

Silver Elite
Joined
Jan 24, 2023
Messages
34
Reaction score
6
Points
156
Location
Bulgaria
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]
 

hakan4141

Member
Joined
Jul 14, 2021
Messages
4
Reaction score
0
Points
146
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]
wonderful
 

Lasertus

Bronze Elite
Joined
Apr 11, 2021
Messages
20
Reaction score
3
Points
156
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]
niiice i am search this!
 

xxArieakcXZZ

Bronze Elite
Joined
Feb 20, 2023
Messages
7
Reaction score
2
Points
156
Location
nekude
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]
 
Top