load_bundle
load_bundle
is a server configuration function that loads a resource bundle from the bundles
folder. It is only available within server.lua
.
Reference
load_bundle(bundle_name)
Call load_bundle
in your server.lua script to load a resource bundle by name from the bundles
folder.
Parameters
bundle_name
: The name of the bundle to load from within thebundles
folder.
Returns
load_bundle
does not return anything.
Caveats
- Bundles must be located directly within the
bundles
folder. Nested folders are not supported.
Usage
Loading a bundle from a path
Loading all bundles from the bundles folder
See load_all_bundles
.
Troubleshooting
No known troubleshooting steps.