Server Entity Car Dealer:VC_CD_menuOpen(Entity ply)
1. Entity ply; Player
Player who's menu will be opened for.
concommand.Add("VC_OpenCarDealerMenu", 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_menuOpen(ply) else print("Please look at a car dealer.") end else print("Invalid entity.") end end)