TGIANN
YoutubeDiscordTebexFivem
  • Main
    • Welcome
    • How to Find My Transaction ID
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
    • Switching from MySQL Async to oxmysql
    • Basic Aces & Principals overview/guide
    • Using QB scripts in QBOX
    • How can i use Fivemanage
  • Common errors
    • SCRIPT ERROR: ?:-1: attempt to call a nil value
    • TGIANN-Core script is not in my keymaster account
    • You lack the required entitlement to use tgiann-*
    • Error parsing script / Failed to load script
    • Error: syntax error near '<\1>'
    • When I buy something, the money goes negative
    • Failed to verify protected resource
  • Sounds in the script are not working
  • Crashes related to clothing
  • Map
    • lumi-delperropier
      • Setup
      • Conflicts
      • Disable NPC
      • Rcore Funfair Cords
      • CS-Hall Config
  • Scripts
    • tgiann-animpos-photo-cam
      • Editable Files
      • Config File
      • Exports
    • tgiann-self-storage-v2
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Config File
    • tgiann-radio-v2
      • Guides
        • Recommended settings for PMA Voice
        • How to change the animation
      • Installation
      • Config file
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Exports
    • tgiann-core
      • Config file
      • Exports
      • Integration
        • QB
          • DrawText
    • tgiann-lumihud
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • playerStatus.lua
          • qbclient.lua
          • editable.lua
          • moneyEditable.lua
          • harnessBeltEditable.lua
        • Server
          • qbserver.lua
          • editable.lua
      • Config Files
        • config.lua
        • configHudSettings
        • configWeaponList.lua
        • qbStressConfig
      • Integration
        • Notify
        • Progressbar
    • tgiann-realparking
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
      • Config Files
        • blipsConfig.lua
        • config.lua
        • impoundConfig.lua
        • insuranceConfig.lua
    • tgiann-vehicleshop
      • Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
          • commands.lua
      • Config Files
    • tgiann-gps
      • Client Exports
      • Editable Files
        • config.lua
        • client/editable.lua
        • Language File
    • tgiann-clothing
      • Guides
        • Installation
          • ESX
          • QB
          • QBX
          • tgiann-inventory clothe items
        • Migration
        • How to take clothes images
      • Comman Proplems
      • Events / Exports
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • server/editable.lua
      • Configs
        • blacklist
          • famale.lua
          • male.lua
        • clotheList
          • global
            • female.lua
            • male.lua
        • clothingPrice
          • female.lua
          • male.lua
        • tattoo
          • customTattoo.lua
          • tattoo.lua
        • clothingRoomsOutfits.lua
        • config.lua
        • hairOverlays.lua
        • pedList.lua
    • tgiann-inventory
      • Guides
        • Installation
          • ESX
          • QB
          • QBOX
        • How to adapt your script
        • How do money as item
          • QB
          • QBOX
          • ESX
            • ESX V11
            • ESX V12
        • Creating Items
        • Item İmages
        • Item Metadata
        • Migration
      • Common Problems
      • Exports
        • Server
        • Client
      • Hooks
      • Events
        • Server
        • Client
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • client/topheader.lua
        • server/editable.lua
        • server/commands.lua
        • server/convert.lua
      • Configs
        • config.lua
        • configAmmo.lua
        • configAntiSwimingItems
        • configAttachment.lua
        • configAttachmentName.lua
        • configBlockItems.lua
        • configCarryItems.lua
        • configClotheBackpack.lua
        • configCommands.lua
        • configCraft.lua
        • configDecayableItems.lua
        • configDrop.lua
        • configEditableItems.lua
        • configFilter.lua
        • configItemStash.lua
        • configMaxStack.lua
        • configMaxUseAmount.lua
        • configMetadata.lua
        • configMetadataAdvance.js
        • configRealisticArmor.lua
        • configShop.lua
        • configStashes.lua
        • configThrowableItems.lua
        • configVendingMachine.lua
        • configWeapon.lua
    • lumi-delperropier-texonstone
      • Setup
    • tgiann-antirpf
      • Editable files
    • tgiann-secondhand
      • Editable files
      • config.lua
    • tgiann-multicharacter + spawn selector
      • Guides
        • Installation
        • Discord Permmission integration
        • Tebex integration
      • Common Problems
      • Configs
        • config.lua
        • multicharConfig.lua
        • photocamConfig.lua
        • spawnSelectorConfig.lua
      • Editable Files
        • Language File
        • client/editable.lua
        • server/editable.lua
        • server/commands.lua
    • tgiann-attachment
      • Config file
      • Event List
    • tgiann-bank
      • Migration
      • Exports
      • Config files
        • config.lua
        • configGangAccounts.lua
        • configHacking.lua
        • configJob.lua
        • configJobAccounts.lua
      • Editable Files
    • tgiann-bettercombat
      • Config file
      • Event List
    • tgiann-bobcat
      • Config file
    • tgiann-boombox
      • Config file
    • tgiann-vehiclecontrol
      • Exports
      • Config file
      • Editable Files
    • tgiann-card
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-carhud
      • Config file
    • tgiann-carmod
      • Config file
      • Sql File
    • tgiann-chair
      • Config file
      • QB Core Item
    • tgiann-chopshop
      • Config file
      • QB Core Item
    • tgiann-damage-indicator
      • Config file
      • Editable files
    • tgiann-dna
      • Sql File
    • tgiann-document
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-doorlock-v2
      • How can i find door model and other details
      • Config file
    • tgiann-dropweaponwhendie
      • Config file
    • tgiann-drugsell
      • Config file
    • tgiann-erpv2
      • Config file
    • tgiann-fallouthacker
      • Usage
    • tgiann-garage
      • Config file
      • Event List
      • Exports List
      • QB Sql File
      • ESX Sql File
    • tgiann-hotwire
      • Item List
      • Editable Files
        • Language File
        • Client/editable.lua
        • Client/migrate.lua
        • Server/commands.lua
      • Config file
      • Exports
    • tgiann-house
      • Stash Function
      • Common errors
      • Config file
      • Event List
      • Sql File
      • Editable Files
    • tgiann-hud
      • Config file
    • tgiann-hudv2
      • Config file
      • Event List
    • tgiann-job
      • Config file
      • Sql File
    • tgiann-market
      • Editable Files
      • Config file
      • Sql File
    • tgiann-mdt
      • Config file
      • ESX Sql File
      • QB Sql File
    • tgiann-megaphone
      • Setup
        • QB Core Item
        • Ox Inventory Item
      • Language File
      • Config file
      • Event List
      • Exports List
      • Recommended PMA Voice Settings
      • Common Problems
    • tgiann-moder-hud
      • Config file
      • Editable files
      • Event list
    • tgiann-naked
      • Config file
      • Editable Files
      • Sql File
      • Wrong Clothes
    • tgiann-platechanger
      • Config file
    • tgiann-policealert
      • Config file
      • Exports
      • Editable Files
        • Client Editable
        • Server Editable
    • tgiann-postcard
      • Editable Files
      • Config file
      • QB Core Item
      • Ox Inventory Item
    • tgiann-radio (Old)
      • Common errors
      • Config file
      • Event List
      • Exports List
      • Recommended settings for PMA Voice
    • tgiann-rentscooter
      • Config file
    • tgiann-sblauncher
      • Config file
      • QB Core Item
    • tgiann-self-storage
      • Config file
      • Editable files
      • Sql File
    • tgiann-exit-log
      • Config file
      • Editable files
    • tgiann-weapons-on-back
      • Config file
      • Editable files
    • tgiann-sellnpc
      • Config file
    • tgiann-smokegrenade
      • Config file
    • tgiann-sounds
      • Example Usage
    • tgiann-stashhouse
      • Config file
      • Sql File
    • tgiann-statushud
    • tgiann-vehicleoutfit
      • Config file
      • Sql File
    • tgiann-vehicleradio
      • Config file
      • Event list
    • tgiann-vehicleshop
      • Config file
      • Sql File
    • tgiann-trade
      • Config file
      • Server editable.lua
      • Client editable.lua
    • tgiann-zombie
      • Config file
      • Client editable.lua
      • Server editable.lua
      • Common errors
    • tgiann-planting
      • Config file
      • Editable Files
    • tgiann-realistic-car-crash
      • Config file
      • Editable Files
    • tgiann-graphic-menu
      • Config file
      • Editable Files
    • tgiann-firefighterjob
      • Installation
      • Config file
      • Editable Files
    • tgiann-coinshop
      • Config file
      • Editable Files
    • tgiann-vehiclepaint
      • Config file
      • Setup
    • tgiann-drone
      • Config file
      • Editable Files
    • tgiann-musical-chairs
      • Config file
      • Editable Files
    • tgiann-pursuitmode
      • Config file
      • Editable Files
    • tgiann-food-jobs
      • Config file
      • Editable Files
      • Example Location Config
