@tlua/gmod 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/package.json +1 -1
  2. package/types/achievementicon.d.tlua +0 -1
  3. package/types/achievements.d.tlua +0 -31
  4. package/types/ai.d.tlua +0 -11
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +0 -37
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +0 -4
  11. package/types/bf_read.d.tlua +0 -23
  12. package/types/bit.d.tlua +0 -23
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +0 -33
  15. package/types/ceffectdata.d.tlua +0 -65
  16. package/types/chat.d.tlua +0 -11
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +0 -15
  19. package/types/cluaemitter.d.tlua +0 -25
  20. package/types/clualocomotion.d.tlua +0 -81
  21. package/types/cluaparticle.d.tlua +0 -89
  22. package/types/cmovedata.d.tlua +0 -95
  23. package/types/cnavarea.d.tlua +0 -155
  24. package/types/cnavladder.d.tlua +0 -45
  25. package/types/cnewparticleeffect.d.tlua +0 -53
  26. package/types/color.d.tlua +0 -57
  27. package/types/concommand.d.tlua +0 -9
  28. package/types/constraint.d.tlua +0 -57
  29. package/types/construct.d.tlua +0 -3
  30. package/types/contentheader.d.tlua +1 -6
  31. package/types/contenticon.d.tlua +1 -18
  32. package/types/contentsidebar.d.tlua +1 -8
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +1 -8
  35. package/types/controlpanel.d.tlua +6 -31
  36. package/types/controlpresets.d.tlua +1 -26
  37. package/types/convar.d.tlua +0 -33
  38. package/types/cookie.d.tlua +0 -7
  39. package/types/coroutine.d.tlua +0 -15
  40. package/types/crecipientfilter.d.tlua +0 -33
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +0 -29
  43. package/types/ctakedamageinfo.d.tlua +0 -67
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +0 -13
  46. package/types/cusercmd.d.tlua +0 -55
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +0 -13
  49. package/types/dadjustablemodelpanel.d.tlua +1 -14
  50. package/types/dalphabar.d.tlua +1 -6
  51. package/types/dbinder.d.tlua +1 -8
  52. package/types/dbubblecontainer.d.tlua +1 -4
  53. package/types/dbutton.d.tlua +1 -16
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +1 -10
  57. package/types/dcheckboxlabel.d.tlua +0 -19
  58. package/types/dcollapsiblecategory.d.tlua +1 -46
  59. package/types/dcolorbutton.d.tlua +1 -14
  60. package/types/dcolorcombo.d.tlua +1 -10
  61. package/types/dcolorcube.d.tlua +1 -26
  62. package/types/dcolormixer.d.tlua +1 -54
  63. package/types/dcolorpalette.d.tlua +1 -46
  64. package/types/dcolumnsheet.d.tlua +1 -10
  65. package/types/dcombobox.d.tlua +1 -34
  66. package/types/ddragbase.d.tlua +1 -26
  67. package/types/ddrawer.d.tlua +1 -16
  68. package/types/debug.d.tlua +25 -60
  69. package/types/debugoverlay.d.tlua +0 -23
  70. package/types/dentityproperties.d.tlua +1 -10
  71. package/types/derma.d.tlua +0 -21
  72. package/types/dexpandbutton.d.tlua +1 -6
  73. package/types/dfilebrowser.d.tlua +0 -41
  74. package/types/dform.d.tlua +1 -36
  75. package/types/dframe.d.tlua +0 -49
  76. package/types/dgrid.d.tlua +1 -22
  77. package/types/dhorizontaldivider.d.tlua +1 -40
  78. package/types/dhorizontalscroller.d.tlua +1 -22
  79. package/types/dhscrollbar.d.tlua +1 -22
  80. package/types/dhtml.d.tlua +1 -16
  81. package/types/dhtmlcontrols.d.tlua +0 -11
  82. package/types/diconbrowser.d.tlua +1 -22
  83. package/types/diconlayout.d.tlua +1 -36
  84. package/types/dimage.d.tlua +1 -39
  85. package/types/dimagebutton.d.tlua +0 -19
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +1 -66
  88. package/types/dlabeleditable.d.tlua +1 -10
  89. package/types/dlabelurl.d.tlua +1 -20
  90. package/types/dlistbox.d.tlua +1 -16
  91. package/types/dlistboxitem.d.tlua +1 -8
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +1 -68
  94. package/types/dlistview_column.d.tlua +1 -28
  95. package/types/dlistview_columnplain.d.tlua +0 -1
  96. package/types/dlistview_draggerbar.d.tlua +0 -1
  97. package/types/dlistview_line.d.tlua +1 -26
  98. package/types/dlistviewheaderlabel.d.tlua +0 -1
  99. package/types/dlistviewlabel.d.tlua +0 -1
  100. package/types/dlistviewline.d.tlua +0 -1
  101. package/types/dmenu.d.tlua +1 -53
  102. package/types/dmenubar.d.tlua +1 -11
  103. package/types/dmenuoption.d.tlua +1 -26
  104. package/types/dmenuoptioncvar.d.tlua +1 -12
  105. package/types/dmodelpanel.d.tlua +1 -44
  106. package/types/dmodelselect.d.tlua +1 -4
  107. package/types/dmodelselectmulti.d.tlua +1 -4
  108. package/types/dnotify.d.tlua +1 -20
  109. package/types/dnumberscratch.d.tlua +1 -52
  110. package/types/dnumberwang.d.tlua +1 -32
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +0 -35
  113. package/types/dpanel.d.tlua +1 -28
  114. package/types/dpanellist.d.tlua +0 -23
  115. package/types/dpaneloverlay.d.tlua +1 -14
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +1 -12
  118. package/types/dprogress.d.tlua +1 -6
  119. package/types/dproperties.d.tlua +1 -8
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -6
  122. package/types/dproperty_entity.d.tlua +0 -1
  123. package/types/dproperty_float.d.tlua +0 -1
  124. package/types/dproperty_generic.d.tlua +1 -10
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +9 -41
  128. package/types/dragndrop.d.tlua +0 -21
  129. package/types/draw.d.tlua +0 -22
  130. package/types/drgbpicker.d.tlua +1 -8
  131. package/types/drive.d.tlua +6 -31
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +0 -21
  134. package/types/dshape.d.tlua +1 -14
  135. package/types/dsizetocontents.d.tlua +1 -10
  136. package/types/dslider.d.tlua +1 -56
  137. package/types/dsprite.d.tlua +1 -18
  138. package/types/dtab.d.tlua +1 -16
  139. package/types/dtextentry.d.tlua +1 -86
  140. package/types/dtilelayout.d.tlua +1 -42
  141. package/types/dtooltip.d.tlua +1 -12
  142. package/types/dtree.d.tlua +1 -32
  143. package/types/dtree_node.d.tlua +1 -136
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +0 -60
  146. package/types/dverticaldivider.d.tlua +1 -46
  147. package/types/dvscrollbar.d.tlua +1 -22
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +1 -8
  150. package/types/effects.d.tlua +0 -13
  151. package/types/engine.d.tlua +0 -43
  152. package/types/entity.d.tlua +2 -1319
  153. package/types/ents.d.tlua +0 -44
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +0 -79
  156. package/types/file_class.d.tlua +0 -1
  157. package/types/fingerposer.d.tlua +0 -1
  158. package/types/fingervar.d.tlua +0 -1
  159. package/types/frame.d.tlua +0 -1
  160. package/types/frame_blend.d.tlua +0 -15
  161. package/types/game.d.tlua +0 -79
  162. package/types/gameevent.d.tlua +4 -9
  163. package/types/gamemode.d.tlua +0 -6
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +0 -535
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +0 -9
  168. package/types/gui.d.tlua +0 -43
  169. package/types/gwen.d.tlua +0 -7
  170. package/types/halo.d.tlua +0 -5
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +0 -9
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +0 -3
  175. package/types/iconeditor.d.tlua +1 -22
  176. package/types/igmodaudiochannel.d.tlua +0 -83
  177. package/types/imagecheckbox.d.tlua +1 -8
  178. package/types/imaterial.d.tlua +0 -53
  179. package/types/imesh.d.tlua +0 -11
  180. package/types/input.d.tlua +0 -47
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +0 -19
  183. package/types/isave.d.tlua +0 -19
  184. package/types/itexture.d.tlua +0 -21
  185. package/types/ivideowriter.d.tlua +0 -11
  186. package/types/jit.d.tlua +9 -42
  187. package/types/killicon.d.tlua +0 -15
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +0 -3
  190. package/types/list.d.tlua +0 -17
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +0 -5
  193. package/types/markupobject.d.tlua +0 -11
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +200 -371
  196. package/types/matproxy.d.tlua +0 -7
  197. package/types/matselect.d.tlua +1 -22
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +0 -5
  200. package/types/mesh.d.tlua +0 -39
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +0 -21
  203. package/types/navmesh.d.tlua +0 -53
  204. package/types/net.d.tlua +0 -104
  205. package/types/nextbot.d.tlua +10 -83
  206. package/types/notification.d.tlua +0 -5
  207. package/types/npc.d.tlua +1 -364
  208. package/types/numpad.d.tlua +0 -15
  209. package/types/os.d.tlua +0 -8
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +2 -662
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +0 -63
  214. package/types/permissions.d.tlua +0 -13
  215. package/types/physcollide.d.tlua +0 -7
  216. package/types/physenv.d.tlua +0 -23
  217. package/types/physobj.d.tlua +0 -157
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +11 -594
  220. package/types/player_manager.d.tlua +0 -27
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +0 -13
  223. package/types/projectedtexture.d.tlua +0 -97
  224. package/types/properties.d.tlua +0 -11
  225. package/types/propselect.d.tlua +1 -10
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +0 -285
  228. package/types/resource.d.tlua +0 -5
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +1 -108
  231. package/types/saverestore.d.tlua +0 -25
  232. package/types/schedule.d.tlua +0 -13
  233. package/types/scripted_ents.d.tlua +0 -21
  234. package/types/search.d.tlua +0 -3
  235. package/types/serverlist.d.tlua +0 -15
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +0 -21
  239. package/types/spawnicon.d.tlua +1 -16
  240. package/types/spawnmenu.d.tlua +0 -48
  241. package/types/spawnmenucontentpanel.d.tlua +1 -10
  242. package/types/sql.d.tlua +0 -19
  243. package/types/stack.d.tlua +0 -11
  244. package/types/steamworks.d.tlua +0 -37
  245. package/types/string.d.tlua +0 -96
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +0 -69
  248. package/types/surfaceinfo.d.tlua +0 -11
  249. package/types/system.d.tlua +0 -21
  250. package/types/table.d.tlua +0 -93
  251. package/types/task.d.tlua +0 -19
  252. package/types/team.d.tlua +0 -39
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +0 -29
  256. package/types/tool.d.tlua +1 -90
  257. package/types/ugcpublishwindow.d.tlua +1 -18
  258. package/types/umsg.d.tlua +0 -25
  259. package/types/undo.d.tlua +0 -21
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +0 -5
  262. package/types/utf8.d.tlua +0 -15
  263. package/types/util.d.tlua +0 -185
  264. package/types/vector.d.tlua +0 -73
  265. package/types/vehicle.d.tlua +2 -102
  266. package/types/vgui.d.tlua +0 -33
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +0 -71
  269. package/types/weapon.d.tlua +2 -168
  270. package/types/weapons.d.tlua +0 -12
  271. package/types/widgets.d.tlua +0 -3
  272. package/types/workshopfilebase.d.tlua +0 -11
