- The script is currently set up to (Gabz PillBox Hosptial)
-
QBCore Framework - https://github.com/qbcore-framework/qb-core
-
QB-Target - https://github.com/BerkieBb/qb-target
- Interact Sound - https://github.com/qbcore-framework/interact-sound (The sound used can be found in sounds)
-
Item Restricted Floors
-
Make Elevator useless if dead, cuffed or in last stand (Done)
- 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"
},
}
}
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.