HUD
Functions

Vehicle: fuel Get Type

Displays the current vehicles fuel type.

Used in: VCMod Main addon.

Shared Entity Vehicle:VC_fuelGetType()

Returns

1. Integer The fuel types ID. Available options: 0 - Petrol; 1 - Diesel; 2 - Electricity.

2. String The name of the fuel type.

Example

concommand.Add("vehicle_getfuel", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		print("Vehicle you are currently looking at fuel type is: "..ent:VC_fuelGetType(true)..".")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2019-01-27 08:08:10