[ESX] [PAID] Advanced Trailer Robbery

[ESX] [PAID] Advanced Trailer Robbery

Bring new criminal roleplay opportunities to your ESX server with this Advanced Trailer Robbery script. This resource allows players to rob static truck trailers across the map, featuring a robust and configurable system designed for performance and immersion.

This script is not just another robbery – it’s a fully-featured system with a focus on balanced gameplay, customization, and seamless integration with modern frameworks.


Features

  • Dynamic Object Detection: The script automatically finds all matching trailers on the map. No need to manually enter any coordinates. The system is highly optimized to run at just ~0.03ms when idle.
  • Police Requirement: You can configure a minimum number of on-duty police officers required to start a robbery, ensuring fair and engaging roleplay.
  • Item & Time Configuration: Define which item is needed to start the break-in and how long the process should take.
  • Randomized Loot: A detailed loot table in the config.lua allows you to configure which items can be found, including their amounts and the percentage-based chance of them spawning.
  • Multi-Language Support: All player-facing texts can be easily translated. The config includes translations for German, English, French, Italian, Spanish, Dutch, and Polish by default.
  • Secure Stash System: Utilizes ox_inventory’s server-side stash system to securely generate and manage the loot for each individual trailer.
  • ESX Native Integration: Built from the ground up for ESX, using its native functions and callbacks for maximum stability and compatibility.

Advanced Customization

We know that every server is unique. That’s why this script is built to let you easily swap out key systems:

  • Notification System: Adapt the notifications to your own system. In the client/cl_utils.lua file, you can integrate your preferred system (e.g., pnotify, okokNotify, esx_notify) with just one line of code.
  • Police Dispatch System: The police alert is also fully customizable. In the server/sv_utils.lua file, you can edit the alertPolice event to connect it with your dispatch system (ps-dispatch, cd_dispatch, Discord webhooks, etc.).

Purchase on Tebex

Tebex

Code is accessible only Config and Utils-Files (client/cl_utils.lua & server/sv_utils.lua)
Subscription-based No
Lines (approximately) 250+
Requirements & dependencies ESX, ox_lib, ox_inventory
Support Yes (Discord)

:rocket: Update v1.2.0 - Sound System, Performance Boost & More!

Hello everyone,

Thank you for the great feedback and support! Based on your suggestions, I have released a major update for the Advanced Trailer Robbery script, which brings some of the most requested features and significant improvements under the hood.


:star: Key Changes

1. Completely New Sound System

The default alarm has been replaced by a fully customizable system based on xsound.

  • Custom Sound Files: You can now use your own custom alarm sound file (e.g., in .ogg format).
  • Synchronized Loop: The alarm now plays on a loop as long as the robbery is in progress and stops as soon as it is completed or canceled.
  • Audible for All Players: The sound is synchronized for all nearby players, massively increasing the immersion for everyone involved (including approaching police).

2. Massive Performance Optimization

The client-side performance has been drastically improved!

  • By implementing a two-loop pattern, the script’s CPU usage at idle has been reduced from ~0.19ms to an outstanding ~0.03ms. The script is now even more resource-friendly without sacrificing responsiveness.

Further Improvements & Adjustments

  • Multi-Language Support: The config.lua now includes a translation table to easily translate all player-facing messages into multiple languages.
  • Native ESX Callbacks: The police count check now runs via a native ESX callback, which removes the dependency on ox_lib for this function and improves compatibility.
  • Simplified Customization: The notification and police dispatch systems have been moved into their own utils files (cl_utils.lua & sv_utils.lua) to make it even easier to adapt them to your own systems.

The update is now available for all existing and new customers on my Tebex store.

Enjoy the new features!

  • TitanEcho