HUD
Functions

Car Dealer: CD edit Menu Open

Opens specific car dealers edit menu.

Used in: VCMod Main addon.

Client Entity Car Dealer:VC_CD_editMenuOpen()

Example

concommand.Add("VC_OpenCarDealerEditMenu", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		if ent:GetClass() == "vc_npc_cardealer" then
			print("Opening car dealers menu.")
			ent:VC_CD_editMenuOpen()
		else
			print("Please look at a car dealer.")
		end
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:36