Switch — Installation
Dependencies
| Resource | Required | Notes |
|---|---|---|
ox_lib | Yes | Free open-source UI/callbacks library — available on GitHub |
ESX, QBCore, or Qbox | Yes | Free open-source framework — requires one of them on your server |
Items & Inventory Setup
Open fs_switch/install_me_first/item/ and use the file corresponding to your inventory system (ox_inventory.lua, qs_inventory.lua, qb_inventory.lua, ak47_inventory.lua).
Copy the switch item images from fs_switch/install_me_first/images/ into your inventory resource's web/images folder.
Install Steps
- Create a category folder named
[fs]inside your server'sresources/directory (resources/[fs]/). - Download and place
fs_switchintoresources/[fs]/fs_switch. - Download and install
ox_libinto yourresources/directory. - Complete Items & Inventory Setup from
install_me_first. - Configure
fs_switch/config/config.luabefore starting. - Add the resources to your
server.cfgat the end of your ensured resources:
lua
ensure ox_lib
-- make sure to ensure all resources above this to make it work properly
ensure [fs] -- ensure it as last resource- Restart your FiveM server and check the server console for clean startup prints.
