FiveM
Add scripts and resources
Upload a resource, start it, and understand the load order that breaks things.
3 min read
- 1Upload the resource folder into resources, or into a category folder like [scripts].
- 2Open server.cfg and add a line for it.
- 3Restart the server, or type refresh then ensure <name> in the console for a live add.
ensure my_resourceOrder matters. A script that depends on your framework has to be started after it, and anything using ox_lib or mysql-async has to come after those. If a resource errors on boot about a nil value, load order is the first thing to check.