Sling Script
Standalone / ox_Inventory



Give rifles, SMGs and shotguns a proper two-point sling. The gun hangs across the chest on a 3D strap that runs around the back of the neck, down the back and around the right side to the front mount, and it moves with the upper body as players walk, run, crouch and turn.
- Two-point chest carry plus back, left shoulder and right shoulder carries
- Real 3D strap: textured webbing with stitched edges, hardware and mount loops, in black, coyote or ranger green
- Follows the torso: the slung gun is attached to the chest and leans, twists and bobs with the body
- Slung and in hand: the strap stays on when the gun is drawn, with its own separate fit
- One setup per weapon: staff fit each gun once and press Save for everyone, and every player's gun of that type is carried the same way
- In-game strap editor: click and drag any strap point or mount right on your character, with Front / Back / Left / Right views
- Live fitting menu: position, angle, strap route and mounts, shown live as you adjust
- Attachments show on the slung gun, add-on attachments included
- Synced: nearby players see each other's slings, with distance limits and lower detail far away
- Hides itself when dead, downed, swimming, climbing, parachuting or in a vehicle
- ox_inventory: guns come from the inventory by serial, Draw / Sling use ox's own equip
- No inventory at all: slings the long guns a player already has (vMenu, admin menus, any script)
- Your own inventory through simple exports
Drop it in, ensure weapon-sling, and give staff the sling.setup permission. Fully commented config and a step-by-step README.
-# Requires OneSync. The strap is drawn geometry, not cloth physics.
Changelog
**New** - **Pick your own carry.** In /sling, choose a gun, how you carry it (chest two-point, back, left or right shoulder) and your webbing colour. It shows on your character as you pick, and it's remembered for that gun. - **Staff setup menu.** /slingsetup is now a separate menu where staff fit each gun for each carry. "Save for everyone" gives that fit to every player. "Reset this carry for everyone" puts it back to the default. - **3D camera while setting up.** The camera circles your character. Drag or use A/D/W/S to go around, scroll to zoom, or jump to the Front, Left, Back and Right views. - **Chest grab animation.** Drawing or slinging a long gun now reaches to the chest instead of the hip. Change it with Config.DrawAnim and Config.HolsterAnim. ox_inventory keeps its own animation. - **One strap in hand.** A gun in your hands uses the same strap fit, whichever carry it came off. - **Shared setups.** Config.SameFit lets different colours or numbers of the same gun share one setup. Fit one and they all match. - **Exports for other scripts.** IsSlingWeapon lets holster scripts skip long guns. PlayDrawAnim lets inventories use the chest grab. **Fixed** - Back and shoulder carries now sit on the torso, so the angle and rotation controls work on every carry. The default positions were updated to match. - Staff can now open the setup menu. Before, it checked a permission nobody had. **Updating** - Give your staff the new permission in server.cfg: add_ace group.admin sling.setup allow - Your saved presets.json still loads. Back and shoulder fits from the old version will sit in the wrong place, because those carries moved to the torso, so refit them.
Initial Release.