Teleport Menu

π§Ύ Overview
Name: Advanced Teleportation Script Version: 1.1 Author: 0Gravity BVVS Framework: Standalone Compatible with: ESX / QBCore (customizable) Description: A lightweight but powerful teleportation script that offers an in-game selection menu, admin-only points, cooldown logic, and automatic Discord logging of each teleport action.
π Installation
Place the script folder inside your server's
resourcesdirectory.In
server.lua, configure your Discord webhook:Add the resource to your
server.cfg:
βοΈ Features
/teleportcommand to open a menu or teleport to a locationNative notification system
Admin-only teleport points
Discord webhook integration
(Optional) Cooldown system structure
π§ Teleport Locations
Teleportation points are defined in client.lua as:
You can add or remove locations as needed. Use
adminOnly = trueto restrict access to admins.
π Admin Permissions
Inside client.lua, the isPlayerAdmin() function determines who can access admin-only locations.
You can modify this to work with your framework:
ESX:
QBCore:
π₯οΈ Usage
Command:
Behavior:
If no argument is provided: a list of available points is displayed.
If a number is provided: the player is teleported to the selected destination. Example:
Feedback: Players receive a native notification on-screen with teleport status.
π Discord Logging
Every teleport action triggers a server event:
The server then sends a message to your Discord via webhook:
This is handled in server.lua using PerformHttpRequest.
β²οΈ Cooldown Logic
A cooldown system is prepared using:
Currently, cooldown is not enforced. You can extend this logic to prevent frequent teleports.
π§± File Structure
π‘ Suggestions for Improvement
Implement real cooldown enforcement
Migrate teleport points to
config.luaAdd GUI/NUI teleportation interface
Add sound or animation effects
Support ox_lib or qb-menu UI integration
Add a whitelist system using Discord IDs
π§ͺ Example Workflow
Player types
/teleportScript shows a list of available teleport points
Player types
/teleport 1Player is moved to "LS Airport"
Log appears on Discord with player name and location
Would you like me to export this as a ready-to-import GitBook .md structure or help set up a config file?
Last updated