HUD
Functions

Vehicle: get Name

Displays the current vehicles name.

Used in: VCMod Main, VCMod ELS addons.

Shared Entity Vehicle:VC_getName(Integer default)

Arguments

1. Integer default; Default
Default value incase vehicle does not have a name or it has not been synced yet.

Returns

1. String The vehicles ingame name.

Example

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)
Page modified:
...2018-11-02 09:24:38