Powered by GitBook
On this page
  1. Scripts
  2. tgiann-inventory
  3. Configs

configWeapon.lua

config.throwableWeapons = {
    weapon_grenade = true,
    weapon_bzgas = true,
    weapon_molotov = true,
    weapon_flare = true,
    weapon_stickybomb = true,
    weapon_proxmine = true,
    weapon_snowball = true,
    weapon_pipebomb = true,
    weapon_ball = true,
    weapon_smokegrenade = true,
    weapon_acidpackage = true
}

-- Required for police weapons. If the police weapon is added in your items.lua, the assigned jobs can use this weapon.
-- Normal weapon: weapon_pistol
-- Police weapon: weapon_police_pistol
config.weaponPoliceJobs = { "police" }
config.disableWeaponWhip = true       -- Disabling weapon whipping (if you use qb you can make it false)
config.disableWeaponAnimation = false -- if true, the holster animation is active
config.disableWeaponsAnimation = {    -- Holster animation is disabled for weapons added to the list
    weapon_snowball = true,
}
config.weaponAnimation = {
    police = {  -- Job name
        add = { -- Animation of grabbing the weapon in hand and duration (in ms)
            animDictionary = "rcmjosh4",
            animationName = "josh_leadout_cop2",
            time = 300
        },
        remove = { -- Animation of putting the weapon back from hand and duration (in ms)
            animDictionary = "reaction@intimidation@cop@unarmed",
            animationName = "intro",
            time = 250
        },
    },
    otherJobs = { -- OTHER JOBS than the ones above ^
        add = {   --  Animation of grabbing the weapon in hand and duration (in ms)
            animDictionary = "reaction@intimidation@1h",
            animationName = "intro",
            time = 1200
        },
        remove = { -- Animation of putting the weapon back from hand and duration (in ms)
            animDictionary = "reaction@intimidation@1h",
            animationName = "outro",
            time = 1200
        },
    }
}

