Options are in settings/config.taxi.lua (Config.TaxiMeter). Every job in jobs uses the meter with the values of this file. Each job can override tariffs, extras, driver share, payment, highest fare and street fares in /jobadmin, job, Taxi. The Taxi Company template turns that tab on by itself.
How a ride works
- The driver of a taxi (on duty, in one of
models) opens the meter menu with K or/taximeter. The meter on the dashboard shows FREE while the car is free and the roof light is on. - Start the meter. The server measures the ride from the position of the car on the server (distance) and its clock (waiting time). The client only shows what the server sends. Everybody in the car sees the meter.
- Pause it for luggage or a short stop, or stop it. A stopped meter shows the final fare. The meter also pauses by itself while the driver is out of the car and is reset after
leaveTimeoutseconds. - Charge the passenger: an invoice (paid in the Invoices window, or at once on the card terminal when
Config.Terminalis on anduseTerminalistrue) or cash the passenger confirms on screen. One charge per ride,billCooldownper passenger, the passenger must sit in the car or stand withinbillDistanceof the driver. - While nobody hired the car and the roof light is on, the driver gets street fares from NPC passengers.
The meter menu has start, pause, stop, tariff, extras, roof light and charge.
| Key | Default | Option |
|---|---|---|
| Meter menu | K | menuKey |
| Start or stop the meter | unbound | key |
| Roof light on or off | unbound | lightKey |
Players rebind them in GTA Settings, Key Bindings, FiveM. '' = no default key.
Tariffs
The server picks the first tariff whose zone contains the pickup or the current position, then the first one whose hours match the server clock, then the first one without zone and hours. With manualTariff = true the driver switches it in the menu.
tariffs = {
{ id = 'day', label = 'Day', base = 25, perKm = 45, perMinute = 4, minFare = 40 },
{ id = 'night', label = 'Night', base = 35, perKm = 55, perMinute = 5, minFare = 50, hours = { 22, 6 } },
{ id = 'airport', label = 'Airport', base = 60, perKm = 45, perMinute = 4, minFare = 90, zone = { x = -1180.0, y = -2690.0, radius = 650.0 } },
},| Field | What it is |
|---|---|
id |
Short name, letters, numbers and _ |
label |
What the meter and the receipt show |
base |
Flag fall, paid when the meter starts |
perKm |
Money per km driven |
perMinute |
Money per minute the car waits or crawls below waitSpeed |
minFare |
The passenger pays at least this, 0 = no minimum |
hours |
{ from, to } on the server clock, { 22, 6 } = 22:00 to 05:59 |
zone |
{ x, y, radius } in metres |
Extras
Flat amounts the driver adds to a running or stopped meter. amount is added once per press, max is how often one ride can have it.
extras = {
{ id = 'luggage', label = 'Luggage', amount = 10, max = 4 },
{ id = 'passenger', label = 'Extra passenger', amount = 15, max = 3 },
{ id = 'pet', label = 'Pet', amount = 20, max = 1 },
{ id = 'booking', label = 'Phone booking', amount = 10, max = 1 },
},Money
driverShare % of every fare goes to the driver, the rest to the company account. Tips from street fares always go to the driver. With driverShare = 0 the company keeps every fare and the driver lives from the grade salary (Config.Payroll). For taxi jobs this replaces Config.Billing.commission.
Street fares
Free drivers with the roof light on roll for an offer every npc.interval seconds. The driver accepts with Y, a route leads to the pickup, the NPC walks to the car and gets in, the meter starts by itself and the passenger pays in cash at the destination. The ride starts at 100 rating points and loses points for speeding above speedLimit, for body damage and for taking longer than expected. The rating gives 1 to 5 stars and the tip, up to maxTip % of the fare. Below minTipRating there is no tip.
With onlyWithoutCalls a player call for the same job that waits without a driver blocks street fares for callWindow seconds, so players are served first. The server checks every step: stopped at the pickup and the destination within stopRadius, the passenger in the car, the distance actually driven. Earnings from street fares are capped at hourlyCap per driver and hour.
Street fare passengers are networked peds created by the driver's game. Servers with sv_entityLockdown set to strict block them, use relaxed or inactive.
Options
| Key | Type | Default | What it changes |
|---|---|---|---|
enabled |
boolean | true |
Meter, roof light and street fares. false refuses every taxi request |
jobs |
table | { taxi = true } |
Taxi jobs. A job with the Taxi tab on counts too |
requireDuty |
boolean | true |
Only drivers on duty use the meter and get street fares |
command |
string | 'taximeter' |
Command for the meter menu, '' = none |
menuKey |
string | 'K' |
Default key of the meter menu |
key |
string | '' |
Default key that starts and stops the meter |
lightKey |
string | '' |
Default key of the roof light |
models |
table | { 'taxi', 'stretch' } |
Cars with a meter, {} = every car the taxi job drives |
position |
string | 'bottom-right' |
top, bottom or bottom-right (above the minimap) |
hourOffset |
number | 0 |
Hours added to the server clock for tariff hours, -12 to 12 |
tariffs |
table | day, night, airport | See above |
manualTariff |
boolean | true |
The driver may switch the tariff |
extras |
table | luggage, passenger, pet, booking | See above |
maxFare |
number | 2500 |
Highest fare of one ride with extras, 1 to 1000000 |
fareStep |
number | 1 |
The meter drops in steps of this amount, 1 to 100 |
waitSpeed |
number | 10 |
km/h below which time counts as waiting, 1 to 40 |
teleportSpeed |
number | 260 |
km/h. A faster jump between two samples is a teleport and not distance, 100 to 500 |
leaveTimeout |
number | 300 |
Seconds the meter stays paused with the driver out before it resets, 0 = never, up to 1800 |
payment |
string | 'both' |
invoice, cash or both (the driver picks) |
useTerminal |
boolean | true |
An invoice opens the card terminal when Config.Terminal is on |
driverShare |
number | 30 |
% of every fare for the driver, 0 to 100 |
account |
string | 'cash' |
Account for cash payments and street fares, cash or bank |
billCooldown |
number | 60 |
Seconds before the same passenger is charged again |
billDistance |
number | 8.0 |
Metres a passenger who got out can still be charged |
manualFare |
boolean | false |
true lets drivers type any fare up to maxFare, false = the measured fare or less |
cashTimeout |
number | 30 |
Seconds the passenger has to answer a cash payment, 10 to 120 |
light.enabled |
boolean | true |
Roof light shows whether the car is free |
light.autoHired |
boolean | true |
Light off when the meter starts, on when the ride ends |
npc.enabled |
boolean | true |
Street fares |
npc.onlyWithoutCalls |
boolean | true |
No street fares while a player call waits |
npc.callWindow |
number | 180 |
Seconds a player call blocks street fares, 30 to 900 |
npc.interval |
number | 40 |
Seconds between two rolls per free driver, 15 to 600 |
npc.chance |
number | 55 |
% chance per roll, 0 to 100 |
npc.offerSeconds |
number | 20 |
Seconds to accept an offer, 5 to 60 |
npc.pickupMin, npc.pickupMax |
number | 150.0, 1500.0 |
Metres from the driver to the pickup, 50 to 5000 |
npc.tripMin, npc.tripMax |
number | 600.0, 4500.0 |
Metres from pickup to destination in a straight line, 200 to 15000 |
npc.stopRadius |
number | 25.0 |
Metres the car must stop from the pickup and the destination, 5 to 60 |
npc.pickupMinutes, npc.rideMinutes |
number | 6, 20 |
Minutes to reach the pickup and to finish the ride, 1 to 60 |
npc.maxTip |
number | 25 |
Highest tip in % of the fare, 0 to 100 |
npc.speedLimit |
number | 120 |
km/h above which the rating drops, 40 to 250 |
npc.speedPenalty |
number | 2 |
Points lost per second above speedLimit |
npc.damagePenalty |
number | 3 |
Points lost per 10 points of body damage |
npc.latePenalty |
number | 4 |
Points lost per 10 % the ride takes longer than expected |
npc.minTipRating |
number | 40 |
Below this rating no tip, 0 to 100 |
npc.hourlyCap |
number | 6000 |
Most a driver earns from street fares per hour, fares and tips, 0 = no limit |
npc.models |
table | 11 vanilla peds | Passenger models |
npc.spots |
table | 24 places across Los Santos | Pickup and drop-off places { label, x, y, z }, the car stops on the nearest road |
Live in /jobadmin, Server settings: enabled under Modules, and under Taxi requireDuty, position, maxFare, driverShare, payment, useTerminal, light.enabled, npc.enabled, npc.onlyWithoutCalls, npc.interval, npc.chance, npc.maxTip, npc.speedLimit, npc.hourlyCap. A value saved in game wins over the file until it is reset there.
Per job Taxi tab
/jobadmin, job, Taxi gives one job its own values. The server settings still set the highest fare and switch features off for everyone.
| Field | What it changes |
|---|---|
| Taxi tools | Taximeter, roof light and charging for this job |
| Street fares | Free drivers with the roof light on get NPC passengers |
| Driver picks the tariff | Off = the server always picks it by time and zone |
| Payment | Invoice or cash, invoice only, cash only |
| Driver share | % for the driver, the rest for the company |
| Highest fare | Never above the server limit |
| Tariffs | Name, flag fall, per km, per minute waiting, minimum fare, used by default, by hours or in a zone |
| Extras | Name, amount, max per ride |
Load server values fills the tab with the values of config.taxi.lua.