Every fuel script does the same thing: stand next to the pump, hold a key, a bar fills up, you pay, done.
rd-fuel v1 does that too, but there’s an actual person working the station. ![]()
A gas station attendant walks over to your window, talks to you, fills your car with a real nozzle and rope, takes your cash or card, and says goodbye. He reacts to the weather, the time of day, how empty your tank is and whether he’s seen you before. Everything is built from scratch for FiveM.
Like what you see? This is a small sample of what we build dm us on Discord (nyr_x.) if you want something like this for your server.
Preview
Full service from start to finish (press E, window, greeting, engine off, fill, small talk, goodbye)
Full service with cash or card and a tip (press E, window, greeting, engine off, cash or card, fill, small talk, tip, goodbye)
The attendant gets a phone call, and you interrupt it
Drive off mid-fill (the attendant reacts, you get a prorated refund)
Tank already full? The attendant won’t fuel it or charge you
Core Features
Pull up to the pump, then E - Call the attendant over
Attendant walks over, talks to you through the driver window, and can ask you to roll it down (or roll it down for you, configurable)
Asks you to turn the engine off and nags if you don’t. The engine stays locked while he fuels.
Choose Quarter / Half / Full. Prices and fill time scale to the room left in your tank, and a nearly full tank becomes “Top it off”.
Tank already full? He tells you so and doesn’t charge you.
Real nozzle prop and rope: he walks to the fuel cap, hooks it up, walks back, and takes it off when done
Cash or card payment, with the price calculated server-side (a modified client can’t pay $0)
Tips with configurable amounts, paid with the same method you used for the fuel
Fuel ramps up smoothly while he chats, instead of jumping to the final value
2 attendants and 2 stations out of the box, easy to add more in the config
ESX / QBCore / QBox / Standalone / custom hook, with auto-detect
The Headline Feature: The Attendant Is a Character
Greetings That Actually Change
He doesn’t say the same line every time. The greeting depends on the situation:
Rain or storm, with weather-aware lines
Morning / afternoon / evening / late night, each with its own line
Running on fumes, if you roll in with a nearly empty tank
Returning customer: “Hey, you’re back!”
Regular: visit him enough times and he treats you like one (threshold is configurable)
“You’re the one who vanished on me last time!”, if you disconnected mid-fill
Every greeting has its own reply options, and the visit history is saved per player, per station.
Small Talk While He Fills
While the pump runs he chats with you. Each topic has reply buttons and a response to what you picked:
Weather (skipped automatically when it’s raining)
Busy day
Your ride
Where you’re from
A final “Almost done” line, said once near the end of the fill
Topics are ordered so the least-recently-used one comes first, and that history is saved across sessions. You won’t hear the same topic twice in a row.
Random Phone Calls
Sometimes the attendant’s phone rings while he’s idle. He answers with a real phone prop and animation, and carries on a full conversation (3 different calls, each with its own goodbye).
Walk up and press E mid-call, and he reacts: “Hold on a sec, let me finish this call real quick.” He wraps up, hangs up, and only then comes over to serve you.
3D Voice
His voice is positional. It pans left and right with your camera and fades with distance, so you hear him where he actually is. Facial expressions (happy, annoyed when nagging) play on top of his body animations, and he looks at you while talking.
Drive-Off & Disconnect Handling
- Leave before the fill is halfway done (drive away, walk off): the attendant aborts, complains (“Hey, wait, I wasn’t done!”), cleans up the nozzle, and you’re refunded the unfinished part
- After the halfway point you can’t ruin the fill. It always completes, and driving off while he walks back doesn’t trigger anything.
- Disconnect or crash mid-fill: the refund is credited the next time you talk to an attendant, and he remembers you vanished. Configurable under
Config.RefundOnDrop(prorated or full).
Multiplayer Ready (Shared Attendants)
- One player per attendant: others see a “The attendant is busy, please wait” prompt
- Other players see the nozzle and the rope, and hear his voice lines within a configurable radius
- A claim timeout recovers stations if a client crashes mid-service
- Network ownership is handled properly, so the attendant doesn’t glitch or teleport when players come and go
(Requires OneSync.)
Compatibility & Integrations
Frameworks: ESX / QBCore / QBox / Standalone, or "hook" for anything custom. "auto" detects what you’re running.
Fuel systems: native / ox_fuel / LegacyFuel / cdn-fuel / hook
Open for developers:
- Client events:
rdfuel:fillStarted/rdfuel:fillCompleted - Server events:
rdfuel:tipPaid/rdfuel:refundPaid custom_functions.luahooks:GetFuel,SetFuel,GetBalance,RemoveMoney,AddMoney,GetIdentifier,OnPayment,OnTip,OnFillStart,OnFillCompleteHooks.OnTipdecides where the tip money goes (business account, society, the attendant’s pay…)
Standalone: no framework needed. Fuel is added for free, or you can enable the built-in test wallet to try the whole cash/card/tip flow without any economy.
3,000+ lines of code. no script this size is completely bug free but if you find one report it and we’ll fix it right away
Performance & Resource Usage
Sits at 0.00 to 0.01 ms idle.
Code Accessibility & Versions
Free version (this download): the core client, server and UI are escrowed (locked). Everything you need to set it up is open:
config.luais fully open and commented: stations, prices, fill options, payment, tips, refunds, attendant behavior, voice settings
custom_functions.luais fully open: plug in your own fuel system, payment, identifier and tip destination
Client and server events are open for your own scripts (rdfuel:fillStarted,rdfuel:fillCompleted,rdfuel:tipPaid,rdfuel:refundPaid)
Source code version (paid): want to read, learn from, or modify the full code? The paid version is 100% unlocked: client, server and UI source. Re-style the interface, edit the dialogue system, change the attendant behavior, anything.
Get the source code version: Get it here
Full Audio List
Every line is a standalone .mp3 in html/sounds/, so each one is easy to replace or expand.
Greetings: attendant_greeting _rain _morning _evening _night _lowfuel _returning _returning_regular _dropped
Greeting replies: resp_good resp_tired resp_skip resp_lowfuel_close resp_lowfuel_fill resp_return resp_return_skip resp_regular_yes resp_regular_change resp_dropped_sorry resp_dropped_skip
Window & engine: window_request window_nag window_thanks engine_request engine_nag engine_thanks engine_giveup
Fuel & payment: fill_prompt ack_quarter ack_half ack_full ack_topoff tank_full payment_prompt payment_cash_ok payment_card_ok payment_declined payment_insufficient
Tips & goodbye: tip_prompt tip_thanks tip_none tip_failed farewell
Small talk: smalltalk_01 → smalltalk_05 (plus _resp_a / _resp_b for each)
Phone: phone_ring phone_chatter_01 → 12 phone_bye_01/02/03 phone_interrupt phone_wrapup
Drive-off: driveoff
Requirements
- FiveM server (recent artifact)
- OneSync (for shared attendants)
- ESX / QBCore / QBox / Standalone, your choice
- Optional:
ox_fuel/LegacyFuel/cdn-fuel
Download
Free version (escrowed, config + hooks open): Download
Source code (everything unlocked, $24.99 launch price): Get it here
Documentation: Read the docs
One payment lifetime updates buy the source code once and every future version of RD Fuel and its new features are yours for free
Standalone, and it works with all frameworks or none at all. Payment and fuel are pluggable via
custom_functions.lua, available in both versions.
Version 1 Notes
This is v1, and we’re actively improving it. If you hit a bug or have a suggestion, tell us in the comments. We’d rather fix it than have you quietly work around it, and every update to the free version stays free.
Want Something Custom?
This resource is free so you can see how we build before you hire us need a custom fuel system, a different NPC job (mechanic, car wash…), or an original resource for your server? DM us on Discord: nyr_x.
More free resources are on the way, so keep an eye on this page or our website.
Found a bug or have an idea? Drop it in the comments below.
Leave your feedback in the comments, because it gets featured on roxdevelopment.xyz.
| Code is accessible | Free: config + custom_functions open, core escrowed / Paid: full source code |
| Subscription-based | No |
| Lines (approximately) | ~3,100 Lua (+ ~380 UI) |
| Requirements | FiveM, OneSync, optional ESX/QBCore/QBox |
| Support | Yes (Discord: nyr_x.) |
