[Release] Loadout Script


#1

LoadoutScript

LoadoutScript is a resource for FiveM by Albo1125 that allows players to easily equip loadouts read from a json file, rather than having to set a ped model and a bunch of components and prop options manually every time you spawn. It also allows you to specify which weapons are given when equipping a loadout. You can categorize loadouts into divisions, accessible from a NativeUI menu. Screenshots available here.

Installation & Usage

  1. Download the latest release.
  2. Unzip the LoadoutScript folder into your resources folder on your FiveM server.
  3. Create a loadouts.json file in the LoadoutScript folder (or rename the example if you prefer).
  4. Add the following to your server.cfg file:
start LoadoutScript
  1. Type /lo in chat to access the loadouts menu.

Customising your loadouts

Customise your loadouts in the loadouts.json file. You can add as many loadouts as you like. An example loadouts.json file is included. A guide for the JSON file can be found here.

Source Code & Improvements

The source code is available on GitHub under a GPL-3.0 licence. Improvements and new feature additions are very welcome, please feel free to open an issue, or better yet, create a pull request. Proper credit is always required if you release modified versions of my work.

Changelog

1.7.1

Initial public release.

Enjoy.


#2

Well done Cant wait to try it!!!


#3

Heck. This is pretty good.


#4

Glad to see that you are still active in the FiveM community. Keep up the great work Albo.


#6

When I load in, /lo doesn’t work


#7

Glad to see you’ve moved from making mods to single-player to making scripts for multiplayer, you are a decent developer and I hope to see some other scripts of yours around.


#8

Same. Has anyone found a fix yet?


#9

do you have NatuveUI? for your server?


#10

How would I make the weapon come with attachments in the ‘loadouts.json’ file?