Synced Elevators

dD5M Synced Elevators

⭐ Dependencies

Easy Configuration

Follow the example elevators outlined in the config. For ease of implementation I recommend using the ox_lib zone creator. Values exported are 1-1 match for config setup. https://overextended.dev/ox_lib/Modules/Zones/Shared#zone-creation-script (opens in a new tab)

-Select your core folder name -define if radial will be enabled. If not keypress is default enabled. -Define keypress if in use. Defaulted to E.

Elevator Sounds

Drag and drop the sounds from the sounds directory to your InteractSound or xSound resource. If using xSound InteractiveSound compatibility should be enabled.

Example elevator

Example below shows job locks, bypass items, and unlocked floors.

        PillboxElevatorRistricted = {
            [1] = {
                floorId = 1,
                coords = vec3(335.7, -580.3, 73.8), --Use ox_lib zones to export these values
                size = vec3(2.8, 2.8, 2.2), --Use ox_lib zones to export these values
                rotation = 339.75, --Use ox_lib zones to export these values
                heading = 180.00,  --Teleport heading
                title = 'Roof', --Displays in TextUI/Menu
                description = 'Roof Access', --Displays in TextUI/Menu
                jobs = { --Specify jobs that floors are locked to.
                    'police',
                    'ambulance'
                },
                bypassItem = 'pillbox_pass', --Specify required item that will bypass job locks.
            },
            [2] = {
                floorId = 2,
                coords = vec3(335.7, -580.3, 48.00),
                size = vec3(2.8, 2.8, 2.2),
                rotation = 339.75,
                heading = 180.00,
                title = 'Floor 5',
                description = 'Specialist Floor',
                jobs = {
                    'police',
                    'ambulance'
                },
                bypassItem = 'pillbox_pass',
            },
            [3] = {
                floorId = 3,
                coords = vec3(335.7, -580.3, 43.35),
                size = vec3(2.8, 2.8, 2.2),
                rotation = 339.75,
                heading = 180.00,
                title = 'Floor 4',
                description = 'Main Floor',
            },
            [4] = {
                floorId = 4,
                coords = vec3(335.7, -580.3, 29.0),
                size = vec3(2.8, 2.8, 2.2),
                rotation = 339.75,
                heading = 180.00,
                title = 'Floor 1',
                description = 'Lower Floor',
            },
        },