-- Add here the weapons that cannot be picked up in the vehicle in gta, that is, weapons that cannot be fired from inside the vehicle
-- You can pick up the weapons you add here while you are in the vehicle, so that when you get out of the vehicle, the weapon is in your hand.
config.bigWeapons = {
    [`weapon_smg`] = true,
    [`weapon_smg_mk2`] = true,
    [`weapon_assaultsmg`] = true,
    [`weapon_combatpdw`] = true,
    [`weapon_raycarbine`] = true,
    [`weapon_pumpshotgun`] = true,
    [`weapon_pumpshotgun_mk2`] = true,
    [`weapon_sawnoffshotgun`] = true,
    [`weapon_assaultshotgun`] = true,
    [`weapon_bullpupshotgun`] = true,
    [`weapon_musket`] = true,
    [`weapon_heavyshotgun`] = true,
    [`weapon_dbshotgun`] = true,
    [`weapon_autoshotgun`] = true,
    [`weapon_assaultrifle`] = true,
    [`weapon_assaultrifle_mk2`] = true,
    [`weapon_carbinerifle`] = true,
    [`weapon_carbinerifle_mk2`] = true,
    [`weapon_advancedrifle`] = true,
    [`weapon_specialcarbine`] = true,
    [`weapon_specialcarbine_mk2`] = true,
    [`weapon_bullpuprifle`] = true,
    [`weapon_bullpuprifle_mk2`] = true,
    [`weapon_compactrifle`] = true,
    [`weapon_mg`] = true,
    [`weapon_combatmg`] = true,
    [`weapon_combatmg_mk2`] = true,
    [`weapon_gusenberg`] = true,
    [`weapon_sniperrifle`] = true,
    [`weapon_heavysniper`] = true,
    [`weapon_heavysniper_mk2`] = true,
    [`weapon_marksmanrifle`] = true,
    [`weapon_marksmanrifle_mk2`] = true,
    [`weapon_rpg`] = true,
    [`weapon_grenadelauncher`] = true,
    [`weapon_grenadelauncher_smoke`] = true,
    [`weapon_minigun`] = true,
    [`weapon_firework`] = true,
    [`weapon_railgun`] = true,
    [`weapon_hominglauncher`] = true,
    [`weapon_compactlauncher`] = true,
    [`weapon_rayminigun`] = true,
    [`weapon_dagger`] = true,
    [`weapon_bat`] = true,
    [`weapon_bottle`] = true,
    [`weapon_crowbar`] = true,
    [`weapon_unarmed`] = true,
    [`weapon_flashlight`] = true,
    [`weapon_golfclub`] = true,
    [`weapon_hammer`] = true,
    [`weapon_hatchet`] = true,
    [`weapon_knuckle`] = true,
    [`weapon_knife`] = true,
    [`weapon_machete`] = true,
    [`weapon_switchblade`] = true,
    [`weapon_nightstick`] = true,
    [`weapon_wrench`] = true,
    [`weapon_battleaxe`] = true,
    [`weapon_poolcue`] = true,
    [`weapon_stone_hatchet`] = true,
}

