Infinity Store
Tebex StoreDiscord
  • CFX Auth
  • Resources
    • Scoreboard
      • Installation
      • Configuration
      • Robbery Integration
      • Exports
    • Squad system
      • Installation
      • Configuration
      • Exports
    • Notification
      • Installation
      • Configuration
      • Exports
    • Dashboard V2
      • Installation
      • Configuration
      • Webhooks
      • Exports
    • Job choice
      • Installation
      • Configuration
      • Exports
    • Pausemenu
      • Installation
      • Configuration
      • Exports
    • Playtime Shop
      • Installation
      • Configuration
      • Client events
      • SQL
      • Exports
    • Identity
      • Installation
      • Configuration
      • Exports
    • Keyguide
      • Installation
      • Configuration
      • Exports
    • HUD + UI LIB
      • Installation
      • Configuration
      • Customization
      • Exports
  • Military resources
    • Mortar
      • Installiation
      • Configuration
      • Exports
    • Bomb drone
      • Installiation
      • Configuration
      • Exports
    • Claymore
      • Installiation
      • Configuration
      • Exports
Powered by GitBook
On this page

Was this helpful?

  1. Resources
  2. HUD + UI LIB

Configuration

Config = {}

-- Server informations
Config.ServerName = "Infinity Roleplay"
Config.Currency = "$"
Config.maxPlayers = 64

-- HUD Infos
Config.HUDColor = "255, 95, 0" -- r, g, b
-- top = (%) / left = (percentage) / active = (visibility) / disabled = (display)
Config.HUDElements = {
	["ServerInfo"] = { top = 1, left = 81, active = true, disabled = false },
	["ID"] = { top = 5, left = 81, active = true, disabled = false },
	["Job"] = { top = 5, left = 85.5, active = true, disabled = false },
	["Money"] = { top = 9, left = 81, active = true, disabled = false },
	["Bank"] = { top = 13, left = 81, active = true, disabled = false },
	["PP"] = { top = 17, left = 81, active = true, disabled = false },
	["Voice"] = { top = 1, left = 78.5, active = true, disabled = false },
	["Weapon"] = { top = 21, left = 81, active = true, disabled = false },
	["Minimap"] = { top = 80, left = 3, active = true, disabled = false },
	["Direction"] = { top = 76, left = 3, active = true, disabled = false },
	["Health"] = { top = 95, left = 45.5, active = true, disabled = false },
	["Shield"] = { top = 95, left = 48, active = true, disabled = false },
	["Hunger"] = { top = 95, left = 50.5, active = true, disabled = false },
	["Thirst"] = { top = 95, left = 53, active = true, disabled = false },
	["SpeedometerRadial"] = { top = 80, left = 84, active = true, disabled = false },
	["SpeedometerLinear"] = { top = 88, left = 81, active = false, disabled = false },
	["Notify"] = { top = 45, left = 3, active = true, disabled = false },
	["Progressbar"] = { top = 85, left = 41, active = true, disabled = false },
	["TextUI"] = { top = 47, left = 81, active = true, disabled = false },
	["TextUI3D"] = { active = false, disabled = false },
	["Waypoint"] = { active = true, disabled = false },
	["Task"] = { top = 8, left = 41, active = true, disabled = false },
	["Chat"] = { top = 1, left = 3, active = true, disabled = false },
}

-- Disable default GTA HUD components
Config.DisableHudComponents = {
	[1] = true, --WANTED_STARS,
	[2] = true, --WEAPON_ICON
	[3] = true, --CASH
	[4] = true, --MP_CASH
	[5] = true, --MP_MESSAGE
	[6] = true, --VEHICLE_NAME
	[7] = true, -- AREA_NAME
	[8] = true, -- VEHICLE_CLASS
	[9] = true, --STREET_NAME
	[10] = false, --HELP_TEXT
	[11] = false, --FLOATING_HELP_TEXT_1
	[12] = false, --FLOATING_HELP_TEXT_2
	[13] = true, --CASH_CHANGE
	[14] = false, --RETICLE
	[15] = false, --SUBTITLE_TEXT
	[16] = true, --RADIO_STATIONS
	[17] = true, --SAVING_GAME,
	[18] = true, --GAME_STREAM
	[19] = true, --WEAPON_WHEEL
	[20] = true, --WEAPON_WHEEL_STATS
	[21] = true, --HUD_COMPONENTS
	[22] = true, --HUD_WEAPONS
}

-- 3D components wait time
Config.renderDelay = 0

-- Vehicle
Config.speedType = "kmh"
Config.showMinimapAlways = false
Config.maxAltitude = 1500

-- Pausemenu settings
Config.EnablePausemenu = true

-- Keybinds
Config.Keybinds = {
	pausemenu = "Escape",
	seatbelt = "B",
	chat = "T",
	chatmode = "G",
}

-- Permissions (chat)
Config.allowedPermissions = {
	"admin",
}

-- Chat commands to remove suggestion
Config.removeCommandSuggestions = {}

-- Prevent spamming
Config.chatCooldown = 0

