← Devlog

Aviation: a FiveM flight school and pilot jobs paid by how well you land

Aviation replaces Pilot Jobs: a flight school, four contract types and a landing grade from S to F that multiplies the pay.

Pilot Jobs was one of the first scripts I made. It worked, but flying in it was a means to an end: take off, follow a marker, land anywhere, get paid. Aviation is the rewrite, and it starts from one question: what would make flying something players get better at?

The answer was the landing.

Every landing is scored from S to F, and the grade multiplies the pay

Every landing gets a grade

When the wheels touch down, the script measures the vertical speed and counts the bounces. Helicopters on a helipad also score how close to the center they set down. That becomes a score from 0 to 100 and a grade:

Grade Score Pay
S 92+ ×1.25
A 80+ ×1.10
B 65+ ×1.00
C 45+ ×0.85
F below 45 ×0.50

A plane that touches down at 180 ft/min or less gets full marks. At 600 it is a firm landing, and from 1,100 it counts as a crash. Every bounce costs 15 points. All of it is in the config, so you decide how strict your server is.

The result is simple to explain to a player: land well, earn more. And it gives pilots something to talk about.

From student to captain

Players start at the flight school: a theory test with random questions, then a helicopter exam (hover, circuit, pad landing) and a plane exam (circuit, airport landing). Each exam has its own minimum landing score, damage limit and time limit.

Helicopter exam: fly through every ring of the circuit

With a license, they take contracts from the Flight Ops desk on the Flightpad tablet:

  • Passenger flights, round trip between airports.
  • VIP charters.
  • Air rescue in the mountains, against the clock.
  • Cargobob sling loads, paid by the condition of the cargo.

Pilots rank up, unlock bigger aircraft and contract types, log flight hours and keep a logbook. A co-pilot gets a share of every payment.

Built so it cannot be farmed

A pilot job pays real money in your economy, so it is a target. Aviation does not trust the client with any of it:

  • The server spawns the aircraft. Players cannot bring their own, so the route and the payment can be checked.
  • Every stage is checked against the aircraft’s real position, read on the server, not reported by the client.
  • The server calculates every payment: distance, landing grade, rescue time bonus, cargo condition and rank.
  • Aircraft rent has a deposit, refunded minus the damage.

For server owners

  • ESX, QBCore and Qbox, with an open bridge.
  • Turn the school or the contracts off. Contracts work with another school’s licenses.
  • Keep your license names, so players who passed Pilot Jobs keep their licenses.
  • Add airfields, stands and helipads from the game with an admin command that prints each position ready to paste.
  • Server exports and events for battle passes, logs or your anticheat.
  • Resmon: 0.00 ms idle, 0.01 ms with the tablet open.

See Aviation, with the video and full documentation.