-- Weapon Durabilty values
local weaponList = {
    -- Handguns
    weapon_stungun               = 100,
    weapon_pistol                = 500,
    weapon_pistol_mk2            = 500,
    weapon_combatpistol          = 500,
    weapon_appistol              = 500,
    weapon_pistol50              = 500,
    weapon_snspistol             = 500,
    weapon_heavypistol           = 500,
    weapon_vintagepistol         = 500,
    weapon_flaregun              = 500,
    weapon_marksmanpistol        = 500,
    weapon_revolver              = 500,
    weapon_revolver_mk2          = 500,
    weapon_doubleaction          = 500,
    weapon_snspistol_mk2         = 500,
    weapon_raypistol             = 500,
    weapon_ceramicpistol         = 500,
    weapon_navyrevolver          = 500,
    weapon_gadgetpistol          = 500,
    weapon_pistolxm3             = 500,
    -- Submachine Guns
    weapon_microsmg              = 1000,
    weapon_smg                   = 1000,
    weapon_smg_mk2               = 1000,
    weapon_assaultsmg            = 1000,
    weapon_combatpdw             = 1000,
    weapon_machinepistol         = 1000,
    weapon_minismg               = 1000,
    weapon_raycarbine            = 1000,
    -- Shotguns
    weapon_pumpshotgun           = 150,
    weapon_sawnoffshotgun        = 150,
    weapon_assaultshotgun        = 150,
    weapon_bullpupshotgun        = 150,
    weapon_musket                = 150,
    weapon_heavyshotgun          = 150,
    weapon_dbshotgun             = 150,
    weapon_autoshotgun           = 150,
    weapon_pumpshotgun_mk2       = 150,
    weapon_combatshotgun         = 150,
    -- Assault Rifles
    weapon_assaultrifle          = 2000,
    weapon_assaultrifle_mk2      = 2000,
    weapon_carbinerifle          = 2000,
    weapon_carbinerifle_mk2      = 2000,
    weapon_advancedrifle         = 2000,
    weapon_specialcarbine        = 2000,
    weapon_bullpuprifle          = 2000,
    weapon_compactrifle          = 2000,
    weapon_specialcarbine_mk2    = 2000,
    weapon_bullpuprifle_mk2      = 2000,
    weapon_militaryrifle         = 2000,
    -- Light Machine Guns
    weapon_mg                    = 3000,
    weapon_combatmg              = 3000,
    weapon_gusenberg             = 3000,
    weapon_combatmg_mk2          = 3000,
    -- Sniper Rifles
    weapon_sniperrifle           = 50,
    weapon_heavysniper           = 50,
    weapon_marksmanrifle         = 50,
    weapon_remotesniper          = 50,
    weapon_heavysniper_mk2       = 50,
    weapon_marksmanrifle_mk2     = 50,
    -- Heavy Weapons
    weapon_rpg                   = 10,
    weapon_grenadelauncher       = 10,
    weapon_grenadelauncher_smoke = 10,
    weapon_minigun               = 10,
    weapon_firework              = 10,
    weapon_railgun               = 10,
    weapon_railgunxm3            = 10,
    weapon_hominglauncher        = 10,
    weapon_compactlauncher       = 10,
    weapon_rayminigun            = 10,
}

config.weaponBreakAmount = {} -- Don't change

for weapon, int in pairs(weaponList) do
    config.weaponBreakAmount[weapon] = int
    config.weaponBreakAmount[weapon:gsub("weapon_", "weapon_police_")] = int
end
PreviousconfigVendingMachine.luaNextlumi-delperropier-texonstone

Last updated 4 months ago