-- Socials
Config.socials = {
	discord = "",
	youtube = "",
	tiktok = "",
}
Language = {
    ['pausemenu'] = {
        ['play'] = {
            text = 'Play',
            fontsize = '1vh'
        },
        ['map'] = {
            text = 'Map',
            fontsize = '1.2vh'
        },
        ['ui'] = {
            text = 'UI',
            fontsize = '1.2vh'
        },
        ['settings'] = {
            text = 'Settings',
            fontsize = '1vh'
        },
    },
    ['direction'] = {
        ['North'] = 'North',
        ['NorthWest'] = 'NorthWest',
        ['West'] = 'West',
        ['SouthWest'] = 'SouthWest',
        ['South'] = 'South',
        ['SouthEast'] = 'SouthEast',
        ['East'] = 'East',
        ['NorthEast'] = 'NorthEast',
    },
    ['chat'] = {
        ['all'] = {
            text = 'All',
            fontsize = '1.5vh'
        },
        ['ooc'] = {
            text = 'OOC',
            fontsize = '1.5vh'
        },
        ['pm'] = {
            text = 'PM',
            fontsize = '1.5vh'
        },
        ['faction'] = {
            text = 'Faction',
            fontsize = '1.5vh'
        },
        ['admin'] = {
            text = 'Admin',
            fontsize = '1.5vh'
        },
        ['server'] = {
            text = 'Server',
            fontsize = '1.5vh'
        },
        ['placeholder'] = {
            text = 'Type something...',
            fontsize = '1.5vh'
        },
        ['notfound'] = {
            text = 'No Match Found',
            fontsize = '1.5vh'
        },
        ['nopermission'] = {
            text = 'No Permission',
            fontsize = '1.5vh'
        },
    },
    ['uieditor'] = {
        ['chat'] = 'Chat Content',
        ['serverinfo'] = 'Server Info',
        ['id'] = 'ID',
        ['job'] = 'Job',
        ['money'] = 'Money',
        ['bank'] = 'Bank',
        ['pp'] = 'PP',
        ['weapon'] = 'Weapon',
        ['speedoradial'] = 'Speedometer Radial',
        ['speedolinear'] = 'Speedometer Linear',
        ['notify'] = 'Notify Content',
        ['direction'] = 'Direction',
        ['minimap'] = 'Minimap',
        ['progressbar'] = 'Progressbar',
        ['textui'] = 'TextUI',
        ['task'] = 'Task Content'
    },
    ['preset'] = {
        ['preset1'] = {
            text = 'Preset 1',
            fontsize = '1vh'
        },
        ['preset2'] = {
            text = 'Preset 2',
            fontsize = '1vh'
        },
        ['preset3'] = {
            text = 'Preset 3',
            fontsize = '1vh'
        },
        ['preset4'] = {
            text = 'Preset 4',
            fontsize = '1vh'
        },
        ['cinema'] = {
            text = 'Cinema',
            fontsize = '1vh'
        },
        ['reset'] = {
            text = 'Reset',
            fontsize = '1vh'
        },
        ['close'] = {
            text = 'Close',
            fontsize = '1vh'
        },
        ['elements'] = {
            text = 'Elements',
            fontsize = '0.8vh'
        },
    }
}
WeaponNames = {
    [2725352035] = "Unarmed",
    [2578778090] = "Knife",
    [1737195953] = "Nightstick",
    [1317494643] = "Hammer",
    [2508868239] = "Baseball Bat",
    [1141786504] = "Golf Club",
    [2227010557] = "Crowbar",
    [453432689] = "Pistol",
    [1593441988] = "Combat Pistol",
    [584646201] = "AP Pistol",
    [2578377531] = "Pistol .50",
    [3218215474] = "SNS Pistol",
    [2548703416] = "Heavy Pistol",
    [137902532] = "Vintage Pistol",
    [3249783761] = "Revolver",
    [3696079510] = "Marksman Pistol",
    [2548703416] = "Double Action Revolver",
    [736523883] = "SMG",
    [324215364] = "Micro SMG",
    [4024951519] = "Assault SMG",
    [171789620] = "Combat PDW",
    [3675956304] = "Machine Pistol",
    [3173288789] = "Mini SMG",
    [2634544996] = "MG",
    [2144741730] = "Combat MG",
    [1627465347] = "Gusenberg Sweeper",
    [3220176749] = "Assault Rifle",
    [2210333304] = "Carbine Rifle",
    [2937143193] = "Advanced Rifle",
    [3231910285] = "Special Carbine",
    [2132975508] = "Bullpup Rifle",
    [1649403952] = "Compact Rifle",
    [984333226] = "Military Rifle",
    [4208062921] = "Carbine Rifle Mk II",
    [961495388] = "Assault Rifle Mk II",
    [487013001] = "Pump Shotgun",
    [2017895192] = "Sawed-Off Shotgun",
    [2640438543] = "Bullpup Shotgun",
    [3800352039] = "Assault Shotgun",
    [2828843422] = "Musket",
    [984333226] = "Heavy Shotgun",
    [4019527611] = "Double Barrel Shotgun",
    [317205821] = "Auto Shotgun",
    [100416529] = "Sniper Rifle",
    [205991906] = "Heavy Sniper",
    [3342088282] = "Marksman Rifle",
    [2726580491] = "Grenade Launcher",
    [2982836145] = "Rocket Launcher",
    [1119849093] = "Minigun",
    [2138347493] = "Firework Launcher",
    [1834241177] = "Railgun",
    [1672152130] = "Homing Launcher",
    [125959754] = "Compact Grenade Launcher",
    [1198879012] = "Flare Gun",
    [2343591895] = "Flashlight",
    [2694266206] = "BZ Gas",
    [615608432] = "Molotov",
    [741814745] = "Sticky Bomb",
    [2874559379] = "Proximity Mine",
    [126349499] = "Snowball",
    [3125143736] = "Pipe Bomb",
    [600439132] = "Baseball",
    [4256991824] = "Tear Gas",
    [883325847] = "Jerry Can",
    [4222310262] = "Parachute",
    [101631238] = "Fire Extinguisher"
}

PreviousInstallationNextCustomization

Last updated 9 hours ago

Was this helpful?