Trucker Job
Recurso:Resource: lt-trucker (v1.0.0).
Idiomas: inglés, español y francés. Sigue el idioma de tu base (ox:locale, qb_locale o esx:locale); cualquier otro sale en inglés. Para forzar uno, usa Config.Locale.Languages: English, Spanish and French. It follows your base locale (ox:locale, qb_locale or esx:locale); anything else shows in English. To force one, use Config.Locale.
RequisitosRequirements
| TipoType | RecursosResources |
|---|---|
| ObligatoriosRequired | ox_lib, oxmysql |
| Framework | qs-core, qbx_core, qb-core oor es_extended (se detecta solo, en ese orden)(auto-detected, in that order) |
| InventarioInventory | No hace falta: el trabajo no da ni quita items.Not needed: the job gives and takes no items. |
Compatibilidad opcionalOptional compatibility
Se detecta si está arrancado. No hay que instalar nada.Detected when running. Nothing has to be installed.
| FunciónFeature | Compatible conSupported | AjusteSetting |
|---|---|---|
| InteracciónInteraction | ox_target, qb-target | Config.Interaction |
| Aviso de teclaKey prompt | qs-textui, ox_lib | Config.TextUI |
| Aviso del pago en el móvilPhone pay notice | qs-smartphone, lb-phone | Config.PayNotice |
| Historial del bancoBank history | qs-banking | Config.BankHistory |
| Llaves del vehículoVehicle keys | qs-corevehiclekeys, qbx_vehiclekeys, qb-vehiclekeys | AutomáticoAutomatic |
InstalaciónInstallation
- Descarga el script desde Keymaster → Granted Assets con la cuenta de Cfx.re que compró.Download the script from Keymaster → Granted Assets with the Cfx.re account that bought it.
- Copia la carpeta
lt-truckerenresources/sin cambiar el nombre (si usas FTP, en modo binario).Copy thelt-truckerfolder intoresources/without renaming it (if using FTP, binary mode). - Añade al
server.cfg, después deox_lib,oxmysqly tu framework (abajo tienes el bloque de cada uno):Add toserver.cfg, afterox_lib,oxmysqland your framework (each framework's block is below):
ensure ox_lib ensure oxmysql ensure qs-core # qbx_core, qb-core o/or es_extended ensure lt-trucker
Reinicia el servidor. Las tablas y un trabajo de ejemplo se crean solos: no hay SQL que importar. El framework se detecta solo; para forzarlo, pon Config.Framework a 'qs', 'qbx', 'qb' o 'esx'.
Restart the server. Tables and a sample job are created automatically: there is no SQL to import. The framework is auto-detected; to force one, set Config.Framework to 'qs', 'qbx', 'qb' or 'esx'.
Según tu frameworkFramework setup
| Framework | Quién usa el creadorWho can use the creator | LlavesVehicle keys |
|---|---|---|
Quasar (qs-core) | Permiso admin de qs-coreadmin permission of qs-core | qs-corevehiclekeys |
Qbox (qbx_core) | ACE admin | qbx_vehiclekeys |
QBCore (qb-core) | ACE admin | qb-vehiclekeys |
ESX (es_extended) | Grupo admin o superadminadmin or superadmin group | No incluidasNot included |
En cualquier framework, esta línea da el creador a otro grupo (o a group.admin si tus admins no pueden abrirlo):On any framework, this line gives the creator to another group (or to group.admin if your admins cannot open it):
add_ace group.mod lt_trucker.admin allow
Quasar (qs-core)
qs-core va primero en la detección, aunque es_extended o qb-core corran como capas de compatibilidad. Con qs-banking, el pago sale también en el historial del banco (Config.BankHistory).
qs-core comes first in detection, even if es_extended or qb-core run as compatibility layers on top of it. With qs-banking, the pay also shows in the bank history (Config.BankHistory).
Qbox
⚠ Lista negra de vehículos. Qbox trae una lista en qbx_smallresources/qbx_entitiesblacklist/config.lua que incluye mule. Un camión de la lista aparece y desaparece al momento, la ruta termina y la consola muestra vehicle_lost. El camión por defecto es benson, que no está en la lista. Si tu trabajo usa mule:
⚠ Vehicle blacklist. Qbox ships with a list in qbx_smallresources/qbx_entitiesblacklist/config.lua that includes mule. A blacklisted truck spawns and vanishes at once, the route ends and the console prints vehicle_lost. The default truck is benson, which is not on the list. If your job uses mule:
- Recomendado: en Ajustes, cambia el modelo a
benson,pounderoboxvilley vuelve a pulsar Calibrar bodega.Recommended: in Settings, change the model tobenson,pounderorboxvilleand press Calibrate bay again. - Mantener el mule: borra la línea
[`MULE`] = true,de ese archivo y reiniciaqbx_smallresources. Afecta a todo el servidor.Keep the mule: remove the[`MULE`] = true,line from that file and restartqbx_smallresources. This applies to your whole server.
Pasa lo mismo con cualquier otro modelo que escribas en el creador: revisa antes esa lista.The same applies to any other model you type in the creator: check that list first.
ESX
No hay integración de llaves para ESX. El camión aparece abierto y sin necesidad de puentearlo, así que funciona sin llaves. Si tu script de llaves lo bloquea, añade su llamada en ClientBridge.giveKeys de bridge/client.lua.
There is no vehicle key integration for ESX. The truck spawns unlocked and without hotwiring, so it works without keys. If your key script locks it, add its call to ClientBridge.giveKeys in bridge/client.lua.
Primeros pasos en el juegoFirst setup in game
- Escribe
/truckercreatory abre la pestaña Ajustes.Run/truckercreatorand open the Settings tab. - Coloca el NPC, la zona de retorno y el aparcamiento del camión.Place the NPC, the return zone and the truck spawn.
- Pulsa Calibrar bodega para tu camión. Así se alinean las cajas y las etiquetas.Press Calibrate bay for your truck. This lines up the boxes and the labels.
- En la pestaña Rutas, revisa las rutas de ejemplo o crea las tuyas.In the Routes tab, check the sample routes or create your own.
El NPC y su blip solo aparecen cuando el trabajo se ha guardado en el creador y no falta nada. Hasta entonces, el trabajo de ejemplo queda oculto. La pestaña Rutas muestra lo que falta.
The NPC and its blip only appear once the job has been saved in the creator and nothing is missing. Until then, the sample job stays hidden. The Routes tab lists what is left.
Cómo funciona el trabajoHow the job works
- Habla con el NPC y elige una ruta desbloqueada. Aparece el camión.Talk to the NPC and pick an unlocked route. The truck spawns.
- Sube al camión y sigue la ruta hasta el punto de recogida. Las cajas aparecen al llegar.Get in the truck and follow the route to the pick-up point. The boxes appear when you arrive.
- Si el trabajo tiene punto de etiquetas, recógelas ahí con E. Luego pulsa E en una caja, arrastra la etiqueta correcta sobre ella y ya se puede coger.If the job has a label point, take the labels there with E. Then press E on a box, drag the right label onto it, and the box can be picked up.
- Coge una caja del suelo con E, llévala a la parte trasera del camión y pulsa E. La caja se desliza a su sitio.Pick a box from the floor with E, carry it to the back of the truck and press E. The box slides into place.
- Conduce hasta la parada y pulsa E en la parte trasera para abrir la vista de la carga.Drive to the stop and press E at the rear to open the cargo view.
- Haz doble clic en una etiqueta verde. La caja se desliza hasta las puertas y a tus manos.Double click a green label. The box slides to the doors and into your hands.
- Llévala al marcador y pulsa E.Carry it to the marker and press E.
- Tras la última caja de la parada, firma el albarán con el ratón. Se abre la siguiente parada.After the last box of the stop, sign the bill of lading with the mouse. The next stop opens.
- Vuelve a la zona de retorno y pulsa E dentro del camión. El pago va al banco y se suma la XP.Drive back to the return zone and press E inside the truck. The pay goes to the bank and the XP is added.
Las cajas se cargan en orden fijo: la última parada entra primero, así que la primera queda junto a las puertas. La primera vez, una guía acompaña al jugador, con Continuar y Saltar (Config.Tutorial).
Boxes load in a fixed order: the last stop goes in first, so the first stop ends up next to the doors. The first time, a guide walks the player through it, with Continue and Skip (Config.Tutorial).
GruposGroups
Hasta 2 jugadores. El líder invita a un jugador cercano desde el panel del NPC y empieza la ruta. Los dos cargan, descargan y entregan a la vez, y cualquiera puede firmar y devolver el camión. Si el líder cancela, la ruta termina para los dos. Si el otro se va o se desconecta, la ruta sigue y la caja que llevaba vuelve a su sitio.
Up to 2 players. The leader invites a nearby player from the NPC panel and starts the route. Both load, unload and deliver at the same time, and either can sign and return the truck. If the leader cancels, the route ends for both. If the other player leaves or disconnects, the route goes on and any box they were carrying goes back.
El creadorThe creator
Hay un trabajo con un NPC y tantas rutas como necesites.There is one job with one NPC, and as many routes as you need.
| PestañaTab | Qué configurasWhat you set up |
|---|---|
| RutasRoutes | Nombre, props de caja, carga, nivel, XP, pago base, tiempo límite y cooldown. Las paradas de entrega y los puntos de carga se colocan en el mundo.Name, box props, load, level, XP, base pay, time limit and cooldown. Delivery stops and cargo locations are placed in the world. |
| AjustesSettings | Nombre del trabajo, NPC, zona de retorno, punto de etiquetas, quién puede trabajar, el camión, lo que paga cada prop, el porcentaje del vehículo, el blip y los colores de los menús.Job name, NPC, return zone, label point, who can work, the truck, what each prop pays, the vehicle percentage, the blip and the menu colours. |
| GuíaGuide | Los pasos de todo esto, en secciones desplegables.The steps of all this, in sections that open and close. |
- Las cajas se reparten a partes iguales entre las paradas, salvo que indiques cuántas descarga cada una. La suma tiene que dar el total.Boxes split evenly across the stops, unless you set how many each one unloads. The stops have to add up to the total.
- Una parada con 2 cajas o más tiene un radio mayor (
Config.Delivery.multiRadius).A stop with 2 boxes or more gets a bigger radius (Config.Delivery.multiRadius). - Al colocar un punto de carga, H cambia entre los props de la ruta; ese punto muestra primero ese prop.While placing a cargo location, H changes between the route's props; that point shows that prop first.
- Un cambio de cooldown se aplica al momento: nadie espera más de lo que la ruta pide ahora.A cooldown change applies at once: nobody waits longer than the route now asks for.
- Un camión tiene sitio para 6 cajas estándar (
Config.Limits.maxBoxes). Cada modelo ocupa suspaceenConfig.BoxModels: caben 12 cajas pequeñas o 3 cajas grandes de madera.A truck has room for 6 standard boxes (Config.Limits.maxBoxes). Each model takes itsspaceinConfig.BoxModels: 12 small boxes fit, or 3 large wooden crates.
Camiones ofrecidos: mule, benson, pounder, boxville y hauler con remolques trailers, trailers2 y trailers3 (Config.Trucks, Config.Trailers). En el creador puedes escribir cualquier otro modelo, incluidos los addon.
Trucks offered: mule, benson, pounder, boxville and hauler with trailers, trailers2 and trailers3 (Config.Trucks, Config.Trailers). You can type any other model in the creator, addons included.
Calibrar bodegaCalibrate bay
Cada vehículo de GTA tiene un interior distinto y los addon el suyo, así que los valores de Config.Bays son solo estimaciones. Calibrar bodega crea una copia local del vehículo con la cámara real de la vista de la carga y dibuja la bodega y cada hueco de caja.
GTA vehicles have very different interiors and addons have their own, so the values in Config.Bays are only estimates. Calibrate bay spawns a local copy of the vehicle with the real camera of the cargo view, and draws the bay and every box place.
| TeclaKey | AcciónAction |
|---|---|
| G | Cambiar lo que ajustas: cámara, suelo y tamaño, longitudChange what you adjust: camera, floor and size, length |
| FLECHAS, RE PÁG, AV PÁGARROWS, PG UP, PG DN | MoverMove |
| RUEDA, ALT + RUEDAWHEEL, ALT + WHEEL | Inclinar y zoomTilt and zoom |
| ENTER / ESC | Guardar / cancelarSave / cancel |
Deja la cámara detrás de las puertas pero por debajo del techo. Para un vehículo sin interior, Config.Cargo.shell.enabled = true pinta paredes sobre la vista. Todas las teclas se cambian en Config.Keys.
Keep the camera behind the doors but under the roof. For a vehicle with no interior, Config.Cargo.shell.enabled = true paints walls over the view. All keys can be changed in Config.Keys.
Pago y nivelesPay and levels
- Pago =
payBase+ lo que paga cada caja entregada, más unConfig.LevelPayBonus% por cada nivel por encima de 1, por el porcentaje del vehículo. Por defecto, las cajas grandes pagan más y el vehículo paga el 60 %.Pay =payBase+ what each delivered box pays, plusConfig.LevelPayBonus% per level above 1, times the vehicle percentage. By default bigger boxes pay more, and the vehicle pays 60 %. - XP =
xpPerDeliverypor caja entregada, másxpBonuspor entregarlo todo.XP =xpPerDeliveryper delivered box, plusxpBonusfor delivering everything. - Niveles: siguen la curva de
Config.Levels(hasta 50 por defecto).Levels follow the curve inConfig.Levels(up to 50 by default). - Grupos: por defecto el pago se reparte y cada jugador recibe la XP completa (
Config.Group.payMode).Groups: by default the pay is split and each player gets the full XP (Config.Group.payMode).
El pago va directo al banco, con aviso en qs-smartphone o lb-phone; sin móvil, el aviso sale en pantalla.
The pay goes straight to the bank, with a notice on qs-smartphone or lb-phone; without a phone, the notice shows on screen.
ComandosCommands
| ComandoCommand | QuiénWho | Qué haceWhat it does |
|---|---|---|
/truckercreator | AdminsAdmins | Abre el creadorOpens the creator |
/canceltruck | JugadoresPlayers | Abandona la ruta. No paga nadaAbandons the route. It pays nothing |
Los dos nombres se cambian enBoth names can be changed in Config.Command yand Config.CancelCommand.
Sin target, se interactúa con la tecla E. Cada jugador puede cambiarla en Ajustes → Asignación de teclas → FiveM.
Without a target, players interact with the E key. Each player can rebind it in Settings → Key Bindings → FiveM.
Configuración principalMain configuration
config.lua está comentado por secciones. Haz restart lt-trucker después de editarlo. Lo que se guarda en el creador va a la base de datos y tiene prioridad sobre ese archivo.
config.lua is commented section by section. Run restart lt-trucker after editing it. What is saved in the creator goes to the database and overrides that file.
| Para cambiarTo change | DóndeWhere |
|---|---|
| IdiomaLanguage | Config.Locale: 'auto', 'en', 'es' oor 'fr' |
| InteracciónInteraction | Config.Interaction: 'auto' (target si está arrancado, si no la tecla)(target if running, otherwise the key), 'ox_target', 'qb-target' oor 'key' |
| Ir primero al punto de recogidaDrive to the pick-up point first | Config.Job.driveToCargo, Config.Delivery.cargoRange |
| Colores de los menúsMenu colours | Pestaña Ajustes, o Config.Theme para el valor inicialSettings tab, or Config.Theme for the first value |
| Modelos de cajas y camionesBox and truck models offered | Config.BoxModels, Config.Trucks |
| Espacio de un camiónSpace of a truck | Config.Limits.maxBoxes |
| Altura de las cajas en el camiónHeight of the boxes in the truck | Se calcula sola con Config.Cargo.floorSnap. Si falla: calibra la bodega, o usa Config.Cargo.floorLift y Config.Bays.<modelo>.floorZFound automatically with Config.Cargo.floorSnap. If it fails: calibrate the bay, or use Config.Cargo.floorLift and Config.Bays.<model>.floorZ |
| Velocidad de deslizamientoBox slide speed | Config.Cargo.slideMs |
| Barras de progreso y animacionesProgress bars and animations | Config.Progress |
| Distancia para aparcar en la paradaHow close the truck must park | Config.Delivery.parkRange |
| Reglas de la firma y datos del albaránSignature rules and document values | Config.Signature |
| Reparto del pago en grupoPay split in groups | Config.Group.payMode |
| Zoom y animación de las etiquetasZoom and animation of the labels | Config.Labels, Config.Progress |
| Líneas de GPS de los blipsGPS lines of the blips | route enin Config.Npc.blip, Config.Vehicle yand Config.Delivery |
| Guía de la primera rutaFirst route guide | Config.Tutorial. Cada jugador la ve una vez y cada tarjeta se cierra sola a los 30 segundosConfig.Tutorial. Each player sees it once, and a card goes away on its own after 30 seconds |
| Cooldown de las rutas nuevasCooldown of new routes | Config.RouteDefaults.cooldownMinutes (0 por defecto)Config.RouteDefaults.cooldownMinutes (0 by default) |
Los textos están en locales/, no en config.lua. Para usar otros recursos (otro banco, móvil o llaves), adapta los archivos de bridge/.
Visible text lives in locales/, not in config.lua. To use other resources (another bank, phone or keys), adapt the files in bridge/.
SeguridadSecurity
El servidor controla todo el estado de la ruta: comprueba distancias, tiempos, orden de paradas, propiedad de las cajas y velocidad entre paradas, calcula el pago y la XP con los datos guardados y limita las peticiones por jugador. Cada petición del creador vuelve a comprobar el permiso.
The server owns all route state: it checks distances, times, stop order, box ownership and speed between stops, works out pay and XP from stored data, and limits requests per player. Every creator request checks the permission again.
Problemas comunesTroubleshooting
/truckercreator dice que no tienes permisosays no permission
Mira quién puede usarlo en Según tu framework. Añade add_ace group.admin lt_trucker.admin allow (con guion bajo), reinicia y comprueba que tu usuario está en ese grupo.See who can use it in Framework setup. Add add_ace group.admin lt_trucker.admin allow (with underscore), restart, and check your user is in that group.
No aparece el NPC o el blipThe NPC or blip does not appear
Guarda el trabajo en el creador. Si sigue sin aparecer, falta algo: la pestaña Rutas lo indica.Save the job in the creator. If it still does not appear, something is missing: the Routes tab lists it.
"El sitio del camión está ocupado""The truck spot is occupied"
Hay algo aparcado en el punto de aparición.Something is parked on the spawn point.
El camión aparece y desaparece, y la consola diceThe truck spawns and vanishes, and the console says vehicle_lost
Otro script borra ese modelo. En Qbox, mira la lista negra de vehículos.Another script deletes that model. On Qbox, see the vehicle blacklist.
Las etiquetas no coinciden con las cajasLabels do not line up with the boxes
Calibra la bodega.Calibrate the bay.
Las cajas se hunden en el suelo o flotanBoxes sink into the floor or float
Calibra la bodega, o cambia Config.Cargo.floorLift.Calibrate the bay, or change Config.Cargo.floorLift.
La vista muestra el exterior del camiónThe view shows the outside of the truck
Baja la cámara para que quede por debajo del techo, o pon Config.Cargo.shell.enabled = true.Lower the camera so it stays under the roof, or set Config.Cargo.shell.enabled = true.
No llega el aviso al móvilNo phone notice
Comprueba que qs-smartphone o lb-phone está arrancado antes de terminar la ruta. Sin móvil, el aviso sale en pantalla.Check qs-smartphone or lb-phone is started before the route ends. Without one, the notice shows on screen.
No sale el targetTarget does not show
Usa Config.Interaction = 'auto' y arranca ox_target o qb-target antes que lt-trucker.Use Config.Interaction = 'auto' and start ox_target or qb-target before lt-trucker.
Errores de Escrow (entitlement, verify, parsing)Escrow errors (entitlement, verify, parsing)
Mira la FAQ general.See the general FAQ.
SoporteSupport
¿No lo resuelves? Abre un ticket en nuestro Discord con la versión del script, tu framework y el error completo de la consola.
Still stuck? Open a ticket on our Discord with the script version, your framework and the full console error.