Configuration

This showcases and explains the config.lua file within the PVP Menu V3!

Config = {}

Config.ReviveCooldown = 10 -- Time in seconds for a player to be able to be revived if cooldown is enabled (LOBBY OPTION)

Config.ServerName = 'Server Name Here'

Config.MenuPosition = 'bottom-right' -- Use Ox Lib Menu Placement!

Config.crossHair = false -- CrossHair in Main Lobby?
Config.combatRoll = true -- CombatRoll in Main Lobby?
Config.recoil = true -- Recoil in Main Lobby?
Config.stamina = true -- Stamina in Main Lobby?
Config.headshot = false -- 4 Headshots in Main Lobby?
Config.siphon = true -- Siphon in Main Lobby?

Config.AllowedWeapons = {
    -- name = Display name of the weapon
    -- weaponHash = name (in ox_inv) of the weapon
    {name = "Example", weaponHash = "WEAPON_PISTOL"},
    {name = "Example2", weaponHash = "WEAPON_COMBATPISTOL"},
    {name = "Example3", weaponHash = "WEAPON_HEAVYPISTOL"},
}


Config.Ammo = {
    -- name = Display name of the ammo
    -- ammoHash = name (in ox_inv) of the ammo
    {name = "Example", ammoHash = "AMMO-9"},
    {name = "Example2", ammoHash = "AMMO-RIFLE"},
}

Config.AllowedAttachments = {
    -- name = Display name of the attachment
    -- itemName = Name (in ox_inv) for the attachment
    {name = "Example", itemName = "at_flashlight"},
}

Config.DonatorWeapons = {
    -- name = Display name of the weapon
    -- donatorHash = name (in ox_inv) of the weapon
    {name = "Example", donatorHash = "WEAPON_TEC9S"},
    {name = "Example2", donatorHash = "WEAPON_APPISTOL"},
}

Config.SpawnableVehicles = {
    { label = "Example", model = "buffalo4" },
    { label = "Example2", model = "sultan" },
}

Config.DonatorVehicles = {
    { label = "Example", model = "faggio" },
    { label = "Example2", model = "sultan2" },
}

Config.BlacklistedVehicleSpawnZones = {
    { coords = vector3(440.84, -981.14, 30.69), radius = 50.0 }, -- Example: MRPD
    { coords = vector3(-75.19, -818.74, 326.18), radius = 100.0 } -- Example: Maze Bank Roof
}

Config.Teleports = { -- Configure Your Teleports Here
    {
        id = 'warp_skate_park',
        title = 'Example Teleport',
        description = 'You have teleported to Example Teleport.',
        coords = vector3(-952.2397, -784.8572, 15.9212),
        icon = 'fas fa-gopuram',
        iconColor = '#FFD700', -- Gold
        notifyColor = '#98FB98' -- Pale Green
    },
    {
        id = 'warp_skate_park',
        title = 'Example Teleport 2',
        description = 'You have teleported to Example Teleport 2.',
        coords = vector3(-952.2397, -784.8572, 15.9212),
        icon = 'fas fa-gopuram',
        iconColor = '#FFD700', -- Gold
        notifyColor = '#98FB98' -- Pale Green
    },
}

Config.DonatorGroups = { -- Gives Access To Donator Page
    ["owner"] = true,
    ["management"] = true,
    ["lead"] = true,
    ["admin"] = true,
    ["mod"] = true,
    ["premium"] = true
}

Config.Benifits = { -- Gives Access To Certain Benefits
    ['owner'] = {
        ['noclip'] = true,
        ['ids'] = true
    },
    ['management'] = {
        ['noclip'] = true,
        ['ids'] = true
    },
    ['lead'] = {
        ['noclip'] = true,
        ['ids'] = true
    },
    ['admin'] = {
        ['noclip'] = true,
        ['ids'] = true
    },
    ['mod'] = {
        ['noclip'] = true,
        ['ids'] = true
    },
    ['premium'] = {
        ['noclip'] = true,
        ['ids'] = true
    }
}

--- MISC FEATURES BELOW ALL OPTIONAL

---------------------------
-- Discord Rich Presence --
---------------------------
Data = {
    enabled = false, -- Set to false to disable Discord Rich Presence
    appId = '', -- Discord Application ID Here For Your Bot
    asset = '', -- Upload Your Logo Here
    text = 'Players: %s/250', -- | Queue: %s', Unhash If Using Queue Export Below
    smallText = '', -- Server Name
    queueExport = function ()
        return --exports['svdden_queue']:getQueueCount() Change To Your Queue Export And Unhash above!
    end,
    actions = {
        { 'Discord', 'https://discord.gg/eazymods' }, -- Link 1
        { 'Shop Now', 'https://shop.eazymods.org/' } -- Link 2
    }
}

---------------------------
-- Auto Discord Role Sync -
---------------------------

Config.DiscordRoleSyncEnabled = false -- Enable/Disable Discord Role Sync

Config.Token = '' -- Discord Bot Token
Config.Guild = '' -- Server ID For Your Server

Config.DiscordRoles = {
    --[] Goes The Discord Role ID
    --'' Goes The Group Name
    [1251481615981613099] = 'owner',
    [1272770754110558240] = 'management',
    [1251480449403064330] = 'admin',
    [1251480397036916786] = 'mod',
    [1329896038382829690] = 'support',
    [1251693348260151376] = 'cc',
    [1364336437708853258] = 'gold',
    [1255340686656409601] = 'bronze',
    [1252021866005266502] = 'booster',
}

---------------------------
-- Automatic Carwipes -----
---------------------------
Carwipes = {
    Enabled = false, -- Enable Carwipes?

    CleanupInterval = 60000, -- 10 minutes in milliseconds

    CleanupEntities = {
        Vehicles = true,
        Peds = true,
        Objects = true,
        Pickups = true
    },

    Notification = {
        Title = 'EazyMods',
        Position = 'top-right',
        Duration = 5000,
        Background = '#141517',
        Text = '#C1C2C5',
        DescriptionText = '#909296',
        Icon = 'car',
        IconColor = '#13A113'
    },
}

---------------------------
-- Discord Weapon Perms ---
---------------------------

-- Enable / Disable Discord Weapons Perms
Config.EnableWeaponPerms = false

-- Role IDs for each permission row = tier
Config.RoleList = {
    "1251483599941927037", -- Tier [1] 
    "1364336437708853258"  -- Tier [2] 
}

Config.RestrictedWeapons = {
    [1] = {
        "WEAPON_RPG", "WEAPON_GLOCKDEMON", "WEAPON_G17B", "WEAPON_GLOCK18", "WEAPON_SWITCHBLACK", 
    },
    [2] = {
        "WEAPON_PAINTGUN", "WEAPON_PISTOL50", "WEAPON_DE", "WEAPON_REVOLVER",
    }
}

Last updated