Skip to content

๐Ÿš‚ BLN Ghost Train โ€‹

bln ghost train

๐Ÿ“บ Preview โ€‹

Video Preview

๐Ÿ’ฐ Buy Now โ€‹

Get it now

Enhance your RedM server with a mysterious and ethereal Ghost Train experience! Create unforgettable supernatural moments and special events with this unique, immersive script.

โœจ Features โ€‹

  • ๐Ÿš‚ Spawn a semi-transparent, non-colliding ghost train - Perfect for supernatural events and storytelling
  • ๐Ÿ‘ป Invisible driver mechanic - Adds to the mysterious, immersive gameplay experience
  • ๐ŸŽฎ Simple controls - Use W/S keys to control speed and direction effortlessly
  • ๐ŸŒ Full network synchronization - Works seamlessly across all players in multiplayer
  • ๐Ÿ”’ Customizable permission system - Flexible access control for admin/event management
  • ๐Ÿ’ซ Smooth transitions - Screen fades when spawning/despawning for polished experience
  • โš™๏ธ Easy configuration - Simple config file for server customization
  • โšก Highly optimized - 0.0 resmon impact when idle! Minimal performance footprint

Elevate your server's atmosphere with this unique, engaging, and performance-friendly Ghost Train script!

๐Ÿ“‹ Dependencies โ€‹

This script is standalone and doesn't require any dependencies!

โš™๏ธ Installation โ€‹

  1. Download the latest release
  2. Extract the files to your server's resource folder: resources/[BLN]/bln_ghost_train
  3. Add ensure bln_ghost_train to your server.cfg
  4. Configure the settings in config.lua to your liking (optional)
  5. Configure permissions in c/permission.lua if needed
  6. Restart your server

๐Ÿ› ๏ธ Configuration โ€‹

The configuration is simple and straightforward:

lua
Config = {}
Config.Debug = true -- Enable debug mode for troubleshooting
Config.Command = "gt" -- Change this to your preferred command name

Configuration Options โ€‹

OptionTypeDefaultDescription
DebugbooleantrueEnable debug mode for troubleshooting and console messages
Commandstring"gt"The command name to spawn/control the ghost train

๐Ÿ”’ Permission System โ€‹

The script includes a customizable permission system that you can modify to fit your server's needs:

lua
-- File: c/permission.lua

-- Here you can add your own custom permissions to the command.
-- Default: Anyone can use the command.
function HasPermission()
    -- Your logic here. example: Job lock, server permissions, etc.
    return true
end

Permission Examples โ€‹

Example 1: Admin Only

lua
function HasPermission()
    -- Check if player is admin (adjust based on your framework)
    local player = PlayerPedId()
    -- Example: Check player's server ID or ace permissions
    return IsPlayerAceAllowed(PlayerId(), "ghosttrain.use")
end

Example 2: Job-Based (VORP Example)

lua
function HasPermission()
    -- Example for VORP Core
    local Core = exports.vorp_core:GetCore()
    local User = Core.getUser(source)
    local Character = User.getUsedCharacter
    local job = Character.job
    
    -- Allow only sheriffs and admins
    return job == "sheriff" or job == "admin"
end

Example 3: Item-Based Permission

lua
function HasPermission()
    -- Check if player has a specific item
    -- Adjust based on your inventory system
    local hasSpecialTicket = exports.your_inventory:HasItem("ghost_train_ticket")
    return hasSpecialTicket
end

๐ŸŽฎ Usage โ€‹

Spawning the Ghost Train โ€‹

  1. Use the command to spawn the ghost train:

    /gt

    (or whatever command you configured in config.lua)

  2. Control the train using simple keyboard controls:

    • W - Increase speed / Move forward
    • S - Decrease speed / Move backward / Stop
  3. Use the command again while in the train to despawn it

๐Ÿค Support โ€‹

Need help? Have questions? Join our Discord server for support and updates!

  • ๐Ÿ’ฌ Discord: Join Here
  • ๐ŸŽฎ Live support and community help
  • ๐Ÿ”„ Regular updates and improvements
  • ๐Ÿ“š Additional resources and guides

Create unforgettable supernatural moments on your RedM server with BLN Ghost Train! ๐Ÿš‚๐Ÿ‘ป