Config

Here you can get a preview of the config files.

Config = {}
Config.locale = Locales["en"] -- en | es | fr | de | it | pt | ru| zh
Config.debug = false

Config.defaultSettings = {
    ["maxPlayers"] = 12,
    ["mode"] = "FFA", -- Teams/FFA
    ["numberOfTeams"] = 2,
    ["weapon"] = "nass_paintball_gun",--"nass_paintball_gun",
    ["wager"] = 500,
    ["lives"] = 3, -- If changed, must be in Config.lives
    ["map"] = "Rust",-- If changed, must be in Config.maps
    ["allowSpectate"] = true, -- Config.spectate.enabled must be true
    ["timeLimit"] = 10, --In Minutes/If changed, must be in Config.timeLimits
    ["privateLobby"] = false,
    ["maxScore"] = 10,-- If changed, must be in Config.scores
}

Config.leaveLobby = {
    enabled = true,
    commandName = "leavePaintball",
}

Config.setupLocations = {
    {
        coords = vector4(-266.3095, -2017.1084, 30.1456, 233.2725),
        blip = {
            enabled = true,
            label = Config.locale["blip_name"],
            sprite = 160,
            scale = 0.65,
            shortrange = true,
        },
        ped = {
            enabled = true,
            model = 'cs_siemonyetarian',
            frozen = true,
            blockNonTemp = true,
            invincible = true,
        }
    },
    --[[{
        coords = vector4(-282.1599, -2031.2577, 30.1457, 297.5033),
        blip = {
            enabled = true,
            label = Config.locale["blip_name"],
            sprite = 160,
            scale = 0.65,
            shortrange = true,
        },
        ped = {
            enabled = true,
            model = 'cs_siemonyetarian',
            frozen = true,
            blockNonTemp = true,
            invincible = true,
        }
    },]]
}
Config.defaultHealth = 100 --Personally would leave this(Cannot be less than 2)

Config.wagering = true -- Setting this to false will disable bettings
Config.checkCash = true --Checks player cash before creating/joining lobby
Config.wagerAccount = "cash" --cash | bank

Config.useRPName = true --Will use RP name for lobby list
Config.infiniteStamina = true --If maps are large and players are running out of stamina, would recommend this

Config.waitForRespawn = true -- Add a timer to respawn after a player death
Config.respawnTime = 10 -- In Seconds
Config.spawnProtection = true -- Give player spawn protection when they respawn
Config.spawnProtectionTimer = 5 --Timer in seconds for length of spawn protection
Config.setTransparent = true -- Set the player semi-transparent to indicate that they have spawn protection currently on | Config.SpawnProtection must be true
Config.resetHealth = true -- Reset player health when they get a kill

Config.infniteAmmo = true -- If you are having issues with your anticheat, set this to false
Config.ammoAmount = 200 -- Default ammount of bullets given with the weapon

--Enable this if you would like your pma voice to add players on a team to a radio channel.
Config.radio = {
    enabled = true,
}

Config.target = {-- Supports "ox_target" | "qtarget" | "qb-target" natively
    enabled = true, --Setting to false will use normal helptext prompt
    size = {x=3.0,y=3.0,z=3.0},
    distance = 3,
    icon = "fa-solid fa-gun",
    label = Config.locale["target_label"],
}

