/qb-lift

qb-lift (qb-target)

Primary LanguageLuaOtherNOASSERTION

qb-lift

Preview

  • The script is currently set up to (Gabz PillBox Hosptial)

https://streamable.com/kcj95a

Dependency

Optional Dependency

ToDo List

  • Item Restricted Floors

  • Make Elevator useless if dead, cuffed or in last stand (Done)

How To?

  • How to add target for elevator
[1] = { name = "CHANGE_NAME_HERE", location = vector3(x, y, z), width = 1, length = 1, heading = h, minz = z - 1, maxz = z + 1},
  • How to add elevator with permissions & with sound
["CHANGE_NAME_HERE"] = {
    Group = {"police", "ambulance", "cartel", "lostmc"}, -- Add Jobs / Gangs to be granted access to use the elevator
    Sound = "SOUND_NAME_HERE", -- This sound must be inside interact-sound / client / html / sounds
    Name = "CHANGE_NAME_HERE",
    Floors = {
        [1] = {
            Label = "CHANGE_NAME_HERE",
            FloorDesc = "CHANGE_NAME_HERE",
            Restricted = true,
            Coords = vector3(x, y, z),
            ExitHeading = "h"
        },
        [2] = {
            Label = "CHANGE_NAME_HERE",
            FloorDesc = "CHANGE_NAME_HERE",
            Restricted = true,
            Coords = vector3(x, y, z),
            ExitHeading = "h"
        },
    }
}
  • How to add elevator with items & with sound
["CHANGE_NAME_HERE"] = {
    Sound = "SOUND_NAME_HERE", -- This sound must be inside interact-sound / client / html / sounds
    Name = "CHANGE_NAME_HERE",
    Floors = {
        [1] = {
            Label = "CHANGE_NAME_HERE",
            FloorDesc = "CHANGE_NAME_HERE",
            Item = KeyCard,
            Coords = vector3(x, y, z),
            ExitHeading = "h"
        },
        [2] = {
            Label = "CHANGE_NAME_HERE",
            FloorDesc = "CHANGE_NAME_HERE",
            Item = KeyCard,
            Coords = vector3(x, y, z),
            ExitHeading = "h"
        },
    }
}
  • How to add elevator without permissions & without sound
["CHANGE_NAME_HERE"] = {
    Name = "CHANGE_NAME_HERE",
    Floors = {
        [1] = {
            Label = "CHANGE_NAME_HERE",
            FloorDesc = "CHANGE_NAME_HERE",
            Coords = vector3(x, y, z),
            ExitHeading = "h"
        },
        [2] = {
            Label = "CHANGE_NAME_HERE",
            FloorDesc = "CHANGE_NAME_HERE",
            Coords = vector3(x, y, z),
            ExitHeading = "h"
        },
    }
}

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0