engine/GetAddons

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Returns a list of addons the player have subscribed to on the workshop. This list will also include "Floating" .gma addons that are mounted by the game.
+
|Description=Returns a list of addons the player have subscribed to on the workshop.
 +
 
 +
This list will also include "Floating" .gma addons that are mounted by the game, but not the folder addons.
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No

Latest revision as of 14:45, 17 December 2019

 engine.GetAddons( )

Contents

Description

Returns a list of addons the player have subscribed to on the workshop.

This list will also include "Floating" .gma addons that are mounted by the game, but not the folder addons.

Returns

table

A table with 6 keys (downloaded, models, title, file, mounted, wsid)

Examples

Example

Will return a list of all the workshop addons you have downloaded / are downloading.

PrintTable(engine.GetAddons())

Output:

1:
		downloaded	=	true 
		models		=	0 
		title		=	Title of Addon 
		file		=	addons/title_of_addon_123456789.gma 
		mounted		=	true
		wsid		=	123456789 
Personal tools
Navigation