[免费][ESX, QBCore, QBox] JW_electrician – 电工职业,包含四种小游戏、20个等级,并在地图上设有真实道具

每个服务器都有合法的工作岗位,但几乎没人玩,因为它们都
一样:开车到标记点,按住E键,看进度条,然后领钱。我想一个
平民工作,让工作本身成为游戏,所以这个资源里写了四个从零开始编写的
小游戏。没有ox_lib技能检查,没有ps-ui,
不需要额外安装任何东西。

它只在Lua层面托管。配置、本地化和整个UI(纯
html/css/js)保持开放,所以你可以根据你的服务器进行调整,如果你
想的话,还可以重新设计它。


预览

Youtube 视频



如何运行一个班次

你在仓库打卡,押金租一辆工作面包车,然后从
派送系统提供的三个工作订单中选择一个。每个订单都标明了工作类型、
社区以及大致的报酬。

然后你开车出去,自己寻找故障。脚本不会为你放置
一个道具:它会在游戏世界中搜索该区域内一个真实的路灯、十字路口
箱、交通信号灯或变压器,并标记找到的那个。
这意味着不需要MLO,不需要地图文件,它可以在你指向的任何地方工作。如果一个
区域确实没有任何合适的东西,派送系统会称其为误报,并将故障移到别处,所以你永远不会卡住。

当你到达那里时,锥桶会放下,你的角色会跪在箱子前,然后实际
工作开始。

小游戏

  • 保险丝——在计时器上,将保险丝按匹配的安培额定值插入插槽。错放插槽、错放保险丝都会对你不利。
  • 接线——通过电阻切割电线,从最低的先开始。没有专业
    万用表,你只能看到范围,所以你必须判断重叠。一根错
    的电线会电击你。
  • 电压——一根指针在仪表盘上漂移,你用空格键把它保持在绿色区域
    。让它碰到红色,它就会电击你,一次又一次。
  • 切换顺序——断路器按顺序亮起,你按相同的方式切换它们
    。每一轮都会更长。

工作类型将它们串联起来:一盏路灯只是保险丝,一个十字路口箱是接线
然后保险丝,一个变压器是电压、接线和保险丝依次排列。

带电或不带电

任何带电的设备在开始前都会问你一个问题:先切断
电源,这是安全的,但会损失你八秒钟,或者带电工作,获得15%
更多的报酬,并在你出错时接受电击。

雨天会让这个决定更糟。电击会更痛,但湿漉漉的班次会额外获得
奖金。(你可以将你自己的天气资源连接到配置函数中,以
匹配你服务器运行的设置。)

进度

20个等级,每个等级都会解锁一些你能感受到的东西:

等级 解锁
1 路灯,绝缘手套
5 十字路口箱,专业万用表
10 交通信号灯,专业保险丝套件
15 变电站,稀有且高薪
20 维护路线

一个维护路线是在同一个社区内的三个故障,一个接一个,作为一笔总额支付,并在结束时获得奖金。这是这项工作最接近一个真正班次的东西。

工具是普通物品。手套会减少电击伤害,专业万用表会显示
精确的电阻值而不是范围,专业保险丝套件会给你更多时间。
你只买一次,但它们可能会丢失、交易和重新购买,并且它们与你所在的等级无关——所以一个老兵可以把他的旧装备交给新手。

质量,而不仅仅是完成

每个错误都会被计算在内。干净完成你会得到完美奖金,搞砸太多它会支付一半。最后你会得到一个明细账单:基本工资、带电工作
奖金、天气奖金、路线奖金、干净工作奖金、连击奖金。没有神秘的
数字。

连击计算连续完成的工作而不搞砸,每次都会稍微多付一点。取消订单或打卡下班,它就会重置。

工作时

屏幕底部有一个信息框在整个班次中显示:等级和XP
条,当前订单,脚本现在需要你做什么(“你已在
区域内,沿着街道寻找”,“找到设备,过去”),以及本次工作的工作和金钱
。没有通知垃圾邮件在你看之前就滚动消失。

个人资料选项卡保存你的总数和两个服务器范围的排行榜,最多工作和最多经验。经验会在20级以上继续计算,所以排行榜
对老兵来说仍然有意义。

界面

菜单和小游戏遵循GTA Online菜单的外观:平面条、
压缩斜体大写字母、一种强调色,以及每个屏幕
下方的一个按键提示条,告诉你可以按什么键。不需要额外的字体或图像来安装。五种颜色在配置中是纯十六进制值。

配置

一个 config.lua,用英语编写,注释说明每个值的作用:仓库
和停车位,区域,工作类型及其道具和小游戏,等级曲线,
工资,奖金,小游戏难度,工具价格,光点,UI颜色作为纯十六进制值。

两个游戏内命令帮助你设置它: /eleccoords 打印你的位置作为一个
完成的坐标线, /elecprop 打印你周围道具的模型编号,以便你可以添加自己的工作类型。两者都是管理员专用的,并且可以完全关闭
。

平衡性故意留给你——我不想强迫我的数字在你的经济上。

其他细节

  • 通过 ox_target 或E键进行交互,自动检测
  • 五种语言包含在内:英语、德语、波兰语、葡萄牙(BR)和
    西班牙语,用一个配置值切换
  • 工作车辆在服务器端生成,所以实体锁定和反作弊不会
    与之冲突。包含你的密钥系统的钩子,如果玩家崩溃,押金会回来
  • 数据库表会自动创建和迁移,不需要导入SQL
  • 服务器权威——工资、XP、每个小游戏解决方案和工作状态
    都存储在服务器上
  • 当无人工作时,延迟为0.00 ms

下载

**免费 **https://www.jaxwscripts.store/

