FiveM Vehicle Loader is a resource that prevent your players to see invisible vehicles in game, the resource load all the addon vehicles while the player is joining the server.
This resource use FiveM-checker, created to easily keep track if a resource need to be updated!
KNOWN BUG :
None (For now I guess?)
WHAT IS CONFIGURABLE?
Config.DebugPrint
default: true
This will print info on what the resource is currently doing in client console. The image at the top of this README.md is an example of what will be diplayed if set to true
Config.VehicleFolderName
default: [vehicle]
If youâre putting all your addon vehicles in a folder, you can set the name of said folder in âConfig.VehicleFolderNameâ, tho if youâre not, you can simply set it to "" to avoid any issue. The resource will then check this folder for all model that have the same name has all subfolders
If you have a pack of addon vehicles, fivem-vehicleloader will not find them all, since itâs not possible to âscanâ content of folders. The solution is to then include all the missing addon vehicles in âConfig.OtherVehiclesâ, but more info on that below
Config.OtherVehicles
default: {"test1","test2"}
If fivem-vehicleloader isnât loading particular vehicles, you can put them in this list. It is a easy way to deal with pack of addon vehicle that the resource canât detect (as explained above).
Even if I understand the intent behind this, and I think itâs actually okay for you to share this, I would not recommend using it in most cases.
Most players have good enough bandwidth to download assets at a reasonable speed that will not affect gameplay
So using it because âplayers see invisible vehiclesâ could because of :
They have a very slow connection
Vehicles assets are too big and unoptimized (Donât abuses of 8K textures.)
The hosting server is too slow (just use a cache server)
The streaming system of FiveM is very good at downloading vehicles âJust In Timeâ, and downloading all vehicles before the player play could just fill the cache for nothing.
The only reason you would really needs a script like this one is in a competitive race gamemode.
You could wait until all players load vehicles before starting the actual race.
At least, your ressource is actually a good point to talk about why you would need this in certain very specific cases, and why you wouldnât want to do this in most cases.
I guess Iâm learning everyday, thanks for those explanations!
I have made this resource because my internet is really slow⌠On my own test server, FiveM take a while to load some cars, and sometimes I have to spawn them, wait for my game to download them, and then finally be able to use it.
But I understand why it might not be a good practice to use this resource in some cases.
Can I maybe put a warning on my post about that? tho I donât know what to say since my English isnât the best
If my understanding is correct with this resource, the âideaâ behind it could be used for force-caching clients with slower connections so they encounter less issues in bigger FiveM servers. Yet! Thereâs reasons CitizenFx doesnât do this natively. I can see this being usable in some circumstances, but not recommended due to the reasons posted here: [RELEASE] FiveM Vehicle Loader | fivem-vehicleloader [Free] - #2 by Ekinoxx.
This could also be abused by large unoptimized servers that have 100+ 4k textures vehicles, forcing clients to await scripts while they download assets that they or the server might not even use. Good concept, somewhat bad execution. Thanks for the release though, created a good conversation.
Hello :), awesome resource thank you for that. Was wondering about clothing, when players join first time they cant see add-on clothing is it possible to make Clothing Loader before they join server :)?