Closed yupi2 closed 9 years ago
Here's a corrected example of usage
hook.Add("WMCPMedialistRowRightClick", "WMCPAddDebugItem", function(menu, mediaId, line, media) menu:AddSpacer() menu:AddOption("Print data", function() print("Printing debug data from WMCP") print("menu: ", menu) print("mediaId: ", mediaId) print("line:", line) print("media:") PrintTable(media or {}, 1) print("") end):SetImage("icon16/lightning.png") end)
Here's a corrected example of usage