HUD
Functions

Vehicle: get Override

Allows to check

Used in: VCMod Main, VCMod ELS addons.

Shared Entity Vehicle:VC_getOverride(String id)

Arguments

1. String id; ID
OVerride ID

Returns

1. Any Returns either the override value or nil.

Example

// Check if headlight color is being overwriten
concommand.Add("VC_getIsHLOvr", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		local ovr = ent:VC_getOverride("HLColor")
		if ovr then
			print("This vehicles headlight color is overwriten to: "..ovr..".")
		else
			print("This vehicles headlight color is not being overwriten.")
		end
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2020-05-13 11:56:44