Repository navigation
Expand file tree
/
Copy pathFuel.json
More file actions
86 lines (86 loc) · 6.26 KB
/
Copy pathFuel.json
File metadata and controls
86 lines (86 loc) · 6.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[
{
"version": "1.3.1",
"changelogs": [
"- Requires msk_core 4.1.0 or newer, update both together",
"- Notifications use the table form of msk_core 4.1.0, so the deprecation warnings are gone. If you keep your own config, copy the new Config.Notification lines",
"- The msk_core version is checked on start and an error is logged in the server console when it is too old",
"- Replace fxmanifest.lua, config.lua and server/versionchecker.lua to update",
"- Changed files [fxmanifest.lua, config.lua, server/versionchecker.lua]"
]
},
{
"version": "1.3.0",
"changelogs": [
"- Requires msk_core 4.0.0 or newer, update both together",
"- The framework group for dashboard access is read on QBCore and Qbox too. It went through xPlayer.getGroup(), which only ESX has, so an admin without the matching add_principal line was refused on the other two",
"- Fixed that the QBCore only fallback ran on every framework. Its early return could never fire, because MSK.Bridge used to resolve to a function in a consumer resource and reading MSK.Bridge.Framework raised an error instead",
"- Replace fxmanifest.lua and server/admin/permissions.lua to update",
"- Changed files [fxmanifest.lua, server/admin/permissions.lua]"
]
},
{
"version": "1.2.0",
"changelogs": [
"- Fuel stations are businesses now: 30 named stations with a zone, own stock, own price and an owner, seeded from config.stations.lua",
"- New dependency oxmysql, nine tables created and seeded automatically on first start",
"- Buy and sell a station at the pump, company account per station with a full transaction log",
"- Owner dashboard with eight tabs (overview, finance, prices, stock, supply, pumps, staff, ranks)",
"- Staff system with own ranks, salaries, delivery bonus and seven permissions, payroll paid to online employees only",
"- Supply: NPC driver for instant restocking, delivery runs with three rigs, public delivery jobs at unowned stations",
"- Market tick moves the server-wide base price with total demand and eases back toward its anchor",
"- Pump wear with repair out of the company account, plus an optional mechanic; pumps register themselves on first use",
"- In-game admin dashboard (/fueladmin) with station CRUD, market parameters, settings and a group permission matrix",
"- payFuelPrice carries fuel type and pump coordinates, the server resolves station, price and stock from them",
"- Petrolcan buying and refilling takes fuel out of the station tank",
"- Fixed: custom fuel pumps only spawned when blips were enabled",
"- Fixed: the version checker crashed on pre-release tags, versions are compared by SemVer rules now",
"- Fixed: settings added by a later version never reached an already seeded server",
"- Security: every owner and admin action is checked against the station the player is actually standing at",
"- Security: the reported crash leak is clamped, a manipulated client can only deliver less than it paid for",
"- Security: selling a station and handing out rank permissions are owner-only"
]
},
{
"version": "1.1.1",
"changelogs": [
"- Server-authoritative fuel: a StateBag handler now tracks the authorized fuel value per vehicle and rolls back any illegitimate increase (prevents clients from setting arbitrary fuel levels)",
"- GetVehicleFuel now falls back to 0.0 instead of 50.0 so a missing fuel state can no longer grant free fuel",
"- Added serverside rate limiting (500ms) on refillCan, payFuelPrice and updateFuelCan",
"- Petrolcan buy/refill now verifies serverside that the player is at a known fuel station (blocks spoofed coords and remote triggering)",
"- Per-vehicle-type fueling distance via Config.MaxFuelingDistance (default/heli/plane) + serverside GetMaxFuelingDistance",
"- New IsPlayerNearFuelStation check with Config.MaxStationDistance and Config.FuelStationZoneDistance",
"- Translation fallback: missing keys fall back to English, then the raw key, instead of erroring",
"- Config.Debug now defaults to false",
"- Money handling in petrolcan/refuel events unified on PayPrice",
"- Adjusted the wrong-fuel engine failure threshold (triggers below 500 engine health)",
"- Relicensed the resource to LGPL-3.0-or-later"
]
},
{
"version": "1.1.0",
"changelogs": [
"- Server now calculates fuel/petrolcan prices serverside instead of trusting client-sent values (prevents free refueling exploit)",
"- Validate added fuel against current/max fuel and petrolcan durability",
"- Fix dead 'tank full' check (fuelAmount >= maxFuel)",
"- Translate the English locale block",
"- Add missing translation key petrolcan_not_equipped",
"- IsVehicle* now return proper booleans instead of array indices",
"- Apply `Config.DefaultFuelType` fallback for unlisted vehicles",
"- Guard against nil compare in SetEngineFailure",
"- Add serverside proximity check (IsPlayerNearVehicle) to payFuelPrice and updateFuelCan so vehicles can only be fueled when the player is actually near them (prevents spoofed remote/foreign vehicle fueling)",
"- Split fuel consumption config: per-vehicle fPetrolConsumptionRate now uses Config.PetrolConsumptionRate (2.0) instead of the global SetFuelConsumptionRateMultiplier value",
"- Validate and clamp replicated fuel/maxFuel statebag values clientside",
"- Stop the fueling loop correctly when the player runs out of money",
"- Add re-entry guard to CalculateVehicleFuel to prevent duplicate consumption loops on the same vehicle",
"- Round petrolcan durability to avoid float drift",
"- Add `Config.PetrolConsumptionRate` and `Config.MaxFuelingDistance`"
]
},
{
"version": "1.0.0",
"changelogs": [
"- Release Version"
]
}
]