ProjectFairnessLabs / PF-vMenu

PF-vMenu is a custom server sided trainer/menu, built using MenuAPI. It has full permissions support, so the server owner can decide who's allowed to do what.
https://discord.gg/D7cVc8TzPN
18 stars 11 forks source link

Car brands on Addon Vehicle Menu #7

Closed vermcorona closed 1 year ago

vermcorona commented 1 year ago

Instead of adding the cars manually (which would be time-consuming), it scans and adds the vehicles by adding the lines using vehicleMakeName.

Instead of:

"brands": [ "Audi", "Chevrolet", "Nissan" ],

"Audi": [
            "rs318",
        "q820",
        "r820"
],
"Chevrolet": [
            "2018zl1",
        "ss69",
        "camaro70"
],
"Nissan": [
            "nisgtr32",
        "bnr34",
        "17r35"
],

`

it would be:

"vehicleMakeName": [ "AUDI", "CHEVROLET", "NISSAN" ],

All the cars would be added automatically by adding the brands. For cars that have no vehicleMakeName or hasn't been added to the list, it would be added into its own brand category called "Unknown".

txdaniel55 commented 1 year ago

If this is implemented, it would be great if this could also apply to the default GTA V Vehicles, to have manufacturer sorting for both!

txdaniel55 commented 1 year ago

What would be a nice feature is to keep the existing Addon Manufacturer Menu when updating to auto-sort to be used for custom categories that don't follow the vehicle make or class.

Ex: LSPD Pickup Trucks 24/7 Business Race Cars etc.

tris-ten commented 1 year ago

Actually, we won't even need the "brands", we should set it up so all you have to do is put the vehicle in the "vehicles" table and it'll auto sort based on the vehicle's brand within each vehicles.meta. We could also make it sort based on the alphabet.

vermcorona commented 1 year ago

That would be a good idea.

tris-ten commented 1 year ago

gonna start working on it :)

tris-ten commented 1 year ago

https://github.com/ProjectFairnessLabs/PF-vMenu/commit/2bb99e3115ea9ebf5edbdda1b3c477222d4a8621