@@ -27,9 +27,7 @@ interface ResourceLib {
27
27
  * @source https://wiki.facepunch.com/gmod/resource.AddFile
28
28
  */
29
29
  AddFile(path: string): void;
30
- }
31
30
 
32
- interface ResourceLib {
33
31
  /**
34
32
  * Adds the specified file to the files the client should download from the server.
35
33
  *
@@ -47,9 +45,7 @@ interface ResourceLib {
47
45
  * @source https://wiki.facepunch.com/gmod/resource.AddSingleFile
48
46
  */
49
47
  AddSingleFile(path: string): void;
50
- }
51
48
 
52
- interface ResourceLib {
53
49
  /**
54
50
  * Adds a workshop addon for the client to download before entering the server. This will not "install" the addon on your server, see [Workshop for Dedicated Servers](https://wiki.facepunch.com/gmod/Workshop_for_Dedicated_Servers) for installing Steam Workshop addons onto your servers.
55
51
  *
@@ -70,4 +66,3 @@ interface ResourceLib {
70
66
  */
71
67
  AddWorkshop(workshopid: string): void;
72
68
  }
73
-
@@ -14,4 +14,3 @@
14
14
  * @source https://wiki.facepunch.com/gmod/RichText
15
15
  */
16
16
  interface RichText extends Panel {}