一次性购买,一个服务器,无订阅。此资源使用FiveM资产托管系统。

支持和错误报告: JaxWScripts


代码可访问 部分开放——配置、本地化和HTML UI是开放的,Lua是托管的
基于订阅 否
代码行数(约) ~3600
依赖要求 es_extended(或其他框架)、oxmysql、一个库存(推荐使用ox_inventory)、ox_target可选
支持 是
查看英文原文 (Original)

Every server has legal jobs and almost nobody plays them, because they’re all
the same: drive to a marker, hold E, watch a progress bar, get paid. I wanted a
civilian job where the work itself is the game, so this one has four minigames
written from scratch inside the resource. No ox_lib skillcheck, no ps-ui,
nothing to install alongside it.

It’s escrowed on the Lua side only. Config, locales and the whole UI (plain
html/css/js) stay open, so you can tune it for your server and restyle it if you
want to.


Preview

Youtube Video



How a shift runs

You clock in at the depot, rent a work van against a deposit and pick one of
three work orders dispatch offers you. Each order names the job type, the
neighbourhood and roughly what it pays.

Then you drive out and look for the fault yourself. The script doesn’t place
a prop for you: it searches the game world for a real street light, junction
box, traffic light or transformer inside the area and marks the one it found.
That means no MLO, no map files, and it works anywhere you point it at. If an
area genuinely has nothing suitable, dispatch calls it a false alarm and moves
the fault somewhere else, so you never get stuck.

When you get there, cones go down, your guy kneels at the box, and the actual
work starts.

The minigames

  • Fuses – sort the fuses into the slots with the matching amp rating, on a
    timer. Wrong slot, wrong fuse, and it counts against you.
  • Wiring – cut the wires by resistance, lowest first. Without a pro
    multimeter you only see ranges, so you have to judge overlaps. A wrong wire
    shocks you.
  • Voltage – a needle drifts around a gauge and you hold it in the green zone
    with the space bar. Let it hit the red and it zaps you, over and over.
  • Switching sequence – the breakers light up in an order and you switch them
    back the same way. Every round is one longer.

Job types chain them: a street light is just fuses, a junction box is wiring
then fuses, a transformer is voltage, wiring and fuses back to back.

Live or dead

Anything that carries voltage asks you one question before you start: cut the
power first, which is safe but costs you eight seconds, or work it live for 15%
more pay and take the shocks when you get it wrong.

Rain makes that decision worse. Shocks hurt more, but a wet shift pays a bonus
on top. (You hook your own weather resource into a config function for this, so
it matches whatever your server runs.)

Progression

20 levels, and each one unlocks something you can feel:

Level Unlocks
1 Street lights, insulated gloves
5 Junction boxes, pro multimeter
10 Traffic lights, pro fuse kit
15 Transformer stations, rare and well paid
20 Maintenance routes

A maintenance route is three faults in the same neighbourhood, one after
another, paid out as a single sum with a bonus at the end. It’s the closest
thing the job has to a proper shift.

The tools are normal items. Gloves cut shock damage, the pro multimeter shows
exact resistance values instead of ranges, the pro fuse kit buys you more time.
You buy them once, but they can be lost, traded and re-bought, and they work no
matter what level you are – so a veteran can hand their old gear to a rookie.

Quality, not just completion

Every mistake is counted. Finish clean and you get a perfect bonus, botch too
much and it pays half. At the end you get an itemised bill: base pay, live-work
bonus, weather bonus, route bonus, clean-work bonus, streak bonus. No mystery
numbers.

The streak counts jobs finished back to back without botching and pays a little
more each time. Cancel an order or clock out and it resets.

While you work

There’s an info box at the bottom of the screen the whole shift: level and XP
bar, the current order, what the script wants from you right now (“you are in
the area, look along the streets”, “unit found, head over”), plus jobs and money
for the session. No notification spam that scrolls away before you read it.

The profile tab keeps your totals and two server-wide leaderboards, most jobs
and most experience. Experience keeps counting past level 20, so the top list
stays meaningful for veterans.

Interface

The menus and minigames follow the look of the GTA Online menus: flat bars,
condensed italic caps, one accent colour, and a key hint bar under every screen
that tells you what you can press. No extra fonts or images to install. The five
colours are plain hex values in the config.

Configuration

One config.lua, in English, with comments that say what each value does: depot
and parking spots, areas, job types with their props and minigames, level curve,
pay, bonuses, minigame difficulty, tool prices, blips, UI colours as plain hex.

Two ingame commands help you set it up: /eleccoords prints your position as a
finished coordinate line, /elecprop prints the model numbers of props around
you so you can add your own job types. Both are admin only and can be switched
off entirely.

Balancing is deliberately left to you – I didn’t want to force my numbers on
your economy.

Other bits

  • Interaction through ox_target or the E key, detected automatically
  • Five languages included: English, German, Polish, Portuguese (BR) and
    Spanish, switched with one config value
  • Work vehicle spawns server-side, so entity lockdown and anticheats don’t
    fight it. Hook for your key system included, and the deposit comes back if a
    player crashes out
  • Database table creates and migrates itself, no SQL to import
  • Server authoritative – pay, XP, every minigame solution and the job state
    live on the server
  • 0.00 ms when nobody is working

Download

**Free **https://www.jaxwscripts.store/

One purchase, one server, no subscription. This resource uses the FiveM Asset
Escrow System.

Support and bug reports: JaxWScripts


Code is accessible Partly – config, locales and the html UI are open, the Lua is escrowed
Subscription-based No
Lines (approximately) ~3600
Requirements es_extended (or other Framework), oxmysql, an inventory (ox_inventory recommended), ox_target optional
Support Yes
THE END
喜欢就支持一下吧
点赞10 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容