@tlua/gmod 1.0.5 → 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 +15 -16
  4. package/types/ai.d.tlua +5 -6
  5. package/types/ai_schedule.d.tlua +0 -1
  6. package/types/ai_task.d.tlua +0 -1
  7. package/types/angle.d.tlua +18 -19
  8. package/types/avatarimage.d.tlua +0 -1
  9. package/types/awesomium.d.tlua +0 -1
  10. package/types/baseclass.d.tlua +1 -3
  11. package/types/bf_read.d.tlua +10 -12
  12. package/types/bit.d.tlua +11 -12
  13. package/types/button.d.tlua +0 -1
  14. package/types/cam.d.tlua +16 -17
  15. package/types/ceffectdata.d.tlua +31 -33
  16. package/types/chat.d.tlua +5 -6
  17. package/types/checkbutton.d.tlua +0 -1
  18. package/types/cleanup.d.tlua +7 -8
  19. package/types/cluaemitter.d.tlua +11 -13
  20. package/types/clualocomotion.d.tlua +39 -41
  21. package/types/cluaparticle.d.tlua +43 -45
  22. package/types/cmovedata.d.tlua +46 -48
  23. package/types/cnavarea.d.tlua +76 -78
  24. package/types/cnavladder.d.tlua +21 -23
  25. package/types/cnewparticleeffect.d.tlua +25 -27
  26. package/types/color.d.tlua +28 -29
  27. package/types/concommand.d.tlua +4 -5
  28. package/types/constraint.d.tlua +28 -29
  29. package/types/construct.d.tlua +1 -2
  30. package/types/contentheader.d.tlua +1 -3
  31. package/types/contenticon.d.tlua +7 -9
  32. package/types/contentsidebar.d.tlua +2 -4
  33. package/types/contentsidebartoolbox.d.tlua +0 -1
  34. package/types/contextbase.d.tlua +2 -4
  35. package/types/controlpanel.d.tlua +11 -14
  36. package/types/controlpresets.d.tlua +11 -13
  37. package/types/convar.d.tlua +15 -17
  38. package/types/cookie.d.tlua +3 -4
  39. package/types/coroutine.d.tlua +7 -8
  40. package/types/crecipientfilter.d.tlua +15 -17
  41. package/types/csent.d.tlua +0 -1
  42. package/types/csoundpatch.d.tlua +13 -15
  43. package/types/ctakedamageinfo.d.tlua +32 -34
  44. package/types/ctrllistbox.d.tlua +0 -1
  45. package/types/ctrlnumpad.d.tlua +5 -7
  46. package/types/cusercmd.d.tlua +26 -28
  47. package/types/custom_entity_fields.d.tlua +0 -1
  48. package/types/cvars.d.tlua +6 -7
  49. package/types/dadjustablemodelpanel.d.tlua +5 -7
  50. package/types/dalphabar.d.tlua +1 -3
  51. package/types/dbinder.d.tlua +2 -4
  52. package/types/dbubblecontainer.d.tlua +0 -2
  53. package/types/dbutton.d.tlua +6 -8
  54. package/types/dcategoryheader.d.tlua +0 -1
  55. package/types/dcategorylist.d.tlua +0 -1
  56. package/types/dcheckbox.d.tlua +3 -5
  57. package/types/dcheckboxlabel.d.tlua +9 -10
  58. package/types/dcollapsiblecategory.d.tlua +21 -23
  59. package/types/dcolorbutton.d.tlua +5 -7
  60. package/types/dcolorcombo.d.tlua +3 -5
  61. package/types/dcolorcube.d.tlua +11 -13
  62. package/types/dcolormixer.d.tlua +25 -27
  63. package/types/dcolorpalette.d.tlua +21 -23
  64. package/types/dcolumnsheet.d.tlua +3 -5
  65. package/types/dcombobox.d.tlua +15 -17
  66. package/types/ddragbase.d.tlua +11 -13
  67. package/types/ddrawer.d.tlua +6 -8
  68. package/types/debug.d.tlua +16 -19
  69. package/types/debugoverlay.d.tlua +11 -12
  70. package/types/dentityproperties.d.tlua +3 -5
  71. package/types/derma.d.tlua +10 -11
  72. package/types/dexpandbutton.d.tlua +1 -3
  73. package/types/dfilebrowser.d.tlua +20 -21
  74. package/types/dform.d.tlua +16 -18
  75. package/types/dframe.d.tlua +24 -25
  76. package/types/dgrid.d.tlua +9 -11
  77. package/types/dhorizontaldivider.d.tlua +18 -20
  78. package/types/dhorizontalscroller.d.tlua +9 -11
  79. package/types/dhscrollbar.d.tlua +9 -11
  80. package/types/dhtml.d.tlua +6 -8
  81. package/types/dhtmlcontrols.d.tlua +5 -6
  82. package/types/diconbrowser.d.tlua +9 -11
  83. package/types/diconlayout.d.tlua +16 -18
  84. package/types/dimage.d.tlua +17 -20
  85. package/types/dimagebutton.d.tlua +9 -10
  86. package/types/dkillicon.d.tlua +0 -1
  87. package/types/dlabel.d.tlua +31 -33
  88. package/types/dlabeleditable.d.tlua +3 -5
  89. package/types/dlabelurl.d.tlua +8 -10
  90. package/types/dlistbox.d.tlua +6 -8
  91. package/types/dlistboxitem.d.tlua +2 -4
  92. package/types/dlistlayout.d.tlua +0 -1
  93. package/types/dlistview.d.tlua +32 -34
  94. package/types/dlistview_column.d.tlua +12 -14
  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 +11 -13
  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 +23 -28
  102. package/types/dmenubar.d.tlua +2 -7
  103. package/types/dmenuoption.d.tlua +11 -13
  104. package/types/dmenuoptioncvar.d.tlua +4 -6
  105. package/types/dmodelpanel.d.tlua +20 -22
  106. package/types/dmodelselect.d.tlua +0 -2
  107. package/types/dmodelselectmulti.d.tlua +0 -2
  108. package/types/dnotify.d.tlua +8 -10
  109. package/types/dnumberscratch.d.tlua +24 -26
  110. package/types/dnumberwang.d.tlua +14 -16
  111. package/types/dnumpad.d.tlua +0 -1
  112. package/types/dnumslider.d.tlua +17 -18
  113. package/types/dpanel.d.tlua +12 -14
  114. package/types/dpanellist.d.tlua +11 -12
  115. package/types/dpaneloverlay.d.tlua +5 -7
  116. package/types/dpanelselect.d.tlua +0 -1
  117. package/types/dpanpanel.d.tlua +4 -6
  118. package/types/dprogress.d.tlua +1 -3
  119. package/types/dproperties.d.tlua +2 -4
  120. package/types/dproperty_boolean.d.tlua +0 -1
  121. package/types/dproperty_combo.d.tlua +1 -3
  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 +3 -5
  125. package/types/dproperty_int.d.tlua +0 -1
  126. package/types/dproperty_vectorcolor.d.tlua +0 -1
  127. package/types/dpropertysheet.d.tlua +15 -17
  128. package/types/dragndrop.d.tlua +10 -11
  129. package/types/draw.d.tlua +10 -12
  130. package/types/drgbpicker.d.tlua +2 -4
  131. package/types/drive.d.tlua +11 -13
  132. package/types/dscrollbargrip.d.tlua +0 -1
  133. package/types/dscrollpanel.d.tlua +10 -11
  134. package/types/dshape.d.tlua +5 -7
  135. package/types/dsizetocontents.d.tlua +3 -5
  136. package/types/dslider.d.tlua +26 -28
  137. package/types/dsprite.d.tlua +7 -9
  138. package/types/dtab.d.tlua +6 -8
  139. package/types/dtextentry.d.tlua +41 -43
  140. package/types/dtilelayout.d.tlua +19 -21
  141. package/types/dtooltip.d.tlua +4 -6
  142. package/types/dtree.d.tlua +14 -16
  143. package/types/dtree_node.d.tlua +66 -68
  144. package/types/dtree_node_button.d.tlua +0 -1
  145. package/types/duplicator.d.tlua +29 -31
  146. package/types/dverticaldivider.d.tlua +21 -23
  147. package/types/dvscrollbar.d.tlua +9 -11
  148. package/types/editablepanel.d.tlua +0 -1
  149. package/types/effect.d.tlua +2 -4
  150. package/types/effects.d.tlua +6 -7
  151. package/types/engine.d.tlua +21 -22
  152. package/types/entity.d.tlua +643 -674
  153. package/types/ents.d.tlua +19 -25
  154. package/types/enums.d.tlua +0 -1
  155. package/types/file.d.tlua +39 -40
  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 +7 -8
  161. package/types/game.d.tlua +39 -40
  162. package/types/gameevent.d.tlua +0 -1
  163. package/types/gamemode.d.tlua +2 -4
  164. package/types/global.d.tlua +0 -18
  165. package/types/gm.d.tlua +266 -268
  166. package/types/gmod.d.tlua +0 -1
  167. package/types/gmsave.d.tlua +4 -5
  168. package/types/gui.d.tlua +21 -22
  169. package/types/gwen.d.tlua +3 -4
  170. package/types/halo.d.tlua +2 -3
  171. package/types/hammer.d.tlua +0 -1
  172. package/types/hook.d.tlua +4 -5
  173. package/types/html.d.tlua +0 -1
  174. package/types/http.d.tlua +1 -2
  175. package/types/iconeditor.d.tlua +9 -11
  176. package/types/igmodaudiochannel.d.tlua +40 -42
  177. package/types/imagecheckbox.d.tlua +2 -4
  178. package/types/imaterial.d.tlua +25 -27
  179. package/types/imesh.d.tlua +4 -6
  180. package/types/input.d.tlua +22 -25
  181. package/types/invalidateinternalentitycache.d.tlua +0 -1
  182. package/types/irestore.d.tlua +8 -10
  183. package/types/isave.d.tlua +8 -10
  184. package/types/itexture.d.tlua +9 -11
  185. package/types/ivideowriter.d.tlua +4 -6
  186. package/types/jit.d.tlua +16 -17
  187. package/types/killicon.d.tlua +7 -8
  188. package/types/label.d.tlua +0 -1
  189. package/types/language.d.tlua +1 -2
  190. package/types/list.d.tlua +8 -9
  191. package/types/makeballoon.d.tlua +0 -1
  192. package/types/markup.d.tlua +2 -3
  193. package/types/markupobject.d.tlua +4 -6
  194. package/types/material.d.tlua +0 -1
  195. package/types/math.d.tlua +83 -84
  196. package/types/matproxy.d.tlua +3 -4
  197. package/types/matselect.d.tlua +9 -11
  198. package/types/menu.d.tlua +0 -1
  199. package/types/menubar.d.tlua +2 -3
  200. package/types/mesh.d.tlua +19 -20
  201. package/types/modelimage.d.tlua +0 -1
  202. package/types/motionsensor.d.tlua +10 -11
  203. package/types/navmesh.d.tlua +26 -27
  204. package/types/net.d.tlua +51 -53
  205. package/types/nextbot.d.tlua +34 -37
  206. package/types/notification.d.tlua +2 -3
  207. package/types/npc.d.tlua +180 -182
  208. package/types/numpad.d.tlua +7 -8
  209. package/types/os.d.tlua +3 -5
  210. package/types/package.d.tlua +0 -1
  211. package/types/panel.d.tlua +329 -331
  212. package/types/panellist.d.tlua +0 -1
  213. package/types/pathfollower.d.tlua +30 -32
  214. package/types/permissions.d.tlua +6 -7
  215. package/types/physcollide.d.tlua +2 -4
  216. package/types/physenv.d.tlua +11 -12
  217. package/types/physobj.d.tlua +77 -79
  218. package/types/pixelvis_handle_t.d.tlua +0 -1
  219. package/types/player.d.tlua +288 -293
  220. package/types/player_manager.d.tlua +13 -14
  221. package/types/preseteditor.d.tlua +0 -1
  222. package/types/presets.d.tlua +6 -7
  223. package/types/projectedtexture.d.tlua +47 -49
  224. package/types/properties.d.tlua +5 -6
  225. package/types/propselect.d.tlua +3 -5
  226. package/types/radiobutton.d.tlua +0 -1
  227. package/types/render.d.tlua +142 -143
  228. package/types/resource.d.tlua +2 -3
  229. package/types/richtext.d.tlua +0 -1
  230. package/types/sandbox.d.tlua +52 -54
  231. package/types/saverestore.d.tlua +12 -13
  232. package/types/schedule.d.tlua +5 -7
  233. package/types/scripted_ents.d.tlua +9 -12
  234. package/types/search.d.tlua +1 -2
  235. package/types/serverlist.d.tlua +7 -8
  236. package/types/slidebar.d.tlua +0 -1
  237. package/types/slider.d.tlua +0 -1
  238. package/types/sound.d.tlua +10 -11
  239. package/types/spawnicon.d.tlua +6 -8
  240. package/types/spawnmenu.d.tlua +23 -25
  241. package/types/spawnmenucontentpanel.d.tlua +3 -5
  242. package/types/sql.d.tlua +9 -10
  243. package/types/stack.d.tlua +4 -6
  244. package/types/steamworks.d.tlua +18 -19
  245. package/types/string.d.tlua +46 -50
  246. package/types/structures.d.tlua +0 -7
  247. package/types/surface.d.tlua +34 -35
  248. package/types/surfaceinfo.d.tlua +4 -6
  249. package/types/system.d.tlua +10 -11
  250. package/types/table.d.tlua +45 -48
  251. package/types/task.d.tlua +8 -10
  252. package/types/team.d.tlua +19 -20
  253. package/types/textentry.d.tlua +0 -1
  254. package/types/tgaimage.d.tlua +0 -1
  255. package/types/timer.d.tlua +14 -15
  256. package/types/tool.d.tlua +42 -46
  257. package/types/ugcpublishwindow.d.tlua +7 -9
  258. package/types/umsg.d.tlua +12 -13
  259. package/types/undo.d.tlua +10 -11
  260. package/types/urllabel.d.tlua +0 -1
  261. package/types/usermessage.d.tlua +2 -3
  262. package/types/utf8.d.tlua +7 -8
  263. package/types/util.d.tlua +90 -95
  264. package/types/vector.d.tlua +36 -37
  265. package/types/vehicle.d.tlua +48 -51
  266. package/types/vgui.d.tlua +14 -19
  267. package/types/video.d.tlua +0 -1
  268. package/types/vmatrix.d.tlua +35 -36
  269. package/types/weapon.d.tlua +81 -84
  270. package/types/weapons.d.tlua +5 -7
  271. package/types/widgets.d.tlua +1 -2
  272. package/types/workshopfilebase.d.tlua +4 -6
