A simple multi-building elevator script for FiveM.
This script allows players to move between multiple floors inside buildings (e.g., Pillbox Hospital).
- Multiple buildings & floors configurable
- Up/Down navigation via keybinds
- 3D text & marker support
- Optional elevator "ding" sound
- Supports ESX Notify or RiP-Notify
- Server-side teleport handling (anti-exploit & cooldown)
-
Download or clone this repository:
git clone https://github.com/Tristan-BS/CK_Elevator.git
-
Place the
ck_elevatorfolder into your FiveMresourcesdirectory. -
Add this to your
server.cfg:ensure ck_elevator
- Arrow Up (↑) → Move one floor up
- Arrow Down (↓) → Move one floor down
All settings are in config.lua:
Config.KeyUp&Config.KeyDown→ KeybindsConfig.Buildings→ Add your buildings and floorsConfig.UseESXNotify→ Toggle between ESX or RiP NotifyConfig.CooldownMs→ Anti-spam cooldown
Example:
Config.Buildings = {
{
name = "Pillbox Hospital",
floors = {
{ label = "EG", x = 287.70, y = -595.40, z = 43.16, h = 213.87 },
{ label = "1st Floor", x = 287.84, y = -595.27, z = 49.74, h = 311.65 },
{ label = "2nd Floor", x = 299.89, y = -598.25, z = 57.72, h = 299.91 },
{ label = "Roof", x = 339.17, y = -583.88, z = 74.16, h = 217.24 }
}
}
}
MIT License – feel free to use, modify, and share.