Larys Weapons On Back Script [Qb-Core]

:gun: Introducing Larys Weapons On Back Script! :gun:

UPDATED PRICE!!!

VIDEO OF IT WORKING

^^^^

Enhance your game server with seamless weapon management:

  1. Weapon Synchronization: Keep players’ equipped weapons in sync with their inventory for a consistent experience.
  2. Prevent Stacking: Bid farewell to weapon model stacking when switching weapons.
  3. Dynamic Positioning: Realistic weapon placement based on weapon type and body attachment points.
  4. Easy Installation: Quick integration into your resource management system.
  5. Flexible Customization: Tailor the script to your server’s needs, even excluding specific weapons.
  6. Visual Realism: Enjoy a visually immersive weapon switching experience.
  7. Event Handling: Use event handlers to sync inventory changes and weapon switches.

Make weapon management a breeze with the Weapon Management Script. Say goodbye to stacking and hello to realism!

:point_right: Learn more and get started today! :point_right:

Weapon Management Script

Welcome to the Weapon Management Script! This script is designed to provide seamless weapon synchronization, realistic positioning, and prevention of weapon model stacking in your game server. Below, you’ll find an overview of the features, installation instructions, and customization options.

Features

  • Weapon Synchronization: Ensure players’ equipped weapons match their inventory for a consistent gameplay experience.
  • Prevent Stacking: Avoid weapon model stacking by automatically removing the previous weapon’s model when switching.
  • Dynamic Positioning: Weapons are attached dynamically based on type, offering realistic placement on the player’s body.
  • Flexible Customization: Easily configure weapon types and their respective attachment points.

Installation

  1. Integration: Integrate the script into your server’s resource management system.
  2. Configuration: Customize the script’s configuration to match your game’s weapon types and positioning.
  3. Event Handling: Use the provided event handlers to sync inventory changes and weapon switches.

Customization

  • Easy Install: The script is designed for straightforward integration, requiring minimal setup.
  • Flexible Configuration: Modify the script’s configuration to suit your server’s needs.
  • Selective Back Weapons: Tailor the configuration to exclude specific weapons from appearing on players’ backs.
  • Visual Realism: Prevent weapon stacking for a visually realistic weapon switching experience.

Example Configuration

In the config.lua file, customize the Config table to include or exclude specific weapons for players’ back attachments. For instance:

Config.rifles = {
    "weapon_carbinerifle",
    "weapon_advancedrifle",
    -- Add or remove weapons here
}


|Code is accessible |YES (Escrow)|
|Subscription-based |No|
|Lines (approximately) |N/A|
|Requirements |FiveM Server|
|Support |Yes|

1 Like

How is this different from all of the free resources ?

Like this one FREE ox_inventory Weapons on Back!
Or this one [Release] Weapons On Back
or this one that even supports items and weapons on the back Weapons/Items on back

They dont bug out and get stuck or stack It says it above. I looked at everyones script before making this…

Its not even working correctly, when you draw your pistol your weapons disappears (clip if from your youtube video)

Look again. Its on the waist or hostler, nice try… But I thought of it all… or at least for weapons on the back of the player.

Anything else?

but why is your other weapon disappearing ?

So If I have a carabine rifle and I use my pistol my carbine will disappear ? you pull out your pistol and your other weapon disappears from your back, I see your pistol is on your leg but your other weapons is gone gone

2 Likes

Why would I allow stacking? It allows one weapons at a time.

Yep, 1 at a time, I may allow in the future to carry rifles and pistols at the same time but I wanted to fix the stacking issue first, the other scripts I used had stacking issues.
Great idea tho, I will add it in a later update.

1 Like

Also when you put the weapon down its not stuck to your body

I put weapon mods in the script and they come out incomplete, what can I do?

good script bro :slight_smile:

1 Like

weapons mods?

Thanks man! Let me know if you guys wanna see anything else! I will make it asap

custom weapons, look, I’ll send you a photo of how it looks in OpenIV and in the game on the back.

Did add it to the config?


Config.rifles = {
    ["weapon_microsmg"] = "w_sb_microsmg",
    ["weapon_smg"] = "w_sb_smg",
    ["weapon_assaultsmg"] = "w_sb_assaultsmg",
    ["weapon_combatpdw"] = "w_sb_pdw",
    ["weapon_gusenberg"] = "w_sb_gusenberg",
    ["weapon_minismg"] = "w_sb_minismg",
    ["weapon_smgmk2"] = "w_sb_smgmk2",
    ["weapon_combatmg"] = "w_mg_combatmg",
    ["weapon_combatmgmk2"] = "w_mg_combatmgmk2",
    ["weapon_gusenberg"] = "w_mg_gusenberg",
    ["weapon_mg"] = "w_mg_mg",
    ["weapon_combatmg"] = "w_mg_combatmg",
    ["weapon_combatmgmk2"] = "w_mg_combatmgmk2",
    ["weapon_musket"] = "w_ar_musket",
    ["weapon_assaultrifle"] = "w_ar_assaultrifle",
    ["weapon_assaultriflemk2"] = "w_ar_assaultriflemk2",
    ["weapon_carbinerifle"] = "w_ar_carbinerifle",
    ["weapon_carbineriflemk2"] = "w_ar_carbineriflemk2",
    ["weapon_advancedrifle"] = "w_ar_advancedrifle",
    ["weapon_specialcarbine"] = "w_ar_specialcarbine",
    ["weapon_specialcarbinemk2"] = "w_ar_specialcarbinemk2",
    ["weapon_bullpuprifle"] = "w_ar_bullpuprifle",
    ["weapon_bullpupriflemk2"] = "w_ar_bullpupriflemk2",
    ["weapon_compactrifle"] = "w_ar_compactrifle",
}

Did you add it to the config?


Config.rifles = {
    ["weapon_microsmg"] = "w_sb_microsmg",
    ["weapon_smg"] = "w_sb_smg",
    ["weapon_assaultsmg"] = "w_sb_assaultsmg",
    ["weapon_combatpdw"] = "w_sb_pdw",
    ["weapon_gusenberg"] = "w_sb_gusenberg",
    ["weapon_minismg"] = "w_sb_minismg",
    ["weapon_smgmk2"] = "w_sb_smgmk2",
    ["weapon_combatmg"] = "w_mg_combatmg",
    ["weapon_combatmgmk2"] = "w_mg_combatmgmk2",
    ["weapon_gusenberg"] = "w_mg_gusenberg",
    ["weapon_mg"] = "w_mg_mg",
    ["weapon_combatmg"] = "w_mg_combatmg",
    ["weapon_combatmgmk2"] = "w_mg_combatmgmk2",
    ["weapon_musket"] = "w_ar_musket",
    ["weapon_assaultrifle"] = "w_ar_assaultrifle",
    ["weapon_assaultriflemk2"] = "w_ar_assaultriflemk2",
    ["weapon_carbinerifle"] = "w_ar_carbinerifle",
    ["weapon_carbineriflemk2"] = "w_ar_carbineriflemk2",
    ["weapon_advancedrifle"] = "w_ar_advancedrifle",
    ["weapon_specialcarbine"] = "w_ar_specialcarbine",
    ["weapon_specialcarbinemk2"] = "w_ar_specialcarbinemk2",
    ["weapon_bullpuprifle"] = "w_ar_bullpuprifle",
    ["weapon_bullpupriflemk2"] = "w_ar_bullpupriflemk2",
    ["weapon_compactrifle"] = "w_ar_compactrifle",
}

It still gives me a problem, it tells me that it is for qb-core, when I use esx