π Advanced Elevator System β Insane Devs
The Elevator Script is a fully functional, optimized, and customizable system for roleplay servers in FiveM, designed to offer an immersive, fluid, and customizable experience when moving between floors, interiors, or MLOs.
βοΈ Key Features
πΉ Modern and Dynamic NUI
The system features an intuitive visual interface that allows you to:
Easily create, edit, and delete elevators.
Assign custom names to each elevator.
Configure boarding and departing points with complete precision.
Define travel time between levels.
πΉ Interactive Markers
Each elevator point is displayed using 3D markers that are visible upon approach, with automatic distance detection to optimize performance.
πΉ Smart Instances
The system uses instances to prevent players using different elevators or floors from seeing each other, ensuring complete immersion and privacy within the elevator or in separate interiors.
If two players use the same point, they will be able to see each other; if they use different points, they will be in separate instances.
πΉ Server-Client Synchronization
All elevators saved in the database are automatically loaded upon startup and synchronized with connected or subsequently logged-in players.
πΉ Database Integration (MySQL / oxmysql)
Elevators are saved persistently, including:
Elevator name.
Point 1 and Point 2 coordinates.
Configured travel time.
This allows data to be maintained even after a server restart.
πΉ Total Optimization
Designed to consume minimal resources:
Automatic cleanup of unused markers and entities.
Dynamic loading only when the player is nearby.
Compatible with OneSync Infinity and high-traffic environments.
πΉ Full MLO support
Correctly detects and handles loaded interiors, ensuring a smooth transition without visual errors or texture loss.
πΉ Optional Animations and Freezing
The player can be animated or frozen during the ride to simulate the elevator's movement, preventing exploits or improper movement. (Optional and configurable.)
πΉ Permission system (optional)
Allows you to restrict the use of certain elevators to specific groups, ranks, or jobs, adaptable to any framework (ESX, QBCore, or standalone).
πΉ Customizable sounds
You can add sound effects for the elevator's opening, movement, and arrival, controlled from the client.lua or the NUI (optional).
πΎ Main commands
/elevator β Opens the main menu to create or edit elevators.
π Technical Structure
Language: Lua
Framework: Standalone (compatible with ESX/QBCore)
Dependencies: oxmysql
π Advantages
β Fully configurable.
β Persistent with database.
β Compatible with any map or interior.
β 100% optimized and free of visual errors.
β
Ideal for buildings, hotels, hospitals, garages, and more.
πWatch the video