惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
G
Google Developers Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
P
Proofpoint News Feed
V
Visual Studio Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 叶小钗
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
H
Help Net Security
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
量子位
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a Custom Ambulance Job Script for QBCore — Why I...
Tack k · 2026-04-28 · via DEV Community

Tack k

This time it's QBCore-only, but I want to talk about an ambulance job script I'm currently building.

For my new server, I want to use as many of my own custom scripts as possible. And out of all of them, the ambulance job is by far the most work.

The basic flow sounds simple:

An EMS player diagnoses a downed player → transports them to the hospital → treats and operates on them → revives them.

Simple on paper. But three parts of this flow turned out to be deceptively complex:

  • The UI
  • The transport
  • The revival

The UI — Going Fully Custom

I built a completely original NUI for this. It handles X-ray imaging, injury locations, injury types, symptom categories, treatment options, and the items required for each treatment.

For the X-ray images themselves, I had ChatGPT generate them. Honestly, when it comes to image generation, ChatGPT still produces the cleanest output and draws the best — illustrations and photorealistic images, it's just on another level.

When it comes to actual scripting and code, though, Claude Code is still the strongest in my experience. That hasn't changed.

The injury system works like this: an X-ray image is shown, and the injured body parts are highlighted in red as overlays on the image. Click a highlighted area, and a panel pops up showing the injury type, symptoms, what treatment is required, and which items are needed to perform it.

Once treatment is complete, it's time for revival.


The Revival — Rewriting Default Dependencies

I'm using qb-target for the revival action itself. Since it's the final step, I wanted the next interaction to feel snappy and immediate.

Here's where it gets messy: by default, revival logic depends on qb-ambulancejob. And it's not just that resource — qb-adminmenu revival, txadmin revival, all of them route through the same dependency.

So I had to track down every one of those functions and rewrite them to work with my custom system. Tedious, but necessary if you want to fully replace the default behavior without leaving broken admin tooling behind.


The Down State — Trickier Than It Looked

The screen and behavior when a player goes down was the part I underestimated the most.

Three things needed to happen:

  1. The player needs to go down on the spot
  2. A down animation needs to play while they're incapacitated
  3. They need to stay there

That third one — making sure the player stays where they fell — was surprisingly difficult. Without proper handling, players would respawn on top of mountains, or get teleported into the middle of the street. Claude Code (or as I call her, Kurako) did a lot of the heavy lifting fixing those edge cases.

For the down screen NUI, I wanted it to feel more dramatic than just a static "you're injured" message. So I added heart rate and blood pressure displays, plus that classic ECG line you always see in medical dramas — the one that ticks up in sync with each heartbeat. The data is static for now, but visually it sells the moment.

If players just stared at a list of symptoms while waiting to be treated, it'd be boring. The vibe matters.


Where I'm At Now

That's where the project stands today. I'll write a follow-up once the script is fully complete.

Thanks for reading.

— Tack K