Post

Tired of manually preaparing the list of enabled addons?
"""
function CallEnabledAddons()
	local Addons = engine.GetAddons()
	for _, Addon in pairs(Addons) do
		if Addon["mounted"] == true then
			local AddonTitle = Addon["title"]
			local AddonID = Addon["wsid"]
			
			local AddonMessage = "Addon: " .. AddonTitle .. ", workshop link: https://steamcommunity.com/sharedfiles/filedetails/?id=" .. AddonID
			print(AddonMessage)
		end
	end
end

if CLIENT then
	concommand.Add("call_enabled_addons", function()
		CallEnabledAddons()
	end)
end
"""
Use that code above, lunch it on the lua_openscript_cl and then you can use command: call_enabled_addons. This command will print for you list of the enabled addons with workshop links!

Tired of manually preaparing the list of enabled addons? """ function CallEnabledAddons() local Addons = engine.GetAddons() for _, Addon in pairs(Addons) do if Addon["mounted"] == true then local AddonTitle = Addon["title"] local AddonID = Addon["wsid"] local AddonMessage = "Addon: " .. AddonTitle .. ", workshop link: steamcommunity.com/sharedfiles/f…" .. AddonID print(AddonMessage) end end end if CLIENT then concommand.Add("call_enabled_addons", function() CallEnabledAddons() end) end """ Use that code above, lunch it on the lua_openscript_cl and then you can use command: call_enabled_addons. This command will print for you list of the enabled addons with workshop links!

ttthmm1
Obsidian Plague
Obsidian Plague
Jun 9, 2023

why you gotta add a whole lotta concats? why not just use string.format?

raizen
raizen
Jun 10, 2023

OOO YOU MUST USE FUCTION THAT REPLACES %s WITH ARGUMENTS OOOOOOOOOOOOOOOOOOOOO

Reply to raizen
Obsidian Plague
Obsidian Plague
Jun 11, 2023

string.format is cleaner and is perfect for a scenario of this nature, shut yo ass up

Reply to Obsidian Plague
raizen
raizen
Jun 11, 2023

"string.format is cleaner and is perfect for a scenario of this nature, shut yo ass up" Only when you write in C/C++. Not in high level scripting language