# TB Trailers
TB Trailers is a FiveM resource for loading vehicles onto supported trailers, attaching and detaching them on demand, and operating trailer ramps.
## Features
- Supports trailer models configured in `config.lua`.
- Press **H** while in a vehicle to attach it when it is positioned within a supported trailer's deck bounds. Press **H** again to detach it.
- Toggle configured trailer ramps at their in-world markers using the horn control.
- Show loading, ramp, and detach interaction markers.
## Installation
1. Copy the `tb_trailers` folder into your FiveM server's `resources` directory.
2. Add this to `server.cfg`:
```cfg
ensure tb_trailers
```
3. Restart the server or start the resource with `ensure tb_trailers`.
Basic trailer operation does not require ESX.
## Using the controls
1. Drive a supported vehicle onto the trailer deck and stop it within the configured deck bounds.
2. Press **H** to attach the vehicle. H is registered as a FiveM key mapping and can be changed in the player's FiveM key bindings.
4. Press **H** again to detach it. Unlock it first if it is locked.
5. To operate a ramp, go to its marker and use the horn control.