Kray Scripts - Flat Loader

Transform your FiveM server with the most sophisticated flatbed loading system available! This professional-grade resource delivers realistic physics, multi-vehicle capacity, and extensive customization options for the ultimate towing experience.

Screenshots:


YouTube Preview: https://www.youtube.com/watch?v=lylyTbhkgIM
Get it for FREE: https://kray-scripts.tebex.io/package/7086240
Join our Discord server: Kray Scripts

:sparkles: Core Features

Advanced Multi-Vehicle Loading

Dynamic Capacity System - Each flatbed supports custom vehicle limits (1-6+ vehicles)
Intelligent Load Positioning - Automatic spacing and placement for multiple vehicles
Smooth Animations - Professional loading/unloading with configurable speeds
Real-Time Progress Bars - Visual feedback during load operations
Height & Distance Detection - Smart vehicle detection with configurable tolerances

Realistic Physics Engine

Weight-Based System - Each vehicle class has realistic weight values
Load Capacity Limits - Prevent overloading with configurable max weight (default: 6000kg)
Dynamic Weight Calculation - Automatic weight detection by vehicle class
Speed-Based Stability - Warnings at high speeds, auto-unload at critical speeds
Physics Simulation - Authentic handling changes when loaded

Extensive Vehicle Support

10+ Pre-Configured Flatbeds - GTA V natives plus popular custom vehicles
Easy Custom Vehicle Addition - Simple config system for any flatbed model
Flexible Load Zone Configuration - Adjust X, Y, Z offsets per vehicle
Whitelist/Blacklist System - Control which vehicles can be loaded
Class-Based Restrictions - Block boats, planes, helicopters, etc.

Visual Excellence

3D Text Displays - Real-time info above flatbeds (capacity, weight, speed)
Vehicle Markers - Highlight loadable vehicles with customizable colors
Visual Straps System - Animated tie-down straps connecting vehicles
Load Zone Indicators - Optional detection radius visualization
Loading Progress Bars - Smooth progress display during operations
Particle Effects Ready - Support for enhanced visual feedback

:video_game: Gameplay Mechanics

Intuitive Controls

E Key - Load nearest vehicle or unload last loaded
X Key - Quick unload all vehicles instantly
F6 Key - Open advanced menu (future feature)
Fully Remappable - Customize all keybinds in config
Context-Sensitive Prompts - Clear on-screen instructions

Smart Detection System

12-Meter Detection Radius - Configurable search area behind flatbed
Height Tolerance - 3-meter vertical detection window
Line-of-Sight Aware - Only detects accessible vehicles
Distance Indicators - See exact distance to loadable vehicles
Multi-Vehicle Sorting - Prioritizes closest vehicles first

Safety Features

Driver Detection - Prevents loading occupied vehicles
Duplicate Prevention - Can’t load already-loaded vehicles
Flatbed Protection - Can’t load flatbed onto another flatbed
Collision Management - Smart collision handling during loads
Ground Detection - Ensures proper unloading on terrain

:wrench: Extensive Configuration

Vehicle Management

10+ Pre-Configured Vehicles - Flatbed, Packer, Hauler, Mule variants, and more
Custom Model Support - Add unlimited custom flatbeds
Per-Vehicle Capacities - Set individual load limits (1-10+ vehicles)
Adjustable Load Zones - Fine-tune placement per vehicle model

Physics Customization

Weight Classes - Configure weight for all 20+ vehicle classes
Max Load Limits - Set server-wide or per-flatbed weight caps
Speed Thresholds - Warning speed (80 KPH) and critical speed (120 KPH)
Stability Checks - Adjustable monitoring rate (default: 500ms)
Load/Unload Speed - Control animation speeds independently

Visual Settings

Toggle Options - Enable/disable any visual element
Custom Colors - RGB+Alpha for markers, zones, and straps
Render Distance - Optimize performance (default: 100m)
Text Scale - Adjust 3D text size and visibility
Marker Styles - Customize vehicle and zone indicators

Restriction System

Class Blacklisting - Block entire vehicle categories
Model Blacklisting - Restrict specific vehicles (tanks, weaponized, etc.)
Whitelist Mode - Optional allow-only-listed system
Job Restrictions Ready - ESX/QBCore integration prepared

:shield: Server Protection

Anti-Exploit Security

Entity Validation - Continuous existence checks
Attachment Monitoring - Detects loose or detached vehicles
Distance Verification - Prevents teleport exploits
Cooldown System - Per-player operation limits (1000ms default)
Max Vehicle Limits - Per-player concurrent load caps

Multiplayer Synchronization

Network Syncing - All loads/unloads sync to all clients
Server-Side Validation - Critical checks run on server
Anti-Cheat Logging - Discord webhook integration ready
Cleanup Systems - Automatic stale data removal
Player Disconnect Handling** - Clean vehicle unload on exit

Performance Optimization

Efficient Threading - Minimal CPU usage with smart sleep timers
Distance-Based Rendering - Only draw nearby elements
Entity Pooling - Optimized vehicle detection
Configurable Update Rates - Balance smoothness vs. performance
Debug Mode - FPS and entity count monitoring

:clipboard: Requirements

FiveM Server - Latest artifact recommended
oxmysql (optional) - For persistent data (future)
ox_lib (optional) - For enhanced UI (future)
No Dependencies Required - Fully standalone by default

:rocket: Easy Installation

  1. Extract the resource to your resources folder
  2. Configure vehicle settings in config.lua
  3. Add ensure kray_flatloader to server.cfg
  4. Restart your server
  5. Drive a flatbed and start loading!

Setup Time: ~5 minutes
Configuration Difficulty: Easy (guided comments)

:open_book: Documentation

Included Files

config.lua - 400+ lines of detailed configuration
client.lua - Full feature implementation
server.lua - Multiplayer sync and anti-cheat
Examples - 10+ custom vehicle configs

Configuration Guide

Every setting includes:
:pencil2: Clear description
:1234: Default value with reasoning
:memo: Usage examples
:warning: Performance impact notes
:bulb: Customization tips

:gem: Why Choose This Script?

:white_check_mark: Most Advanced - Unmatched feature set in any flatbed script
:white_check_mark: Fully Customizable - 100+ configuration options
:white_check_mark: Performance Optimized - Minimal impact on server resources
:white_check_mark: Professional Code - Clean, documented, maintainable
:white_check_mark: Regular Updates - Active development and improvements
:white_check_mark: No Dependencies - Works standalone out of the box
:white_check_mark: Easy to Use - Intuitive for players, simple for admins
:white_check_mark: Support Ready - Discord community assistance

:dart: Perfect For

Roleplay servers needing realistic towing mechanics
Mechanic and towing company operations
Police departments handling impounds and recoveries
Servers with custom vehicle collections
Communities requiring anti-exploit protection
Admins who value extensive customization options

Supported Frameworks: Standalone
Support: Discord community included
Updates: Regular feature additions and improvements

|------------------------------------|----------------------------|
| Code is accessible | No |
| Subscription-based | No |
| Lines ~1000 | Number of lines |
| Requirements | None |

Support Yes
3 Likes

With over 60+ downloads within the past 24hrs of getting this post published, I decided to throw out an update and fix the unloading system for a more smoother transition. Hopefully this makes your FiveM immersion more efficient! Thank you all for the love and for over 60+ downloads in 24hrs I can’t believe that… You are all amazing and remember if you need anything at all or would like to report a bug, we would love to hear your feedback! Remember to join our Discord too!

2 Likes

youve escrowed a free product?