sg-elevator

Free

Advanced teleportation system for FiveM servers using QBCore framework. Teleport between locations while maintaining vehicles, with optional job-based access control.

Overview

A comprehensive elevator and teleportation system for FiveM servers using QBCore framework. This script allows players to teleport between locations while maintaining their vehicles, with optional job-based access control and additional vehicle management features.

Features

  • Vehicle-Compatible Teleportation - Teleport players with their vehicles intact
  • Job-Based Access Control - Optional job requirements for elevator access
  • Car Dumping Sites - Vehicle destruction functionality
  • Visual Enhancements - 3D text prompts at interaction points

Installation

1

Download & Place

Download the script and place it in your resources folder

2

Rename Folder

Rename the folder to sg-elevator

3

Add to server.cfg

ensure sg-elevator
4

Configure

Configure locations in config.lua

Requirements

  • QBCore Framework (Latest version)

Configuration

Basic Elevator Setup

Config.Locations = {
    {
        name = "Building Elevator",
        from = vector4(100.0, 200.0, 30.0, 90.0), -- Ground floor
        to = vector4(100.0, 200.0, 50.0, 90.0),   -- Top floor
        label = "Press E to use elevator",
        job = "police", -- Optional: Remove for public access
    }
}

Car Dumping Sites

Config.DumpingSites = {
    {
        location = vector3(401.75, -1631.94, 29.29),
        radius = 5.0,
        label = "Press E to destroy vehicle"
    }
}

General Settings

Config.DrawDistance = 5.0    -- Distance for 3D text visibility
Config.UseKey = 38           -- E key (38) for interaction

Advanced Features

Job-Based Access

-- Police only elevator
{
    name = "Police Garage to Roof",
    from = vector4(442.0, -976.0, 25.7, 90.0),
    to = vector4(485.0, -982.0, 43.7, 90.0),
    job = "police",
    label = "Press E to use elevator"
}

-- Public elevator (no job requirement)
{
    name = "Public Elevator",
    from = vector4(100.0, 200.0, 30.0, 90.0),
    to = vector4(100.0, 200.0, 50.0, 90.0),
    label = "Press E to use elevator"
    -- No job field = public access
}

Vehicle Destruction: Players can destroy vehicles at designated dumping sites with a 5-second progress bar for realistic roleplay.

Usage

For Players

  1. Approach an elevator location
  2. Press E when prompted
  3. Wait for the progress bar to complete
  4. Teleport to your destination with your vehicle

For Administrators

  1. Configure locations in config.lua
  2. Set job requirements as needed
  3. Add dumping sites for vehicle destruction
  4. Customize labels and interaction keys

Example Locations

The script comes pre-configured with several example locations:

  • - TT Towing Interior (Job: tdaniels)
  • - Tasha Penthouse (Public)
  • - Perico Island (Public)
  • - Luca Penthouse (Public)

Perfect For

  • - Police Stations - Garage to roof access
  • - Hospitals - Multiple floor navigation
  • - Apartments - Penthouse access
  • - Businesses - Private areas
  • - Roleplay Scenarios - Vehicle disposal
  • - Custom Locations - Any teleportation needs