HUD
Functions

GM: fuel Changed

Called when the vehicles fuel has changed in any way.

Used in: VCMod Main addon.

Server GM:VC_fuelChanged(Entity ent, Integer ofuel, Integer nfuel)

Arguments

1. Entity ent; Vehicle
The unlucky vehicle.

2. Integer ofuel; Old fuel
The old fuel in liters.

3. Integer nfuel; New fuel
The newly changed fuel in liters.

Example

hook.Add("VC_fuelChanged", "CustomHookName", function(ent, ofuel, nfuel)
	print("This vehicles fuel has changed from: "..ofuel.." to "..nfuel..".")
end)
Page modified:
...2018-11-02 09:24:37