Electrician Job
Recurso:Resource: lt-electrician (v1.0.0).
Idiomas: inglés (predeterminado), español y francés. Se elige en Config.Locale.Languages: English (default), Spanish and French. Chosen in Config.Locale.
RequisitosRequirements
| TipoType | RecursosResources |
|---|---|
| ObligatoriosRequired | ox_lib, oxmysql |
| Framework | qs-core, qb-core oor es_extended (se detecta solo)(auto-detected) |
| InventarioInventory | qs-coreinventory, qs-inventory, ox_inventory o el del framework (se detecta solo)or the framework's own (auto-detected) |
| OpcionalesOptional | ox_target / qb-target, qs-textui, qs-smartphone / lb-phone, qs-banking, qs-corevehiclekeys / qb-vehiclekeys |
No hace falta crear items.No items need to be created.
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-electricianenresources/sin cambiar el nombre (si usas FTP, en modo binario).Copy thelt-electricianfolder intoresources/without renaming it (if using FTP, binary mode). - Añade al
server.cfg, después del framework y el inventario:Add toserver.cfg, after your framework and inventory:
ensure ox_lib ensure oxmysql ensure lt-electrician add_ace group.admin lt_electrician.admin allow
Reinicia el servidor. Las tablas, el NPC, el punto del vehículo y las 12 rutas iniciales se crean solos. En la consola verás una línea con el framework y el inventario detectados: compruébala.
Restart the server. Tables, the NPC, the vehicle spot and the 12 starter routes are created automatically. The console prints a line with the detected framework and inventory: check it.
Quién puede trabajarWho can work
Por defecto, cualquier jugador puede hacer las rutas. Para exigir un trabajo, ve a /electricianadmin, pestaña Configuración. Cada ruta puede además pedir su propio trabajo y grado.
By default, any player can run routes. To require a job, go to /electricianadmin, Configuración (Settings) tab. Each route can also require its own job and grade.
Si se exige, el trabajo electrician (Aprendiz, Oficial y Jefe de obra) se crea solo en QS Core, QBCore y ESX. Se define en Config.Job; para desactivar la creación automática, usa autoRegister = false.
When required, the electrician job (Aprendiz, Oficial and Jefe de obra grades) is created automatically on QS Core, QBCore and ESX. It is defined in Config.Job; to turn off automatic creation, use autoRegister = false.
Crear o editar una rutaCreate or edit a route
- Con el permiso
lt_electrician.admin, escribe/electricianadmin.With thelt_electrician.adminpermission, type/electricianadmin. - En Configuración puedes recolocar el NPC, los puntos de entrega y devolución del vehículo, y cambiar los colores de los menús.In Configuración (Settings) you can move the NPC and the vehicle delivery and return points, and change the menu colours.
- En Rutas, edita una ruta existente o crea una nueva: nombre, pago, tiempos, requisitos, vehículo y blip.In Rutas (Routes), edit an existing route or create a new one: name, payment, times, requirements, vehicle and blip.
- Coloca las averías en el modo edición con las teclas de abajo y guarda.Place the faults in edit mode using the keys below, then save.
Teclas del modo ediciónEdit mode keys
| TeclaKey | AcciónAction |
|---|---|
| CLIC IZQ.LEFT CLICK | Colocar la averíaPlace the fault |
| ENTER | Terminar y volverFinish and go back |
| ESC | Cancelar (pulsa otra vez para descartar los puntos nuevos)Cancel (press again to discard new points) |
| BACKSPACE | Deshacer el último puntoUndo the last point |
| G | Cambiar minijuegoChange minigame |
| H | Cambiar modeloChange model |
| RUEDAWHEEL | RotarRotate |
| ALT + RUEDAALT + WHEEL | Cambiar el radioChange the radius |
| FLECHASARROWS | Ajustar la posiciónAdjust the position |
Todas se cambian enAll of them can be changed in Config.Keys.
MinijuegosMinigames
| MinijuegoMinigame | Cómo funcionaHow it works |
|---|---|
CablesWires (wires) | Cuadro en 3D: abre, afloja los tornillos, mueve cada cable a su borne y aprieta. Con un cable suelto hay descarga, que nunca llega a matar.3D box: open it, loosen the screws, move each wire to its terminal and tighten. A loose wire causes a shock, which is never lethal. |
InterruptoresBreakers (breakers) | Memoriza el patrón del cuadro y repítelo a tiempo.Memorise the box pattern and repeat it in time. |
ReflejosSkill check (skill) | Prueba de reflejos de ox_lib.ox_lib skill check. |
Al azarRandom (random) | Sortea uno de los anteriores en cada intento.Picks one of the above on each attempt. |
Tiempos y dificultad, enTimes and difficulty are in Config.Repair.minigames.
Cómo lo juegan los jugadoresHow players use it
- Hablan con el encargado (blip "Compañía eléctrica") y eligen ruta. Pueden invitar a jugadores cercanos, hasta 4.They talk to the manager ("Compañía eléctrica" blip) and pick a route. They can invite nearby players, up to 4.
- Se ponen el vestuario de trabajo y reciben el vehículo.They put on the work outfit and get the vehicle.
- En cada avería cogen la caja de herramientas del maletero, superan el minijuego y la devuelven.At each fault they take the toolbox from the trunk, pass the minigame and return it.
- Dejan el vehículo en el punto marcado y vuelven al encargado a cobrar. Ganan XP y recuperan su ropa.They park the vehicle at the marked point and return to the manager to get paid. They earn XP and get their clothes back.
ComandosCommands
| ComandoCommand | QuiénWho | Qué haceWhat it does |
|---|---|---|
/electricianadmin | Admin (ACE) | Abre el editorOpens the editor |
/electricianadmin_box | Admin (ACE) | Ajusta la posición de la caja de herramientas en la manoAdjusts the toolbox position in hand |
/cancelelectrician | JugadorPlayer | El líder cancela la ruta; el resto sale de ellaThe leader cancels the route; other members leave it |
La tecla E sirve para interactuar sin target. Cada jugador puede cambiarla en Ajustes → Asignación de teclas → FiveM.
The E key interacts when no target is used. Each player can rebind it in Settings → Key Bindings → FiveM.
Configuración principalMain configuration
Todo está comentado en config.lua. Lo más habitual:Everything is commented in config.lua. The most common options:
| OpciónOption | Para quéPurpose |
|---|---|
Config.Framework / Config.Inventory | 'auto' o forzar uno concreto'auto' or force a specific one |
Config.Defaults | Valores con los que nace cada ruta nuevaDefault values for each new route |
Config.Levels | XP por nivel y nivel máximoXP per level and max level |
Config.Group | Tamaño del grupo y si el pago se reparteGroup size and whether pay is split |
Config.Outfit | Ropa de trabajo (solo personajes multijugador)Work outfit (multiplayer characters only) |
Config.Vehicles / Config.Vehicle | Vehículos disponibles y matrículaAvailable vehicles and plate |
Config.Repair | Minijuegos, cámara y descargaMinigames, camera and shock |
Config.Toolbox | Caja de herramientasToolbox |
Config.Interaction | 'auto', 'ox', 'qb' oor 'key' |
Config.PayNotice | Aviso de cobro en el móvilPhone payment notice |
Config.Seed / Config.SeedRoutes | Datos y rutas iniciales. Lo que borres en el editor no vuelve, salvo que subas routesVersion.Starter data and routes. What you delete in the editor doesn't come back unless you raise routesVersion. |
Los textos están en locales/. Para usar otros recursos (otro móvil, banco o inventario), adapta los archivos de bridge/.
Texts live in locales/. To use other resources (another phone, bank or inventory), adapt the files in bridge/.
Problemas comunesTroubleshooting
No se abre el editor conThe editor doesn't open with /electricianadmin
Falta el permiso. Comprueba el add_ace del server.cfg y que tu usuario pertenece a ese grupo.Missing permission. Check the add_ace line in server.cfg and that your user belongs to that group.
La consola dice "Framework: ninguno" o "Inventario: ninguno"The console says "Framework: ninguno" or "Inventario: ninguno"
Arranca el framework y el inventario antes que el script, o fíjalos en Config.Framework y Config.Inventory.Start your framework and inventory before the script, or set them in Config.Framework and Config.Inventory.
"No se pudo registrar el trabajo electrician"
Arranca el framework antes que el script, o crea el trabajo a mano y usa autoRegister = false.("Could not register the electrician job") Start your framework before the script, or create the job manually and use autoRegister = false.
Borré una ruta inicial y quiero recuperarlaI deleted a starter route and want it back
Sube routesVersion en Config.Seed y reinicia. Las rutas que ya existen con ese nombre no se tocan.Raise routesVersion in Config.Seed and restart. Routes that already exist under that name are left untouched.
El vestuario no se aplicaThe outfit isn't applied
Solo funciona con los personajes de multijugador (mp_m_freemode_01 y mp_f_freemode_01). Comprueba también Config.Outfit.enabled.It only works with multiplayer characters (mp_m_freemode_01 and mp_f_freemode_01). Also check Config.Outfit.enabled.
La caja de herramientas se ve mal en la manoThe toolbox looks wrong in hand
Ajústala en el juego con /electricianadmin_box.Adjust it in-game with /electricianadmin_box.
Errores de Escrow (entitlement, verify, parsing)Escrow errors (entitlement, verify, parsing)
Mira la FAQ general.See the general FAQ.
Créditos de modelos 3D3D model credits
- Small Fuse Box — big guy — CC BY 4.0
- Electric Distribution Box — Avadhoot — CC BY-SA 4.0
Adaptados para los minijuegos: puerta animada y palancas, LED, bornes, tornillos y cables añadidos.Adapted for the minigames: animated door and added levers, LEDs, terminals, screws and wires.
SoporteSupport
¿No lo resuelves? Abre un ticket en nuestro Discord con la versión del script, tu framework e inventario y el error completo de la consola.
Still stuck? Open a ticket on our Discord with the script version, your framework and inventory, and the full console error.