HUD
Functions

VC_fuel Get Price

This allows to check VCMod fuel prices per fuel type. Can also have been done using VC_getSettings() devcorner function.

Used in: VCMod Main addon.

Shared VC_fuelGetPrice(Integer ftype)

Arguments

1. Integer ftype; Fuel type
The fuel type we want to check the price of (default is 1). Available options: 0 - Petrol; 1 - Diesel; 2 - Electricity.

Returns

1. Integer The current price of a liter of this type of fuel, based on settings.

Example

// Lets get the currenty price of VCMods Petrol
concommand.Add("vehicle_getfuel", function()
	print("VCMods current price of Petrol is "..VC_fuelGetPrice(0).."/liter.")
end)
Page modified:
...2019-01-26 22:23:11