17
-
@@ -17,9 +17,7 @@
17
17
  *
18
18
  * @source https://wiki.facepunch.com/gmod/SANDBOX_Hooks
19
19
  */
20
- interface SANDBOX extends GM {}
21
-
22
- interface SANDBOX {
20
+ interface SANDBOX extends GM {
23
21
  /**
24
22
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
25
23
  *
@@ -32,9 +30,7 @@ interface SANDBOX {
32
30
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddGamemodeToolMenuCategories
33
31
  */
34
32
  AddGamemodeToolMenuCategories(self: SANDBOX): void;
35
- }
36
33
 
37
- interface SANDBOX {
38
34
  /**
39
35
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
40
36
  *
@@ -47,63 +43,49 @@ interface SANDBOX {
47
43
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddGamemodeToolMenuTabs
48
44
  */
49
45
  AddGamemodeToolMenuTabs(self: SANDBOX): void;
50
- }
51
46
 
52
- interface SANDBOX {
53
47
  /**
54
48
  * This hook is used to add new categories to spawnmenu tool tabs.
55
49
  * @realm client
56
50
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuCategories
57
51
  */
58
52
  AddToolMenuCategories(self: SANDBOX): void;
59
- }
60
53
 
61
- interface SANDBOX {
62
54
  /**
63
55
  * This hook is used to add new tool tabs to spawnmenu.
64
56
  * @realm client
65
57
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuTabs
66
58
  */
67
59
  AddToolMenuTabs(self: SANDBOX): void;
68
- }
69
60
 
70
- interface SANDBOX {
71
61
  /**
72
62
  * Called when a player attempts to "arm" a duplication with the Duplicator tool. Return false to prevent the player from sending data to server, and to ignore data if it was somehow sent anyway.
73
63
  * @realm shared
74
64
  * @source https://wiki.facepunch.com/gmod/SANDBOX:CanArmDupe
75
65
  */
76
66
  CanArmDupe(self: SANDBOX, ply: Player): (boolean, string);
77
- }
78
67
 
79
- interface SANDBOX {
80
68
  /**
81
69
  * Called when a player attempts to drive a prop via Prop Drive
82
70
  * @realm shared
83
71
  * @source https://wiki.facepunch.com/gmod/SANDBOX:CanDrive
84
72
  */
85
73
  CanDrive(self: SANDBOX, ply: Player, ent: Entity): boolean;
86
- }
87
74
 
88
- interface SANDBOX {
89
75
  /**
90
76
  * Called when a player attempts to fire their tool gun. Return true to specifically allow the attempt, false to block it.
91
77
  * @realm shared
92
78
  * @source https://wiki.facepunch.com/gmod/SANDBOX:CanTool
93
79
  */
94
80
  CanTool(self: SANDBOX, ply: Player, tr: TraceResult, toolname: string, tool: table, button: number): boolean;
95
- }
96
81
 
97
- interface SANDBOX {
98
82
  /**
99
83
  * Called when player selects an item on the spawnmenu sidebar at the left.
100
84
  * @realm client
101
85
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContentSidebarSelection
102
86
  */
103
87
  ContentSidebarSelection(self: SANDBOX, parent: Panel, node: Panel): void;
104
- }
105
88
 
106
- interface SANDBOX {
107
89
  /**
108
90
  * Called when the context menu is supposedly closed.
109
91
  *
@@ -116,18 +98,14 @@ interface SANDBOX {
116
98
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuClosed
117
99
  */
118
100
  ContextMenuClosed(self: SANDBOX): void;
119
- }
120
101
 
121
- interface SANDBOX {
122
102
  /**
123
103
  * Called when the context menu is created.
124
104
  * @realm client
125
105
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuCreated
126
106
  */
127
107
  ContextMenuCreated(self: SANDBOX, g_ContextMenu: Panel): void;
128
- }
129
108
 
130
- interface SANDBOX {
131
109
  /**
132
110
  * Allows to prevent the creation of the context menu. If the context menu is already created, this will have no effect.
133
111
  *
@@ -135,18 +113,14 @@ interface SANDBOX {
135
113
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuEnabled
136
114
  */
137
115
  ContextMenuEnabled(self: SANDBOX): boolean;
138
- }
139
116
 
140
- interface SANDBOX {
141
117
  /**
142
118
  * Called when the context menu is trying to be opened.
143
119
  * @realm client
144
120
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuOpen
145
121
  */
146
122
  ContextMenuOpen(self: SANDBOX): boolean;
147
- }
148
123
 
149
- interface SANDBOX {
150
124
  /**
151
125
  * Called when the context menu is supposedly opened.
152
126
  *
@@ -159,36 +133,28 @@ interface SANDBOX {
159
133
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuOpened
160
134
  */
161
135
  ContextMenuOpened(self: SANDBOX): void;
162
- }
163
136
 
164
- interface SANDBOX {
165
137
  /**
166
138
  * Called to poll if active tool settings should appear in the context menu. Please note that this is only called on initial opening of the context menu, not every frame the context menu is in use.
167
139
  * @realm client
168
140
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuShowTool
169
141
  */
170
142
  ContextMenuShowTool(self: SANDBOX): boolean;
171
- }
172
143
 
173
- interface SANDBOX {
174
144
  /**
175
145
  * Called when the Client reverts spawnlist changes
176
146
  * @realm client
177
147
  * @source https://wiki.facepunch.com/gmod/SANDBOX:OnRevertSpawnlist
178
148
  */
179
149
  OnRevertSpawnlist(self: SANDBOX): void;
180
- }
181
150
 
182
- interface SANDBOX {
183
151
  /**
184
152
  * Called when a player saves his changes made to the spawnmenu
185
153
  * @realm client
186
154
  * @source https://wiki.facepunch.com/gmod/SANDBOX:OnSaveSpawnlist
187
155
  */
188
156
  OnSaveSpawnlist(self: SANDBOX): void;
189
- }
190
157
 
191
- interface SANDBOX {
192
158
  /**
193
159
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
194
160
  *
@@ -198,9 +164,7 @@ interface SANDBOX {
198
164
  * @source https://wiki.facepunch.com/gmod/SANDBOX:OpenToolbox
199
165
  */
200
166
  OpenToolbox(self: SANDBOX): void;
201
- }
202
167
 
203
- interface SANDBOX {
204
168
  /**
205
169
  * Called from [GM:HUDPaint](https://wiki.facepunch.com/gmod/GM:HUDPaint); does nothing by default.
206
170
  *
@@ -211,9 +175,7 @@ interface SANDBOX {
211
175
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PaintNotes
212
176
  */
213
177
  PaintNotes(self: SANDBOX): void;
214
- }
215
178
 
216
- interface SANDBOX {
217
179
  /**
218
180
  * Called from [GM:HUDPaint](https://wiki.facepunch.com/gmod/GM:HUDPaint) to draw world tips. By default, enabling cl_drawworldtooltips will stop world tips from being drawn here.
219
181
  * See [Global.AddWorldTip](https://wiki.facepunch.com/gmod/Global.AddWorldTip) for more information.
@@ -225,27 +187,21 @@ interface SANDBOX {
225
187
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PaintWorldTips
226
188
  */
227
189
  PaintWorldTips(self: SANDBOX): void;
228
- }
229
190
 
230
- interface SANDBOX {
231
191
  /**
232
192
  * Called when persistent props are loaded.
233
193
  * @realm server
234
194
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PersistenceLoad
235
195
  */
236
196
  PersistenceLoad(self: SANDBOX, name: string): void;
237
- }
238
197
 
239
- interface SANDBOX {
240
198
  /**
241
199
  * Called when persistent props are saved.
242
200
  * @realm server
243
201
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PersistenceSave
244
202
  */
245
203
  PersistenceSave(self: SANDBOX, name: string): void;
246
- }
247
204
 
248
- interface SANDBOX {
249
205
  /**
250
206
  * Called when a player attempts to give themselves a weapon from the Q menu. (Left mouse clicks on an icon)
251
207
  *
@@ -255,63 +211,49 @@ interface SANDBOX {
255
211
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerGiveSWEP
256
212
  */
257
213
  PlayerGiveSWEP(self: SANDBOX, ply: Player, weapon: string, spawninfo: table): boolean;
258
- }
259
214
 
260
- interface SANDBOX {
261
215
  /**
262
216
  * Called to ask if player allowed to spawn a particular effect or not.
263
217
  * @realm server
264
218
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnEffect
265
219
  */
266
220
  PlayerSpawnEffect(self: SANDBOX, ply: Player, model: string): boolean;
267
- }
268
221
 
269
- interface SANDBOX {
270
222
  /**
271
223
  * Called to ask if player allowed to spawn a particular NPC or not.
272
224
  * @realm server
273
225
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnNPC
274
226
  */
275
227
  PlayerSpawnNPC(self: SANDBOX, ply: Player, npc_type: string, weapon: string): boolean;
276
- }
277
228
 
278
- interface SANDBOX {
279
229
  /**
280
230
  * Called to ask whether player is allowed to spawn a given model. This includes props, effects, and ragdolls and is called before the respective PlayerSpawn* hook.
281
231
  * @realm server
282
232
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnObject
283
233
  */
284
234
  PlayerSpawnObject(self: SANDBOX, ply: Player, model: string, skin: number): boolean;
285
- }
286
235
 
287
- interface SANDBOX {
288
236
  /**
289
237
  * Called when a player attempts to spawn a prop from the Q menu.
290
238
  * @realm server
291
239
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnProp
292
240
  */
293
241
  PlayerSpawnProp(self: SANDBOX, ply: Player, model: string): boolean;
294
- }
295
242
 
296
- interface SANDBOX {
297
243
  /**
298
244
  * Called when a player attempts to spawn a ragdoll from the Q menu.
299
245
  * @realm server
300
246
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnRagdoll
301
247
  */
302
248
  PlayerSpawnRagdoll(self: SANDBOX, ply: Player, model: string): boolean;
303
- }
304
249
 
305
- interface SANDBOX {
306
250
  /**
307
251
  * Called when a player attempts to spawn an Entity from the Q menu.
308
252
  * @realm server
309
253
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnSENT
310
254
  */
311
255
  PlayerSpawnSENT(self: SANDBOX, ply: Player, _class: string): boolean;
312
- }
313
256
 
314
- interface SANDBOX {
315
257
  /**
316
258
  * Called when a player attempts to spawn a weapon from the spawnmenu as an entity on the ground, by middle mouse clicking (mouse wheel clicking) on a weapon icon.
317
259
  *
@@ -323,63 +265,49 @@ interface SANDBOX {
323
265
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnSWEP
324
266
  */
325
267
  PlayerSpawnSWEP(self: SANDBOX, ply: Player, weapon: string, swep: SWEP): boolean;
326
- }
327
268
 
328
- interface SANDBOX {
329
269
  /**
330
270
  * Called to ask if player allowed to spawn a particular vehicle or not.
331
271
  * @realm server
332
272
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnVehicle
333
273
  */
334
274
  PlayerSpawnVehicle(self: SANDBOX, ply: Player, model: string, name: string, table: VehicleTable): boolean;
335
- }
336
275
 
337
- interface SANDBOX {
338
276
  /**
339
277
  * Called after the player spawned an effect.
340
278
  * @realm server
341
279
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedEffect
342
280
  */
343
281
  PlayerSpawnedEffect(self: SANDBOX, ply: Player, model: string, ent: Entity): void;
344
- }
345
282
 
346
- interface SANDBOX {
347
283
  /**
348
284
  * Called after the player spawned an NPC.
349
285
  * @realm server
350
286
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedNPC
351
287
  */
352
288
  PlayerSpawnedNPC(self: SANDBOX, ply: Player, ent: Entity): void;
353
- }
354
289
 
355
- interface SANDBOX {
356
290
  /**
357
291
  * Called when a player has successfully spawned a prop from the Q menu.
358
292
  * @realm server
359
293
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedProp
360
294
  */
361
295
  PlayerSpawnedProp(self: SANDBOX, ply: Player, model: string, entity: Entity): void;
362
- }
363
296
 
364
- interface SANDBOX {
365
297
  /**
366
298
  * Called after the player spawned a ragdoll.
367
299
  * @realm server
368
300
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedRagdoll
369
301
  */
370
302
  PlayerSpawnedRagdoll(self: SANDBOX, ply: Player, model: string, ent: Entity): void;
371
- }
372
303
 
373
- interface SANDBOX {
374
304
  /**
375
305
  * Called after the player has spawned a scripted entity.
376
306
  * @realm server
377
307
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedSENT
378
308
  */
379
309
  PlayerSpawnedSENT(self: SANDBOX, ply: Player, ent: Entity): void;
380
- }
381
310
 
382
- interface SANDBOX {
383
311
  /**
384
312
  * Called after the player has spawned a weapon from the spawnmenu with a middle mouse click (mouse wheel click).
385
313
  *
@@ -390,18 +318,14 @@ interface SANDBOX {
390
318
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedSWEP
391
319
  */
392
320
  PlayerSpawnedSWEP(self: SANDBOX, ply: Player, ent: Entity): void;
393
- }
394
321
 
395
- interface SANDBOX {
396
322
  /**
397
323
  * Called after the player spawned a vehicle.
398
324
  * @realm server
399
325
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedVehicle
400
326
  */
401
327
  PlayerSpawnedVehicle(self: SANDBOX, ply: Player, ent: Entity): void;
402
- }
403
328
 
404
- interface SANDBOX {
405
329
  /**
406
330
  * Called by the spawnmenu when the content tab is generated
407
331
  * **WARNING**: Creating an error in this Hook will result in a completely broken Content Tab
@@ -410,9 +334,7 @@ interface SANDBOX {
410
334
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateContent
411
335
  */
412
336
  PopulateContent(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
413
- }
414
337
 
415
- interface SANDBOX {
416
338
  /**
417
339
  * Called by the spawnmenu when the Entities tab is generated
418
340
  * **WARNING**: Creating an error in this Hook will result in a completely broken Entites Tab
@@ -421,9 +343,7 @@ interface SANDBOX {
421
343
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateEntities
422
344
  */
423
345
  PopulateEntities(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
424
- }
425
346
 
426
- interface SANDBOX {
427
347
  /**
428
348
  * Called by the spawnmenu when the NPCs tab is generated
429
349
  * **WARNING**: Creating an error in this Hook will result in a completely broken NPCs Tab
@@ -432,9 +352,7 @@ interface SANDBOX {
432
352
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateNPCs
433
353
  */
434
354
  PopulateNPCs(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
435
- }
436
355
 
437
- interface SANDBOX {
438
356
  /**
439
357
  * This hook makes the engine load the spawnlist text files.
440
358
  * It calls [spawnmenu.PopulateFromEngineTextFiles](https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromEngineTextFiles) by default.
@@ -443,18 +361,14 @@ interface SANDBOX {
443
361
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulatePropMenu
444
362
  */
445
363
  PopulatePropMenu(self: SANDBOX): void;
446
- }
447
364
 
448
- interface SANDBOX {
449
365
  /**
450
366
  * Add the [Scripted TOOLs](https://wiki.facepunch.com/gmod/TOOL) to the tool menu. You want to call [spawnmenu.AddToolMenuOption](https://wiki.facepunch.com/gmod/spawnmenu.AddToolMenuOption) in this hook.
451
367
  * @realm client
452
368
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateToolMenu
453
369
  */
454
370
  PopulateToolMenu(self: SANDBOX): void;
455
- }
456
371
 
457
- interface SANDBOX {
458
372
  /**
459
373
  * Called by the spawnmenu when the Vehicles tab is generated
460
374
  * **WARNING**: Creating an error in this Hook will result in a completely broken vehicles Tab
@@ -463,9 +377,7 @@ interface SANDBOX {
463
377
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateVehicles
464
378
  */
465
379
  PopulateVehicles(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
466
- }
467
380
 
468
- interface SANDBOX {
469
381
  /**
470
382
  * Called by the spawnmenu when the Weapons tab is generated
471
383
  * **WARNING**: Creating an error in this Hook will result in a completely broken Weapons Tab
@@ -474,45 +386,35 @@ interface SANDBOX {
474
386
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateWeapons
475
387
  */
476
388
  PopulateWeapons(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
477
- }
478
389
 
479
- interface SANDBOX {
480
390
  /**
481
391
  * Called right after the Lua Loaded tool menus are reloaded. This is a good place to set up any [ControlPanel](https://wiki.facepunch.com/gmod/ControlPanel)s.
482
392
  * @realm client
483
393
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PostReloadToolsMenu
484
394
  */
485
395
  PostReloadToolsMenu(self: SANDBOX): void;
486
- }
487
396
 
488
- interface SANDBOX {
489
397
  /**
490
398
  * Called just before registering a Sandbox scripted tool.
491
399
  * @realm shared
492
400
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PreRegisterTOOL
493
401
  */
494
402
  PreRegisterTOOL(self: SANDBOX, tool: TOOL, _class: string): boolean;
495
- }
496
403
 
497
- interface SANDBOX {
498
404
  /**
499
405
  * Called right before the Lua Loaded tool menus are reloaded.
500
406
  * @realm client
501
407
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PreReloadToolsMenu
502
408
  */
503
409
  PreReloadToolsMenu(self: SANDBOX): void;
504
- }
505
410
 
506
- interface SANDBOX {
507
411
  /**
508
412
  * If false is returned then the spawn menu is never created. This saves load times if your mod doesn't actually use the spawn menu for any reason.
509
413
  * @realm client
510
414
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuEnabled
511
415
  */
512
416
  SpawnMenuEnabled(self: SANDBOX): boolean;
513
- }
514
417
 
515
- interface SANDBOX {
516
418
  /**
517
419
  * Called when spawnmenu is trying to be opened.
518
420
  *
@@ -523,9 +425,7 @@ interface SANDBOX {
523
425
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuOpen
524
426
  */
525
427
  SpawnMenuOpen(self: SANDBOX): boolean;
526
- }
527
428
 
528
- interface SANDBOX {
529
429
  /**
530
430
  * Called when the spawnmenu is opened.
531
431
  *
@@ -538,18 +438,14 @@ interface SANDBOX {
538
438
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuOpened
539
439
  */
540
440
  SpawnMenuOpened(self: SANDBOX): void;
541
- }
542
441
 
543
- interface SANDBOX {
544
442
  /**
545
443
  * Called when changes were made to the spawnmenu like creating a new category.
546
444
  * @realm client
547
445
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistContentChanged
548
446
  */
549
447
  SpawnlistContentChanged(self: SANDBOX): void;
550
- }
551
448
 
552
- interface SANDBOX {
553
449
  /**
554
450
  * **INTERNAL**: Use [SANDBOX:SpawnmenuIconMenuOpen](https://wiki.facepunch.com/gmod/SANDBOX:SpawnmenuIconMenuOpen) if you wish to add new options to spawnmenu icon right click menus.
555
451
  *
@@ -560,9 +456,7 @@ interface SANDBOX {
560
456
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistOpenGenericMenu
561
457
  */
562
458
  SpawnlistOpenGenericMenu(self: SANDBOX, canvas: Panel): void;
563
- }
564
459
 
565
- interface SANDBOX {
566
460
  /**
567
461
  * Called when the player opens a context menu by right clicking one of the spawnmenu icons. Either [ContentIcon](https://wiki.facepunch.com/gmod/ContentIcon) or [SpawnIcon](https://wiki.facepunch.com/gmod/SpawnIcon).
568
462
  *
@@ -573,4 +467,3 @@ interface SANDBOX {
573
467
  */
574
468
  SpawnmenuIconMenuOpen(self: SANDBOX, menu: Panel, icon: Panel, contentType: string): void;
575
469
  }
576
-
@@ -13,27 +13,21 @@ interface SaverestoreLib {
13
13
  * @source https://wiki.facepunch.com/gmod/saverestore.AddRestoreHook
14
14
  */
15
15
  AddRestoreHook(identifier: string, callback: (save: IRestore) => void): void;
16
- }
17
16
 
18
- interface SaverestoreLib {
19
17
  /**
20
18
  * Adds a save hook for the Half-Life 2 save system. You can use this to carry data through level transitions in Half-Life 2.
21
19
  * @realm shared
22
20
  * @source https://wiki.facepunch.com/gmod/saverestore.AddSaveHook
23
21
  */
24
22
  AddSaveHook(identifier: string, callback: (save: ISave) => void): void;
25
- }
26
23
 
27
- interface SaverestoreLib {
28
24
  /**
29
25
  * Loads [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable) from the save game file that is being loaded and merges it with the given entitys [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable).
30
26
  * @realm shared
31
27
  * @source https://wiki.facepunch.com/gmod/saverestore.LoadEntity
32
28
  */
33
29
  LoadEntity(ent: Entity, save: IRestore): void;
34
- }
35
30
 
36
- interface SaverestoreLib {
37
31
  /**
38
32
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
39
33
  *
@@ -46,9 +40,7 @@ interface SaverestoreLib {
46
40
  * @source https://wiki.facepunch.com/gmod/saverestore.LoadGlobal
47
41
  */
48
42
  LoadGlobal(save: IRestore): void;
49
- }
50
43
 
51
- interface SaverestoreLib {
52
44
  /**
53
45
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
54
46
  *
@@ -59,9 +51,7 @@ interface SaverestoreLib {
59
51
  * @source https://wiki.facepunch.com/gmod/saverestore.PreRestore
60
52
  */
61
53
  PreRestore(): void;
62
- }
63
54
 
64
- interface SaverestoreLib {
65
55
  /**
66
56
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
67
57
  *
@@ -72,18 +62,14 @@ interface SaverestoreLib {
72
62
  * @source https://wiki.facepunch.com/gmod/saverestore.PreSave
73
63
  */
74
64
  PreSave(): void;
75
- }
76
65
 
77
- interface SaverestoreLib {
78
66
  /**
79
67
  * Reads a table from the save game file that is being loaded.
80
68
  * @realm shared
81
69
  * @source https://wiki.facepunch.com/gmod/saverestore.ReadTable
82
70
  */
83
71
  ReadTable(save: IRestore): table;
84
- }
85
72
 
86
- interface SaverestoreLib {
87
73
  /**
88
74
  * Loads a variable from the save game file that is being loaded.
89
75
  *
@@ -93,18 +79,14 @@ interface SaverestoreLib {
93
79
  * @source https://wiki.facepunch.com/gmod/saverestore.ReadVar
94
80
  */
95
81
  ReadVar(save: IRestore): any;
96
- }
97
82
 
98
- interface SaverestoreLib {
99
83
  /**
100
84
  * Saves entitys [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable) to the save game file that is being saved.
101
85
  * @realm shared
102
86
  * @source https://wiki.facepunch.com/gmod/saverestore.SaveEntity
103
87
  */
104
88
  SaveEntity(ent: Entity, save: ISave): void;
105
- }
106
89
 
107
- interface SaverestoreLib {
108
90
  /**
109
91
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
110
92
  *
@@ -117,27 +99,21 @@ interface SaverestoreLib {
117
99
  * @source https://wiki.facepunch.com/gmod/saverestore.SaveGlobal
118
100
  */
119
101
  SaveGlobal(save: ISave): void;
120
- }
121
102
 
122
- interface SaverestoreLib {
123
103
  /**
124
104
  * Returns how many writable keys are in the given table.
125
105
  * @realm shared
126
106
  * @source https://wiki.facepunch.com/gmod/saverestore.WritableKeysInTable
127
107
  */
128
108
  WritableKeysInTable(table: table): number;
129
- }
130
109
 
131
- interface SaverestoreLib {
132
110
  /**
133
111
  * Write a table to a save game file that is being saved.
134
112
  * @realm shared
135
113
  * @source https://wiki.facepunch.com/gmod/saverestore.WriteTable
136
114
  */
137
115
  WriteTable(table: table, save: ISave): void;
138
- }
139
116
 
140
- interface SaverestoreLib {
141
117
  /**
142
118
  * Writes a variable to the save game file that is being saved.
143
119
  * @realm shared
@@ -145,4 +121,3 @@ interface SaverestoreLib {
145
121
  */
146
122
  WriteVar(value: any, save: ISave): void;
147
123
  }
148
-