Shared Entity Vehicle:VC_getName(Integer default)
1. Integer default; Default
Default value incase vehicle does not have a name or it has not been synced yet.
1. String The vehicles ingame name.
concommand.Add("vehicle_getname", function()
local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
if IsValid(ent) then
print("Vehicles you are currently looking at name is: '"..ent:VC_getName().."'.")
else
print("Invalid entity.")
end
end)