HUD
Functions

VC_fuel Consumption Set Enabled

Turns off fuel usage for certain entity.

Used in: VCMod Main addon.

Server VC_fuelConsumptionSetEnabled(Boolean enabled)

Arguments

1. Boolean enabled; Enabled
If it should be enabled or not.

Example

concommand.Add("vehicle_disableFuel", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_fuelConsumptionSetEnabled(false)
		print("This vehicle will no longer use fuel")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2019-04-06 14:07:01