Releases: MSK-Scripts/msk_fuel
Releases · MSK-Scripts/msk_fuel
Release list
Update v1.1.0
Update v1.1.0
Fix security issues and bugs in fuel system
- 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
Harden refueling against exploits and fix consumption bugs
- 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
Update v1.0.0
Full Changelog: https://github.com/MSK-Scripts/msk_fuel/commits/v1.0.0