Config.clothing = true --Setting this to false will remove the outfits
Config.teams = {
    [1] = {
        name = "Red",
        color = "red",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 5, drawable = 178 }, -- Torso2
            { component = 9, texture = 4, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 5, drawable = 77 },  -- Legs
            { component = 6, texture = 5, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 5, drawable = 180 }, -- Torso2
            { component = 9, texture = 4, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 5, drawable = 79 },  -- Legs
            { component = 6, texture = 5, drawable = 58 },  -- Shoes
        },
    },
    [2] = {
        name = "Blue",
        color = "blue",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 6, drawable = 178 }, -- Torso2
            { component = 9, texture = 5, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 6, drawable = 77 },  -- Legs
            { component = 6, texture = 6, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 6, drawable = 180 }, -- Torso2
            { component = 9, texture = 5, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 6, drawable = 79 },  -- Legs
            { component = 6, texture = 6, drawable = 58 },  -- Shoes
        },
    },
    [3] = {
        name = "Green",
        color = "green",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 1, drawable = 178 }, -- Torso2
            { component = 9, texture = 0, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 1, drawable = 77 },  -- Legs
            { component = 6, texture = 1, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 1, drawable = 180 }, -- Torso2
            { component = 9, texture = 0, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 1, drawable = 79 },  -- Legs
            { component = 6, texture = 1, drawable = 58 },  -- Shoes
        },
    },
    [4] = {
        name = "Orange",
        color = "orange",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 2, drawable = 178 }, -- Torso2
            { component = 9, texture = 1, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 2, drawable = 77 },  -- Legs
            { component = 6, texture = 2, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 2, drawable = 180 }, -- Torso2
            { component = 9, texture = 1, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 2, drawable = 79 },  -- Legs
            { component = 6, texture = 2, drawable = 58 },  -- Shoes
        },
    },
    [5] = {
        name = "Yellow",
        color = "yellow",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 0, drawable = 178 }, -- Torso2
            { component = 9, texture = 1, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 0, drawable = 77 },  -- Legs
            { component = 6, texture = 0, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 0, drawable = 180 }, -- Torso2
            { component = 9, texture = 1, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 0, drawable = 79 },  -- Legs
            { component = 6, texture = 0, drawable = 58 },  -- Shoes
        },
    },
    [6] = {
        name = "Purple",
        color = "purple",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 3, drawable = 178 }, -- Torso2
            { component = 9, texture = 2, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 3, drawable = 77 },  -- Legs
            { component = 6, texture = 3, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 3, drawable = 180 }, -- Torso2
            { component = 9, texture = 2, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 3, drawable = 79 },  -- Legs
            { component = 6, texture = 3, drawable = 58 },  -- Shoes
        },
    },
    [7] = {
        name = "Black",
        color = "black",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 10, drawable = 178 }, -- Torso2
            { component = 9, texture = 9, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 10, drawable = 77 },  -- Legs
            { component = 6, texture = 10, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 10, drawable = 180 }, -- Torso2
            { component = 9, texture = 9, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 10, drawable = 79 },  -- Legs
            { component = 6, texture = 10, drawable = 58 },  -- Shoes
        },
    },
    [8] = {
        name = "White",
        color = "white",
        male_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 9, drawable = 178 }, -- Torso2
            { component = 9, texture = 8, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 17 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 9, drawable = 77 },  -- Legs
            { component = 6, texture = 9, drawable = 55 },  -- Shoes
        },
        female_clothing = {
            { component = 8, texture = 0, drawable = 15 },  -- Torso1
            { component = 11, texture = 9, drawable = 180 }, -- Torso2
            { component = 9, texture = 8, drawable = 17 },  -- Vest
            { component = 3, texture = 0, drawable = 19 },  -- Arms
            { component = 1, texture = 0, drawable = 28 },  -- Mask
            { component = 4, texture = 9, drawable = 79 },  -- Legs
            { component = 6, texture = 9, drawable = 58 },  -- Shoes
        },
    },
}

