v3.0.2 parche
No more free fuel, payment fallback and fully translated interface
6cambios

No more free fuel, payment fallback and fully translated interface
6cambios

[02] Versión
A security update. Fuel and jerrycans can no longer be taken without paying, the pump can charge the rest from the player's other account, creator access can be given by framework group, Qbox is detected automatically and the whole interface is translated into 41 languages.
server/custom/framework/esx.lua, qb.lua and vrpex.lua gained two new functions, PlayerHasGroup and PlayerIsAdmin. If you keep your old files, framework admins lose access to /fuelcreator — copy your own edits onto the new files instead.config.lua:
Config.FuelPaymentFallback = true — charge the rest from the other account. Without the line, there is no fallback.Config.Creator.groups = {} — framework groups that may open the creator.fuelstations:server:pay, fuelstations:server:givecan and fuelstations:server:fullcan were removed: the server now prices and delivers jerrycans itself. Only relevant if another script of yours triggered them.Replace every file in the resource, except what you edited yourself:
qs-fuelstations/fxmanifest.lua — the version number.qs-fuelstations/config.lua — FuelPaymentFallback, Creator.groups and Qbox detection. If you edited it, copy your changes onto the new file.qs-fuelstations/client/modules/pump.lua — checks what the player can pay before refuelling and stops when the money runs out.qs-fuelstations/client/modules/creator.lua — translated creator controls.qs-fuelstations/client/modules/nui.lua — sends the translations to the interface.qs-fuelstations/server/main.lua — secure fuel and jerrycan payments, with the fallback.qs-fuelstations/server/modules/stations.lua — creator access by framework group.qs-fuelstations/server/custom/framework/esx.lua, qb.lua, vrpex.lua — read the player's group from the framework.qs-fuelstations/locales/* — every interface text, in all 41 languages. Re-apply any translation you edited.qs-fuelstations/web/* — the translated pump screen and Fuel Creator.qs-fuelstations/README.md — creator access documented.The pump now checks how much the player can afford before it starts, stops when the money runs out, and takes any fuel that was not paid for back out of the tank. Station stock only goes down for fuel that was paid for.
The price of a new or refilled jerrycan is now calculated by the server and can no longer be changed by the client. If the can cannot be delivered, the money is refunded.
If the chosen account does not have enough money, the rest is taken from the other one (cash to bank, or bank to cash). The notification shows how much came from each. Turn it off with Config.FuelPaymentFallback. Jerrycans use the same payment choice and fallback.
List groups such as { 'admin', 'mod' } in Config.Creator.groups to let them open /fuelcreator with no ACE setup. Works with ESX groups, QBCore and Qbox permissions, and vRP groups.
The pump screen, the charger, the Fuel Creator and the creator's on-screen controls now follow the language set in Config.Language or qs:locale.
Servers running qbx_core are detected and use the QBCore bridge with no change to the config.