@@ -27,6 +27,7 @@ interface ResourceLib {
27
27
  * @source https://wiki.facepunch.com/gmod/resource.AddFile
28
28
  */
29
29
  AddFile(path: string): void;
30
+
30
31
  /**
31
32
  * Adds the specified file to the files the client should download from the server.
32
33
  *
@@ -44,6 +45,7 @@ interface ResourceLib {
44
45
  * @source https://wiki.facepunch.com/gmod/resource.AddSingleFile
45
46
  */
46
47
  AddSingleFile(path: string): void;
48
+
47
49
  /**
48
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.
49
51
  *
@@ -64,6 +66,3 @@ interface ResourceLib {
64
66
  */
65
67
  AddWorkshop(workshopid: string): void;
66
68
  }
67
-
68
-
69
-
@@ -14,4 +14,3 @@
14
14
  * @source https://wiki.facepunch.com/gmod/RichText
15
15
  */
16
16
  interface RichText extends Panel {}
17
-
@@ -30,6 +30,7 @@ interface SANDBOX extends GM {
30
30
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddGamemodeToolMenuCategories
31
31
  */
32
32
  AddGamemodeToolMenuCategories(self: SANDBOX): void;
33
+
33
34
  /**
34
35
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
35
36
  *
@@ -42,42 +43,49 @@ interface SANDBOX extends GM {
42
43
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddGamemodeToolMenuTabs
43
44
  */
44
45
  AddGamemodeToolMenuTabs(self: SANDBOX): void;
46
+
45
47
  /**
46
48
  * This hook is used to add new categories to spawnmenu tool tabs.
47
49
  * @realm client
48
50
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuCategories
49
51
  */
50
52
  AddToolMenuCategories(self: SANDBOX): void;
53
+
51
54
  /**
52
55
  * This hook is used to add new tool tabs to spawnmenu.
53
56
  * @realm client
54
57
  * @source https://wiki.facepunch.com/gmod/SANDBOX:AddToolMenuTabs
55
58
  */
56
59
  AddToolMenuTabs(self: SANDBOX): void;
60
+
57
61
  /**
58
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.
59
63
  * @realm shared
60
64
  * @source https://wiki.facepunch.com/gmod/SANDBOX:CanArmDupe
61
65
  */
62
66
  CanArmDupe(self: SANDBOX, ply: Player): (boolean, string);
67
+
63
68
  /**
64
69
  * Called when a player attempts to drive a prop via Prop Drive
65
70
  * @realm shared
66
71
  * @source https://wiki.facepunch.com/gmod/SANDBOX:CanDrive
67
72
  */
68
73
  CanDrive(self: SANDBOX, ply: Player, ent: Entity): boolean;
74
+
69
75
  /**
70
76
  * Called when a player attempts to fire their tool gun. Return true to specifically allow the attempt, false to block it.
71
77
  * @realm shared
72
78
  * @source https://wiki.facepunch.com/gmod/SANDBOX:CanTool
73
79
  */
74
80
  CanTool(self: SANDBOX, ply: Player, tr: TraceResult, toolname: string, tool: table, button: number): boolean;
81
+
75
82
  /**
76
83
  * Called when player selects an item on the spawnmenu sidebar at the left.
77
84
  * @realm client
78
85
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContentSidebarSelection
79
86
  */
80
87
  ContentSidebarSelection(self: SANDBOX, parent: Panel, node: Panel): void;
88
+
81
89
  /**
82
90
  * Called when the context menu is supposedly closed.
83
91
  *
@@ -90,12 +98,14 @@ interface SANDBOX extends GM {
90
98
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuClosed
91
99
  */
92
100
  ContextMenuClosed(self: SANDBOX): void;
101
+
93
102
  /**
94
103
  * Called when the context menu is created.
95
104
  * @realm client
96
105
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuCreated
97
106
  */
98
107
  ContextMenuCreated(self: SANDBOX, g_ContextMenu: Panel): void;
108
+
99
109
  /**
100
110
  * Allows to prevent the creation of the context menu. If the context menu is already created, this will have no effect.
101
111
  *
@@ -103,12 +113,14 @@ interface SANDBOX extends GM {
103
113
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuEnabled
104
114
  */
105
115
  ContextMenuEnabled(self: SANDBOX): boolean;
116
+
106
117
  /**
107
118
  * Called when the context menu is trying to be opened.
108
119
  * @realm client
109
120
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuOpen
110
121
  */
111
122
  ContextMenuOpen(self: SANDBOX): boolean;
123
+
112
124
  /**
113
125
  * Called when the context menu is supposedly opened.
114
126
  *
@@ -121,24 +133,28 @@ interface SANDBOX extends GM {
121
133
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuOpened
122
134
  */
123
135
  ContextMenuOpened(self: SANDBOX): void;
136
+
124
137
  /**
125
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.
126
139
  * @realm client
127
140
  * @source https://wiki.facepunch.com/gmod/SANDBOX:ContextMenuShowTool
128
141
  */
129
142
  ContextMenuShowTool(self: SANDBOX): boolean;
143
+
130
144
  /**
131
145
  * Called when the Client reverts spawnlist changes
132
146
  * @realm client
133
147
  * @source https://wiki.facepunch.com/gmod/SANDBOX:OnRevertSpawnlist
134
148
  */
135
149
  OnRevertSpawnlist(self: SANDBOX): void;
150
+
136
151
  /**
137
152
  * Called when a player saves his changes made to the spawnmenu
138
153
  * @realm client
139
154
  * @source https://wiki.facepunch.com/gmod/SANDBOX:OnSaveSpawnlist
140
155
  */
141
156
  OnSaveSpawnlist(self: SANDBOX): void;
157
+
142
158
  /**
143
159
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
144
160
  *
@@ -148,6 +164,7 @@ interface SANDBOX extends GM {
148
164
  * @source https://wiki.facepunch.com/gmod/SANDBOX:OpenToolbox
149
165
  */
150
166
  OpenToolbox(self: SANDBOX): void;
167
+
151
168
  /**
152
169
  * Called from [GM:HUDPaint](https://wiki.facepunch.com/gmod/GM:HUDPaint); does nothing by default.
153
170
  *
@@ -158,6 +175,7 @@ interface SANDBOX extends GM {
158
175
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PaintNotes
159
176
  */
160
177
  PaintNotes(self: SANDBOX): void;
178
+
161
179
  /**
162
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.
163
181
  * See [Global.AddWorldTip](https://wiki.facepunch.com/gmod/Global.AddWorldTip) for more information.
@@ -169,18 +187,21 @@ interface SANDBOX extends GM {
169
187
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PaintWorldTips
170
188
  */
171
189
  PaintWorldTips(self: SANDBOX): void;
190
+
172
191
  /**
173
192
  * Called when persistent props are loaded.
174
193
  * @realm server
175
194
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PersistenceLoad
176
195
  */
177
196
  PersistenceLoad(self: SANDBOX, name: string): void;
197
+
178
198
  /**
179
199
  * Called when persistent props are saved.
180
200
  * @realm server
181
201
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PersistenceSave
182
202
  */
183
203
  PersistenceSave(self: SANDBOX, name: string): void;
204
+
184
205
  /**
185
206
  * Called when a player attempts to give themselves a weapon from the Q menu. (Left mouse clicks on an icon)
186
207
  *
@@ -190,42 +211,49 @@ interface SANDBOX extends GM {
190
211
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerGiveSWEP
191
212
  */
192
213
  PlayerGiveSWEP(self: SANDBOX, ply: Player, weapon: string, spawninfo: table): boolean;
214
+
193
215
  /**
194
216
  * Called to ask if player allowed to spawn a particular effect or not.
195
217
  * @realm server
196
218
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnEffect
197
219
  */
198
220
  PlayerSpawnEffect(self: SANDBOX, ply: Player, model: string): boolean;
221
+
199
222
  /**
200
223
  * Called to ask if player allowed to spawn a particular NPC or not.
201
224
  * @realm server
202
225
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnNPC
203
226
  */
204
227
  PlayerSpawnNPC(self: SANDBOX, ply: Player, npc_type: string, weapon: string): boolean;
228
+
205
229
  /**
206
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.
207
231
  * @realm server
208
232
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnObject
209
233
  */
210
234
  PlayerSpawnObject(self: SANDBOX, ply: Player, model: string, skin: number): boolean;
235
+
211
236
  /**
212
237
  * Called when a player attempts to spawn a prop from the Q menu.
213
238
  * @realm server
214
239
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnProp
215
240
  */
216
241
  PlayerSpawnProp(self: SANDBOX, ply: Player, model: string): boolean;
242
+
217
243
  /**
218
244
  * Called when a player attempts to spawn a ragdoll from the Q menu.
219
245
  * @realm server
220
246
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnRagdoll
221
247
  */
222
248
  PlayerSpawnRagdoll(self: SANDBOX, ply: Player, model: string): boolean;
249
+
223
250
  /**
224
251
  * Called when a player attempts to spawn an Entity from the Q menu.
225
252
  * @realm server
226
253
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnSENT
227
254
  */
228
255
  PlayerSpawnSENT(self: SANDBOX, ply: Player, _class: string): boolean;
256
+
229
257
  /**
230
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.
231
259
  *
@@ -237,42 +265,49 @@ interface SANDBOX extends GM {
237
265
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnSWEP
238
266
  */
239
267
  PlayerSpawnSWEP(self: SANDBOX, ply: Player, weapon: string, swep: SWEP): boolean;
268
+
240
269
  /**
241
270
  * Called to ask if player allowed to spawn a particular vehicle or not.
242
271
  * @realm server
243
272
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnVehicle
244
273
  */
245
274
  PlayerSpawnVehicle(self: SANDBOX, ply: Player, model: string, name: string, table: VehicleTable): boolean;
275
+
246
276
  /**
247
277
  * Called after the player spawned an effect.
248
278
  * @realm server
249
279
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedEffect
250
280
  */
251
281
  PlayerSpawnedEffect(self: SANDBOX, ply: Player, model: string, ent: Entity): void;
282
+
252
283
  /**
253
284
  * Called after the player spawned an NPC.
254
285
  * @realm server
255
286
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedNPC
256
287
  */
257
288
  PlayerSpawnedNPC(self: SANDBOX, ply: Player, ent: Entity): void;
289
+
258
290
  /**
259
291
  * Called when a player has successfully spawned a prop from the Q menu.
260
292
  * @realm server
261
293
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedProp
262
294
  */
263
295
  PlayerSpawnedProp(self: SANDBOX, ply: Player, model: string, entity: Entity): void;
296
+
264
297
  /**
265
298
  * Called after the player spawned a ragdoll.
266
299
  * @realm server
267
300
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedRagdoll
268
301
  */
269
302
  PlayerSpawnedRagdoll(self: SANDBOX, ply: Player, model: string, ent: Entity): void;
303
+
270
304
  /**
271
305
  * Called after the player has spawned a scripted entity.
272
306
  * @realm server
273
307
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedSENT
274
308
  */
275
309
  PlayerSpawnedSENT(self: SANDBOX, ply: Player, ent: Entity): void;
310
+
276
311
  /**
277
312
  * Called after the player has spawned a weapon from the spawnmenu with a middle mouse click (mouse wheel click).
278
313
  *
@@ -283,12 +318,14 @@ interface SANDBOX extends GM {
283
318
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedSWEP
284
319
  */
285
320
  PlayerSpawnedSWEP(self: SANDBOX, ply: Player, ent: Entity): void;
321
+
286
322
  /**
287
323
  * Called after the player spawned a vehicle.
288
324
  * @realm server
289
325
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PlayerSpawnedVehicle
290
326
  */
291
327
  PlayerSpawnedVehicle(self: SANDBOX, ply: Player, ent: Entity): void;
328
+
292
329
  /**
293
330
  * Called by the spawnmenu when the content tab is generated
294
331
  * **WARNING**: Creating an error in this Hook will result in a completely broken Content Tab
@@ -297,6 +334,7 @@ interface SANDBOX extends GM {
297
334
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateContent
298
335
  */
299
336
  PopulateContent(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
337
+
300
338
  /**
301
339
  * Called by the spawnmenu when the Entities tab is generated
302
340
  * **WARNING**: Creating an error in this Hook will result in a completely broken Entites Tab
@@ -305,6 +343,7 @@ interface SANDBOX extends GM {
305
343
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateEntities
306
344
  */
307
345
  PopulateEntities(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
346
+
308
347
  /**
309
348
  * Called by the spawnmenu when the NPCs tab is generated
310
349
  * **WARNING**: Creating an error in this Hook will result in a completely broken NPCs Tab
@@ -313,6 +352,7 @@ interface SANDBOX extends GM {
313
352
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateNPCs
314
353
  */
315
354
  PopulateNPCs(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
355
+
316
356
  /**
317
357
  * This hook makes the engine load the spawnlist text files.
318
358
  * It calls [spawnmenu.PopulateFromEngineTextFiles](https://wiki.facepunch.com/gmod/spawnmenu.PopulateFromEngineTextFiles) by default.
@@ -321,12 +361,14 @@ interface SANDBOX extends GM {
321
361
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulatePropMenu
322
362
  */
323
363
  PopulatePropMenu(self: SANDBOX): void;
364
+
324
365
  /**
325
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.
326
367
  * @realm client
327
368
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateToolMenu
328
369
  */
329
370
  PopulateToolMenu(self: SANDBOX): void;
371
+
330
372
  /**
331
373
  * Called by the spawnmenu when the Vehicles tab is generated
332
374
  * **WARNING**: Creating an error in this Hook will result in a completely broken vehicles Tab
@@ -335,6 +377,7 @@ interface SANDBOX extends GM {
335
377
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateVehicles
336
378
  */
337
379
  PopulateVehicles(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
380
+
338
381
  /**
339
382
  * Called by the spawnmenu when the Weapons tab is generated
340
383
  * **WARNING**: Creating an error in this Hook will result in a completely broken Weapons Tab
@@ -343,30 +386,35 @@ interface SANDBOX extends GM {
343
386
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PopulateWeapons
344
387
  */
345
388
  PopulateWeapons(self: SANDBOX, pnlContent: Panel, tree: Panel, node: Panel): void;
389
+
346
390
  /**
347
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.
348
392
  * @realm client
349
393
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PostReloadToolsMenu
350
394
  */
351
395
  PostReloadToolsMenu(self: SANDBOX): void;
396
+
352
397
  /**
353
398
  * Called just before registering a Sandbox scripted tool.
354
399
  * @realm shared
355
400
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PreRegisterTOOL
356
401
  */
357
402
  PreRegisterTOOL(self: SANDBOX, tool: TOOL, _class: string): boolean;
403
+
358
404
  /**
359
405
  * Called right before the Lua Loaded tool menus are reloaded.
360
406
  * @realm client
361
407
  * @source https://wiki.facepunch.com/gmod/SANDBOX:PreReloadToolsMenu
362
408
  */
363
409
  PreReloadToolsMenu(self: SANDBOX): void;
410
+
364
411
  /**
365
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.
366
413
  * @realm client
367
414
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuEnabled
368
415
  */
369
416
  SpawnMenuEnabled(self: SANDBOX): boolean;
417
+
370
418
  /**
371
419
  * Called when spawnmenu is trying to be opened.
372
420
  *
@@ -377,6 +425,7 @@ interface SANDBOX extends GM {
377
425
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuOpen
378
426
  */
379
427
  SpawnMenuOpen(self: SANDBOX): boolean;
428
+
380
429
  /**
381
430
  * Called when the spawnmenu is opened.
382
431
  *
@@ -389,12 +438,14 @@ interface SANDBOX extends GM {
389
438
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnMenuOpened
390
439
  */
391
440
  SpawnMenuOpened(self: SANDBOX): void;
441
+
392
442
  /**
393
443
  * Called when changes were made to the spawnmenu like creating a new category.
394
444
  * @realm client
395
445
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistContentChanged
396
446
  */
397
447
  SpawnlistContentChanged(self: SANDBOX): void;
448
+
398
449
  /**
399
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.
400
451
  *
@@ -405,6 +456,7 @@ interface SANDBOX extends GM {
405
456
  * @source https://wiki.facepunch.com/gmod/SANDBOX:SpawnlistOpenGenericMenu
406
457
  */
407
458
  SpawnlistOpenGenericMenu(self: SANDBOX, canvas: Panel): void;
459
+
408
460
  /**
409
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).
410
462
  *
@@ -415,57 +467,3 @@ interface SANDBOX extends GM {
415
467
  */
416
468
  SpawnmenuIconMenuOpen(self: SANDBOX, menu: Panel, icon: Panel, contentType: string): void;
417
469
  }
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
@@ -13,18 +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
+
16
17
  /**
17
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.
18
19
  * @realm shared
19
20
  * @source https://wiki.facepunch.com/gmod/saverestore.AddSaveHook
20
21
  */
21
22
  AddSaveHook(identifier: string, callback: (save: ISave) => void): void;
23
+
22
24
  /**
23
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).
24
26
  * @realm shared
25
27
  * @source https://wiki.facepunch.com/gmod/saverestore.LoadEntity
26
28
  */
27
29
  LoadEntity(ent: Entity, save: IRestore): void;
30
+
28
31
  /**
29
32
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
30
33
  *
@@ -37,6 +40,7 @@ interface SaverestoreLib {
37
40
  * @source https://wiki.facepunch.com/gmod/saverestore.LoadGlobal
38
41
  */
39
42
  LoadGlobal(save: IRestore): void;
43
+
40
44
  /**
41
45
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
42
46
  *
@@ -47,6 +51,7 @@ interface SaverestoreLib {
47
51
  * @source https://wiki.facepunch.com/gmod/saverestore.PreRestore
48
52
  */
49
53
  PreRestore(): void;
54
+
50
55
  /**
51
56
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
52
57
  *
@@ -57,12 +62,14 @@ interface SaverestoreLib {
57
62
  * @source https://wiki.facepunch.com/gmod/saverestore.PreSave
58
63
  */
59
64
  PreSave(): void;
65
+
60
66
  /**
61
67
  * Reads a table from the save game file that is being loaded.
62
68
  * @realm shared
63
69
  * @source https://wiki.facepunch.com/gmod/saverestore.ReadTable
64
70
  */
65
71
  ReadTable(save: IRestore): table;
72
+
66
73
  /**
67
74
  * Loads a variable from the save game file that is being loaded.
68
75
  *
@@ -72,12 +79,14 @@ interface SaverestoreLib {
72
79
  * @source https://wiki.facepunch.com/gmod/saverestore.ReadVar
73
80
  */
74
81
  ReadVar(save: IRestore): any;
82
+
75
83
  /**
76
84
  * Saves entitys [Entity:GetTable](https://wiki.facepunch.com/gmod/Entity:GetTable) to the save game file that is being saved.
77
85
  * @realm shared
78
86
  * @source https://wiki.facepunch.com/gmod/saverestore.SaveEntity
79
87
  */
80
88
  SaveEntity(ent: Entity, save: ISave): void;
89
+
81
90
  /**
82
91
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
83
92
  *
@@ -90,18 +99,21 @@ interface SaverestoreLib {
90
99
  * @source https://wiki.facepunch.com/gmod/saverestore.SaveGlobal
91
100
  */
92
101
  SaveGlobal(save: ISave): void;
102
+
93
103
  /**
94
104
  * Returns how many writable keys are in the given table.
95
105
  * @realm shared
96
106
  * @source https://wiki.facepunch.com/gmod/saverestore.WritableKeysInTable
97
107
  */
98
108
  WritableKeysInTable(table: table): number;
109
+
99
110
  /**
100
111
  * Write a table to a save game file that is being saved.
101
112
  * @realm shared
102
113
  * @source https://wiki.facepunch.com/gmod/saverestore.WriteTable
103
114
  */
104
115
  WriteTable(table: table, save: ISave): void;
116
+
105
117
  /**
106
118
  * Writes a variable to the save game file that is being saved.
107
119
  * @realm shared
@@ -109,16 +121,3 @@ interface SaverestoreLib {
109
121
  */
110
122
  WriteVar(value: any, save: ISave): void;
111
123
  }
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
@@ -14,6 +14,7 @@ interface Schedule {
14
14
  * @source https://wiki.facepunch.com/gmod/Schedule:AddTask
15
15
  */
16
16
  AddTask(self: Schedule, taskname: string, taskdata: any): void;
17
+
17
18
  /**
18
19
  * Adds a task to the schedule with completely custom function names.
19
20
  *
@@ -23,18 +24,21 @@ interface Schedule {
23
24
  * @source https://wiki.facepunch.com/gmod/Schedule:AddTaskEx
24
25
  */
25
26
  AddTaskEx(self: Schedule, start: string, run: string, data: number): void;
27
+
26
28
  /**
27
29
  * Adds an engine task to the schedule.
28
30
  * @realm server
29
31
  * @source https://wiki.facepunch.com/gmod/Schedule:EngTask
30
32
  */
31
33
  EngTask(self: Schedule, taskname: string, taskdata: number): void;
34
+
32
35
  /**
33
36
  * Returns the task at the given index.
34
37
  * @realm server
35
38
  * @source https://wiki.facepunch.com/gmod/Schedule:GetTask
36
39
  */
37
40
  GetTask(self: Schedule, num: number): void;
41
+
38
42
  /**
39
43
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
40
44
  * Initialises the Schedule. Called by [ai_schedule.New](https://wiki.facepunch.com/gmod/ai_schedule.New) when the Schedule is created.
@@ -42,6 +46,7 @@ interface Schedule {
42
46
  * @source https://wiki.facepunch.com/gmod/Schedule:Init
43
47
  */
44
48
  Init(self: Schedule, debugName: string): void;
49
+
45
50
  /**
46
51
  * Returns the number of tasks in the schedule.
47
52
  * @realm server
@@ -49,10 +54,3 @@ interface Schedule {
49
54
  */
50
55
  NumTasks(self: Schedule): number;
51
56
  }
52
-
53
-
54
-
55
-
56
-
57
-
58
-
@@ -13,6 +13,7 @@ interface Scripted_entsLib {
13
13
  * @source https://wiki.facepunch.com/gmod/scripted_ents.Alias
14
14
  */
15
15
  Alias(alias: string, classname: string): void;
16
+
16
17
  /**
17
18
  * Returns a copy of the ENT table for a class, including functions defined by
18
19
  * the base class.
@@ -27,12 +28,14 @@ interface Scripted_entsLib {
27
28
  * @source https://wiki.facepunch.com/gmod/scripted_ents.Get
28
29
  */
29
30
  Get(classname: string): table;
31
+
30
32
  /**
31
33
  * Returns a copy of the list of all ENT tables registered
32
34
  * @realm shared
33
35
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetList
34
36
  */
35
37
  GetList(): Table<string, table>;
38
+
36
39
  /**
37
40
  * Retrieves a member of an entity's table.
38
41
  *
@@ -43,30 +46,35 @@ interface Scripted_entsLib {
43
46
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetMember
44
47
  */
45
48
  GetMember(classname: string, name: string): any;
49
+
46
50
  /**
47
51
  * Returns a list of all ENT tables which contain ENT.Spawnable
48
52
  * @realm shared
49
53
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetSpawnable
50
54
  */
51
55
  GetSpawnable(): table;
56
+
52
57
  /**
53
58
  * Returns the actual ENT table for a class. Modifying functions/variables in this table will change newly spawned entities
54
59
  * @realm shared
55
60
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetStored
56
61
  */
57
62
  GetStored(classname: string): table;
63
+
58
64
  /**
59
65
  * Returns the 'type' of a class, this will one of the following: 'anim', 'ai', 'brush', 'point'.
60
66
  * @realm shared
61
67
  * @source https://wiki.facepunch.com/gmod/scripted_ents.GetType
62
68
  */
63
69
  GetType(classname: string): string;
70
+
64
71
  /**
65
72
  * Checks if name is based on base
66
73
  * @realm shared
67
74
  * @source https://wiki.facepunch.com/gmod/scripted_ents.IsBasedOn
68
75
  */
69
76
  IsBasedOn(name: string, base: string): boolean;
77
+
70
78
  /**
71
79
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
72
80
  *
@@ -82,6 +90,7 @@ interface Scripted_entsLib {
82
90
  * @source https://wiki.facepunch.com/gmod/scripted_ents.OnLoaded
83
91
  */
84
92
  OnLoaded(): void;
93
+
85
94
  /**
86
95
  * Registers an ENT table with a classname. Reregistering an existing classname will automatically update the functions of all existing entities of that class.
87
96
  *
@@ -92,15 +101,3 @@ interface Scripted_entsLib {
92
101
  */
93
102
  Register(ENT: ENT, classname: string): void;
94
103
  }
95
-
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
-
106
-