Installation & Configuration
Install and configure FS-RackControl
Set up racking first. Armor, loadouts, and the sling have their own options; test each feature and its permissions before giving it to players.
Installation
Copy the FS-RackControl resource folder into your server's resources directory.
Start FS-Lib before FS-RackControl in server.cfg:
ensure FS-Lib
ensure ox_lib
ensure FS-RackControlIn config.lua, choose the vehicles, weapon keys, and permissions you want for your first test. Review armor, loadouts, and notifications separately.
Restart your server, or restart the FS-RackControl resource from the server console.
First test: In a suitable police vehicle, run /unrack rifle to take the configured rifle and /rack rifle to return it. Use the config key rifle, not WEAPON_CARBINERIFLE. Before letting players use the resource, check weapon keys, ammo, and which groups can use each feature.
If you use an optional notification integration, start that resource before FS-RackControl too.
Requirements
FS-Libox_lib: the current manifest imports@ox_lib/init.lua, independently of notification selection.
ox_lib also provides notifications when you select NotificationSystem = "ox_lib".
Optional:
- BigDaddy Notify (when using
NotificationSystem = "bigdaddy") lation_ui(when usingNotificationSystem = "lation_ui")
Start with the driver seat
Test one configured weapon from the driver seat of a police vehicle. After that works, check outside racking, armor, loadouts, and slings one at a time. They do not all use the same settings.
Jump to what you need:
Core settings
Set the interaction defaults first. The sections below cover weapons, armor, loadouts, and slings separately.
Prop
Type
Notifications
Choose which notification provider players see in Config.NotificationSettings:
Prop
Type
When notifications are disabled, commands still run but success/error messages are not shown. If an invalid notification system is configured, FS-RackControl prints an error to the client console.
Racking
Choose the racking behavior and who can use it in Config.Racking:
Prop
Type
Weapon fields:
Prop
Type
Example:
Config.Racking.Weapons = {
rifle = {
Name = "Carbine Rifle",
HashString = "WEAPON_CARBINERIFLE",
AmmoCount = 120,
},
shotgun = {
Name = "Pump Shotgun",
HashString = "WEAPON_PUMPSHOTGUN",
AmmoCount = 16,
},
}Vehicle behavior
- Inside a police vehicle,
/rackand/unrackwork from the driver or front passenger seat. - Outside a vehicle, the command only works when
Config.AllowRackFromOutsideVehicle = trueand a police vehicle is within 5.0 units. - Police vehicles are detected by GTA vehicle class
18. - If a player selects a configured rack weapon before unracking it, the weapon is removed and the player is told to unrack it first.
Armor
Use Config.Armor to control the separate armor command:
Prop
Type
Loadout
Use Config.Loadout to decide what the loadout command equips:
Prop
Type
Loadout weapon fields:
Prop
Type
Example:
Config.Loadout.Weapons = {
{
Name = "Pistol",
HashString = "WEAPON_COMBATPISTOL",
Ammo = 120,
GiveInHand = false,
Components = {
"COMPONENT_AT_PI_FLSH",
},
},
{
Name = "Flashlight",
HashString = "WEAPON_FLASHLIGHT",
},
}Sling
Use Config.Sling to choose which weapons players can sling and where the prop sits:
Prop
Type
Sling supports two visual slots:
/sling ftoggles the front slot./sling btoggles the back slot.
With Config.Sling.AutoUnslingDetection = true, the weapon stays in the player’s inventory. Picking it in the weapon wheel removes the sling prop without a notification.
When the setting is false, the resource removes the weapon while it is slung. It saves ammo, tint, and detected components, then restores the weapon when the player unslings it.
Permissions
ACE checks are disabled by default. Enable each feature's AcePerm.Enabled field to require its configured permission.
Example server.cfg:
add_ace group.leo rackcontrol.racking allow
add_ace group.leo rackcontrol.armor allow
add_ace group.leo rackcontrol.loadout allowPermission checks:
Config.Racking.AcePerm.PermRequiredgates/rackand/unrack.Config.Armor.AcePerm.PermRequiredgatesConfig.Armor.Command.Config.Loadout.AcePerm.PermRequiredgatesConfig.Loadout.Command.
Localization
Config.Language selects a JSON file from locales/. For example, Config.Language = "en" loads locales/en.json.
If the selected locale is missing a key, FS-RackControl falls back to the matching English string.
Commands
/rack <key>racks a configured weapon./unrack <key>unracks a configured weapon./armorgives armor whenConfig.Armor.Enabled = trueand the command name is unchanged./loadoutgives the configured loadout whenConfig.Loadout.Enabled = trueand the command name is unchanged./sling ftoggles the front sling slot./sling btoggles the back sling slot.
If you rename Config.Armor.Command, Config.Loadout.Command, or Config.Sling.Command, use the configured command names instead.
Custom integration boundaries
The inspected 1.3.0 source exposes configuration for weapons, components, offsets, ACE permissions, locale text, and the listed notification providers. It does not expose a custom inventory, money, CAD, or notification-provider callback/export. Selecting an invented provider name does not install an adapter. Internal permission and sling network events are implementation details, not a supported external integration API.
The manifest leaves config.lua and locales/**/*.json editable through escrow; client/server runtime files are protected in escrowed packages. Use the configuration examples above, back up edits, merge new settings on updates, and test racking, loadouts, and sling behavior with your actual weapon/inventory resources. For unsupported inventory or notification behavior, request a supported extension point rather than modifying protected runtime files.