[QBCore / ESX ] Elevator UI - Including gang, job and item restriction.

A script by ZaT

No reviews yet.
[QBCore / ESX ] Elevator UI - Including gang, job and item restriction. main image

Full Description

As a player, you will enjoy a seamless and user-friendly UI.

  • You can Enable/Disable the floors you don’t need.
  • You can specify a description for each floor.
  • You can restrict access with gang, job and items.
  • You can use up to 12 floors / building.
  • You can add as much elevators as you want to.

Code is accessible Yes (build version)
Subscription-based No
Lines (approximately) +10000
Requirements qbcore (QBCore) - es_extended (ESX)
Support Yes
  • Config.lua
Config.Elevators = {
    [1] = {
        name = "FIB Building",                      -- Building name
        Group = {"ambulance","police"},             -- "jobs allowed to have access"
        item = nil,                                 -- "security_pass"
        waittime = 3000,                            -- Progress bar waiting time
        floor = {
            [1] =   {id = 1,    disabled =  true,   floor = "-2",   name = "description -2...",         width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)},
            [2] =   {id = 2,    disabled =  true,   floor = "-1",   name = "description -1...",         width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)},
            [3] =   {id = 3,    disabled =  false,  floor = "0",    name = "Ground Floor",              width = 1.0, length = 1.0,      playercoords= vector4(136.19, -761.65, 45.75, 165.06), targetcoords = vector4(136.52, -763.11, 45.75, 158.37)},
            [4] =   {id = 4,    disabled =  true,   floor = "1",    name = "description 1...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [5] =   {id = 5,    disabled =  true,   floor = "2",    name = "description 2...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [6] =   {id = 6,    disabled =  true,   floor = "3",    name = "description 3...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [7] =   {id = 7,    disabled =  true,   floor = "4",    name = "description 4...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [8] =   {id = 8,    disabled =  true,   floor = "5",    name = "description 5...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [9] =   {id = 9,    disabled =  true,   floor = "6",    name = "description 6...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [10] =  {id = 10,   disabled =  true,   floor = "7",    name = "description 7...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [11] =  {id = 11,   disabled =  true,   floor = "8",    name = "description 8...",          width = 1.0, length = 1.0,      playercoords= vector4(0,0,0,0), targetcoords = vector4(0,0,0,0)  },
            [12] =  {id = 12,   disabled =  false,  floor = "9",    name = "Communications Office",     width = 1.0, length = 1.0,      playercoords= vector4(135.98, -762.48, 242.15, 159.14), targetcoords = vector4(136.67, -763.16, 242.15, 183.26)},
        },
    }
}

QBCore:

ESX :