Shared Entity Vehicle:VC_getOverride(String id)
1. String id; ID
OVerride ID
1. Any Returns either the override value or nil.
// 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)