πŸ›—Elevator

Config.lua to Elevator

Config.lua
Config = {}

-- U have an error?, try this and check F8 --
Config.debug = true

-- Config eye target icon --
Config.targeticon = "fas fa-arrow-circle-up" -- Target Icon

-- Config progressbar --
Config.progressbar = true -- Do u want a progressbar?
Config.progressbarduration = 12000 -- 12 Seconds
Config.progressbarlabel = "Going to another floor" -- What are u waiting for?

-- ONLY IF YOU ARE USING PROGRESSBAR --
Config.music = true -- Using xsound -> https://github.com/Xogy/xsound
Config.musiclink = 'https://www.youtube.com/watch?v=jj0ChLVTpaA' -- Standard Elevator music
Config.musicvolume = 0.5 -- Change the volume

Config.bellsound = true -- Using xsound -> https://github.com/Xogy/xsound
Config.belllink = 'https://www.youtube.com/watch?v=psR-jBD3Urg' -- Standard Bell sound
Config.bellvolume = 0.5 -- Change the volume

-- Hacker -- USING MHACKING AND OX_INVENTORY --
Config.hacker = true -- Do u want to have hacker mode? -> https://github.com/overextended/ox_inventory & https://github.com/justgreatgaming/FiveM-Scripts-2
Config.hackeritem = "hacking_device" -- Name of the item required for hacking
Config.hackingtime = 35 -- ( 35 seconds ) Duration of the hack 
Config.hackersolutionlength = 7 -- Solution length
Config.hetargeticon = "fas fa-laptop-code" -- Target Icon

Config.animation = true -- Do u want animation?
Config.animationdictionary = "anim@heists@ornate_bank@hack"
Config.animationname = "hack_loop"
Config.animationobject = "hei_prop_hst_laptop"

-- Config elevators

-- Options:
-- icon = "????" (text/icon font)
-- code = ???? (Numbers)
-- keycard = "???" (text/item)

Config.elevatorsConfig = {
    {
        id = 1,
        name = "Downtown Elevator",
        floors = {
            {name = "Ground", description = "The world is starting here!", icon = "fas fa-arrow-circle-up", coords = {48.7271, -1594.6290, 29.5978}}, -- This is the first line in the menu
            {name = "Floor 1", description = "Why here?", icon = "fas fa-arrow-circle-up", code = 1234, keycard = "keycard_1", coords = {51.0422, -1594.9106, 36.4294}}, 
            {name = "Floor 2", description = "Do u know the way?", icon = "fas fa-arrow-circle-up", keycard = "keycard_2", coords = {93.1782, -1564.4789, 34.3004}} 
            -- Add more floors as needed
        }
    },
    {
        id = 2,
        name = "Uptown Elevator",
        floors = {
            {name = "Lobby", description = "The world is starting here!", icon = "fas fa-arrow-circle-up", coords = {312.0, -210.0, 53.0}},
            {name = "Floor 1", description = "The world is starting here!", icon = "fas fa-arrow-circle-up", coords = {314.0, -212.0, 60.0}},
            {name = "Floor 2", description = "The world is starting here!", icon = "fas fa-arrow-circle-up", coords = {316.0, -214.0, 67.0}}
        }
    }
    -- Add more elevators as needed
}

Last updated