JP5M Docs
TebexDiscord
  • About JP5M
  • Paid Scripts
    • jp-refstart
      • Installation
      • Configuration
      • Admin Panel
  • jp-dutyblips
    • Installation
    • Configuration
  • jp-multijob
    • Installation
    • Configuration
  • jp-territories
    • Installation
    • Configuration
      • Base Configuration
      • Territory Configuration
      • Add-ons
  • Free Scripts
    • jp-elevator
      • Installation
      • Configuration
Powered by GitBook
On this page
  • Base Settings
  • Elevators
  1. Free Scripts
  2. jp-elevator

Configuration

How to configure the Script to your liking

Base Settings

config = {
    screenFade = true,  -- Set to false to disable the fade in / fade out option
    sound = true, -- Set to false to disable the sound
    fadeDuration = 500, -- Set the time it takes for the fade to complete in ms
    interact = "sleepless_interact", -- Set the target system (ox_target or sleepless_interact)
    targetLabel = "Use elevator",

Configure these settings for all elevators. Change between ox_target and sleepless_interact.

Elevators

```lua
{
    name = "Medical Department", -- Header of the ox_lib UI
    id = "medical_department",
    floors = {
        {
            label = "Eight floor", -- The Button lable, in this case the floor name
            description = "Management", -- The Button Description, in this case "main entrance"
            coords = vector4(200, 300, 50, 140), -- The coords that the Player will be teleported to
            interaction = vector3(200, 300, 50)  -- the coords at which the ox_target interaction will be at
        },
        {
            label = "Second floor",
            description = "Helipad & Offices",
            coords = vector4(200, 300, 50, 140),
            interaction = vector3(200, 300, 50) 
        },
        {
            label = "First floor",
            description = "Operation rooms",
            coords = vector4(200, 300, 50, 140),
            interaction = vector3(200, 300, 50) 
        },
        {
            label = "Ground floor",
            description = "Main entrance",
            coords = vector4(200, 300, 50, 140),
            interaction = vector3(200, 300, 50)
        },
    }
},
```

To add new elevators or edit existing ones, head into the elevator section of your config.lua.

Each menu is assigned a building by its (display-) name and id. Make sure your id is unique to its elevator.

Each floor is an JSON array of its parent menu, needing a label for display in the menu, a description which can be empty, as well as coordinates for the teleport spawn point and interaction position.

PreviousInstallation

Last updated 1 month ago