--If you want to remove a weapon, delete it from this list
Config.headshotMultiplier = 3.0
Config.weapons = {
    ["nass_paintball_gun"] = {label = "Paintball Gun", damage = 20},
    ["WEAPON_REVOLVER"] = {label = "Revolver", damage = 37},
    ["WEAPON_PISTOL"] = {label = "Pistol", damage = 15},
    ["WEAPON_PISTOL_MK2"] = {label = "Pistol Mk2", damage = 20},
    ["WEAPON_COMBATPISTOL"] = {label = "Combatpistol", damage = 25},
    ["WEAPON_APPISTOL"] = {label = "AP Pistol", damage = 20},
    ["WEAPON_PISTOL50"] = {label = "Pistol 50", damage = 40},
    ["WEAPON_SNSPISTOL"] = {label = "SNS Pistol", damage = 15},
    ["WEAPON_HEAVYPISTOL"] = {label = "Heavy Pistol", damage = 40},
    ["WEAPON_VINTAGEPISTOL"] = {label = "Vintage Pistol", damage = 30},
    ["WEAPON_MARKSMANPISTOL"] = {label = "Marksman Pistol", damage = 30},
    ["WEAPON_MICROSMG"] = {label = "Micro SMG", damage = 20},
    ["WEAPON_MINISMG"] = {label = "Mini SMG", damage = 20},
    ["WEAPON_SMG"] = {label = "SMG", damage = 20},
    ["WEAPON_SMG_MK2"] = {label = "SMG Mk2", damage = 20},
    ["WEAPON_ASSAULTSMG"] = {label = "Assault SMG", damage = 20},
    ["WEAPON_MG"] = {label = "MG", damage = 20},
    ["WEAPON_COMBATMG"] = {label = "Combat MG", damage = 20},
    ["WEAPON_COMBATMG_MK2"] = {label = "Combat MG Mk2", damage = 20},
    ["WEAPON_COMBATPDW"] = {label = "Combat PDW", damage = 20},
    ["WEAPON_GUSENBERG"] = {label = "Gusenberg", damage = 20},
    ["WEAPON_MACHINEPISTOL"] = {label = "Machine Pistol", damage = 20},
    ["WEAPON_ASSAULTRIFLE"] = {label = "Assault Rifle", damage = 20},
    ["WEAPON_ASSAULTRIFLE_MK2"] = {label = "Assault Rifle Mk2", damage = 20},
    ["WEAPON_CARBINERIFLE"] = {label = "Carbine Rifle", damage = 20},
    ["WEAPON_CARBINERIFLE_MK2"] = {label = "Carbine Rifle Mk2", damage = 20},
    ["WEAPON_ADVANCEDRIFLE"] = {label = "Advanced Rifle", damage = 20},
    ["WEAPON_SPECIALCARBINE"] = {label = "Special Carbine", damage = 20},
    ["WEAPON_BULLPUPRIFLE"] = {label = "Bullpup Rifle", damage = 20},
    ["WEAPON_COMPACTRIFLE"] = {label = "Compact Rifle", damage = 20},
    ["WEAPON_PUMPSHOTGUN"] = {label = "Pump Shotgun", damage = 60},
    ["WEAPON_SAWNOFFSHOTGUN"] = {label = "Sawnoff Shotgun", damage = 40},
    ["WEAPON_BULLPUPSHOTGUN"] = {label = "Bullpup Shotgun", damage = 50},
    ["WEAPON_ASSAULTSHOTGUN"] = {label = "Assault Shotgun", damage = 60},
    ["WEAPON_MUSKET"] = {label = "Musket", damage = 120},
    ["WEAPON_HEAVYSHOTGUN"] = {label = "Heavy Shotgun", damage = 40},
    ["WEAPON_DBSHOTGUN"] = {label = "DB Shotgun", damage = 40},
    ["WEAPON_SNIPERRIFLE"] = {label = "Sniper Rifle", damage = 200},
    ["WEAPON_HEAVYSNIPER"] = {label = "Heavy Sniper", damage = 200},
    ["WEAPON_HEAVYSNIPER_MK2"] = {label = "Heavy Sniper Mk2", damage = 200},
    ["WEAPON_MARKSMANRIFLE"] = {label = "Marksman Rifle", damage = 200},
    ["WEAPON_SNSPISTOL_MK2"] = {label = "SNS Pistol Mk2", damage = 17},
    ["WEAPON_REVOLVER_MK2"] = {label = "Revolver Mk2", damage = 40},
    ["WEAPON_DOUBLEACTION"] = {label = "Double Action", damage = 30},
    ["WEAPON_SPECIALCARBINE_MK2"] = {label = "Special Carbine Mk2", damage = 20},
    ["WEAPON_BULLPUPRIFLE_MK2"] = {label = "Bullpup Rifle Mk2", damage = 20},
    ["WEAPON_PUMPSHOTGUN_MK2"] = {label = "Pump Shotgun Mk2", damage = 20},
    ["WEAPON_MARKSMANRIFLE_MK2"] = {label = "Marksman Rifle Mk2", damage = 20},
    ["WEAPON_RAYPISTOL"] = {label = "Ray Pistol", damage = 20},
    ["WEAPON_RAYCARBINE"] = {label = "Ray Carbine", damage = 20},
    ["WEAPON_RAYMINIGUN"] = {label = "Ray Minigun", damage = 20},
    ["WEAPON_NAVYREVOLVER"] = {label = "Navy Revolver", damage = 20},
    ["WEAPON_MILITARYRIFLE"] = {label = "Military Rifle", damage = 20},
    ["WEAPON_COMBATSHOTGUN"] = {label = "Combat Shotgun", damage = 20},
    ["WEAPON_AUTOSHOTGUN"] = {label = "Auto Shotgun", damage = 30},
}

Config.leaderboard = {
    enabled = true,
    name = "showLeadeboard",
    keybind = "I",
}


-- Time limits for the dropdown menu in the lobby creation UI
Config.timeLimits = { 
    --Time in minutes
    3,
    5,
    10,
    15,
    20,
    "Unlimited",
}

Config.lives = {
    "1",
    "3",
    "5",
    "10",
}

-- Max Scores for CTF, Dog Tags, and Team Deathmatch
Config.scores = {
    "3",
    "5",
    "10",
    "15",
    "20",
    "30",
    "50",
    "100",
    "150",
    "250",
}

Config.spectate = {
    enabled = true,
    controls = { -- https://docs.fivem.net/docs/game-references/controls/#controls
        cancel = {194, "INPUT_FRONTEND_RRIGHT"}, --Backspace
        left = {189, "INPUT_FRONTEND_LEFT"}, -- Left Arrow
        right = {190, "INPUT_FRONTEND_RIGHT"}, -- Right Arrow
    }
}


