[FREE] Elevator Interface

So how would i make it have more elevators?

By writing syntax correct code. You can technically add in as many as you want but with syntax errors the code will just not run.
As I stated on line 20 you’re trying to declare a new entry without closing the previous one, there for you have a different amount of { compare to } which need to be equal.

This is what you have:

Config.Elevators = {
    ["A Elevator"] = {
        restricted = { ["police"] = 0 },
        vehicle = false,
        floors = { --[[ Floor Data]] },
    ["Another Elevator"] = {
        restricted = { ["police"] = 0 },
        vehicle = false,
        floors = { --[[ Floor Data]] },
    }
}

This is what you should have:

Config.Elevators = {
    ["A Elevator"] = {
        restricted = { ["police"] = 0 }, --[[ or {"police", "ambulance"} or false to disable ]]
        vehicle = false,
        floors = { --[[ Floor Data]] },
    },
    ["Another Elevator"] = {
        restricted = { ["police"] = 0 }, --[[ or {"police", "ambulance"} or false to disable ]]
        vehicle = false,
        floors = { --[[ Floor Data]] },
    }
}

Im still not understanding this, this is not an easy template to just copy an paste for more elevators-
now im havin this issue

SCRIPT ERROR: @ox_lib/imports/zones/client.lua:261: expected type ‘vector3’ or ‘table’ (received nil)
convertToVector (@ox_lib/imports/zones/client.lua:261)
[global chunk] (@ox_lib/imports/zones/client.lua:407)
fn (@5m-elevator/client/zones.lua:8)

This is all fuckin confusing and making no sense how this isnt working, when i try to do more than one elevator-

Not sure what you’ve done wrong, I can’t reproduce the issue with 5 different elevators set in the config.

I’ve added more examples that all work with targeting option and zones.

Alright, ill try to work off this then an see what happens.

Any suggestions on implementations or improvements ?
I was thinking on adding sounds to the interface

I put this in my city for one my penthouse and it work’s Ty so much !

1 Like

Multiple panels for singular floors, example the layout at pillbox has 3 elevators on one floor

As the entry and exit coords are all different you’d need to create separate elevators for each one.
Might be a way to optimize the system by “grouping” elevators so you don’t have as many zones in cases where there are multiple ones for one building.

Was this intended to use the whole elevator as the target? the panel option has no purpose, I’ve changed it my end for the panel to be the 3rd eye and reduced the sphere to be only 0.4 in radius, seems to fit well.

Currently panel does nothing in the config, the target sphere is added to where you place the position, not sure if an oversight or not, or that’s acually intended.

Great script anyhow, I love the UI.

Yeah, it was intended but for some reason I never implemented it. Maybe I had it done locally because I remember using it but it was never pushed. It’s been a while so some decisions where dodgy or not implemented.

The UI was really the main focus back then, one of my first React apps (which is overkill for such a project) I released.

1 Like

Just in case you’re lurking around and still interested in adding/tweaking features, it would be insane to be able to have restricted access by level not for the entire elevator itself (as regularly some specific floors are restricted but not the entire building itself). Awesome work tho’ !

  • Overdue ? Maybe.
  • Needed ? Maybe.
  • Obligation, none.

Enjoy V2.

1 Like

For some reason, the UI isn’t closing automatically for me, even when the CloseUI configuration is set to either true or false

but I’m obligated to check it out!

1 Like