Config.gunGameWeapons = { --Must be in Config.weapons
    "WEAPON_REVOLVER",
    "WEAPON_PISTOL",
    "WEAPON_COMBATPISTOL",
    "WEAPON_APPISTOL",
    "WEAPON_MICROSMG",
    "WEAPON_SMG",
    "WEAPON_ASSAULTSMG",
    "WEAPON_COMBATMG",
    "WEAPON_COMBATPDW",
    "WEAPON_GUSENBERG",
    "WEAPON_ASSAULTRIFLE",
    "WEAPON_CARBINERIFLE",
    "WEAPON_ADVANCEDRIFLE",
    "WEAPON_SPECIALCARBINE",
    "WEAPON_BULLPUPRIFLE",
    "WEAPON_COMPACTRIFLE",
    "WEAPON_PUMPSHOTGUN",
    "WEAPON_ASSAULTSHOTGUN",
    "WEAPON_MUSKET",
    "WEAPON_HEAVYSNIPER_MK2",
    "WEAPON_RAYPISTOL",
    "nass_paintball_gun",
}

Config.animationDicts = {
    [1] = {dict = "anim@amb@nightclub@dancers@podium_dancers@", anim = "hi_dance_facedj_17_v2_male^5"},
    [2] = {dict = "misscommon@response", anim = "bring_it_on"},
    [3] = {dict = "anim@amb@nightclub@mini@dance@dance_solo@female@var_a@", anim = "high_center"},
    [4] = {dict = "anim@mp_player_intcelebrationfemale@shadow_boxing" , anim = "shadow_boxing"},
    [5] = {dict = "anim@mp_player_intcelebrationfemale@knuckle_crunch", anim = "knuckle_crunch"},
    [6] = {dict = "anim@mp_player_intcelebrationfemale@thumbs_up", anim = "thumbs_up"},
    [7] = {dict = "mp_player_int_uppergang_sign_b", anim = "mp_player_int_gang_sign_b_enter"},
    [8] = {dict = "move_clown@p_m_two_idles@", anim = "fidget_adjust_nose"},
    [9] = {dict = "anim@mp_player_intcelebrationfemale@cut_throat", anim = "cut_throat"},
    [10] = {dict = "anim@mp_player_intcelebrationfemale@finger", anim = "finger"},
    [11] = {dict = "anim@arena@celeb@flat@paired@no_props@", anim = "laugh_a_player_a"},
    [12] = {dict = "anim@mp_player_intcelebrationfemale@mind_blown", anim = "mind_blown"},
    [13] = {dict = "anim@mp_player_intcelebrationfemale@raining_cash", anim = "raining_cash"},
    [14] = {dict = "anim@mp_player_intcelebrationfemale@raise_the_roof", anim = "raise_the_roof"},
    [15] = {dict = "anim@mp_player_intcelebrationfemale@shush", anim = "shush"},
    [16] = {dict = "anim@mp_player_intcelebrationfemale@thumb_on_ears", anim = "thumb_on_ears"},
    [17] = {dict = "anim@mp_player_intcelebrationfemale@uncle_disco", anim = "uncle_disco"},
    [18] = {dict = "anim@mp_player_intcelebrationfemale@wave", anim = "wave"},
    [19] = {dict = "anim@mp_player_intcelebrationmale@air_guitar", anim = "air_guitar"},
    [20] = {dict = "anim@mp_player_intcelebrationmale@blow_kiss", anim = "blow_kiss"},
    [21] = {dict = "anim@mp_player_intcelebrationmale@chicken_taunt", anim = "chicken_taunt"},
    [22] = {dict = "anim@mp_player_intcelebrationmale@karate_chops", anim = "karate_chops"},
    [23] = {dict = "anim@mp_player_intcelebrationmale@slow_clap", anim = "slow_clap"},
    [24] = {dict = "anim@mp_player_intcelebrationmale@wank", anim = "wave"},
    [25] = {dict = "anim@mp_player_intcelebrationpaired@m_m_fist_bump", anim = "fist_bump_left"},
    [26] = {dict = "anim@mp_player_intcelebrationpaired@f_f_sarcastic", anim = "sarcastic_left"},
}

Config.deathAnimation = {
    dict = "mini@cpr@char_b@cpr_def",
    anim = "cpr_pumpchest_idle",
}


Config.checkPermFunction = false -- Added by request. Turn this on to use the permCheck function in the server/unlocked.lua

Last updated