@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
package/types/game.d.tlua CHANGED
@@ -21,6 +21,7 @@ interface GameLib {
21
21
  * @source https://wiki.facepunch.com/gmod/game.AddAmmoType
22
22
  */
23
23
  AddAmmoType(ammoData: AmmoData): void;
24
+
24
25
  /**
25
26
  * Registers a new decal.
26
27
  *
@@ -31,6 +32,7 @@ interface GameLib {
31
32
  * @source https://wiki.facepunch.com/gmod/game.AddDecal
32
33
  */
33
34
  AddDecal(decalName: string, materialName: string): void;
35
+
34
36
  /**
35
37
  * Loads a particle file. Individual particle systems will still need to be precached with [Global.PrecacheParticleSystem](https://wiki.facepunch.com/gmod/Global.PrecacheParticleSystem).
36
38
  *
@@ -41,6 +43,7 @@ interface GameLib {
41
43
  * @source https://wiki.facepunch.com/gmod/game.AddParticles
42
44
  */
43
45
  AddParticles(particleFileName: string): void;
46
+
44
47
  /**
45
48
  * **INTERNAL**: Consider using [game.GetAmmoTypes](https://wiki.facepunch.com/gmod/game.GetAmmoTypes) and [game.GetAmmoData](https://wiki.facepunch.com/gmod/game.GetAmmoData) instead.
46
49
  *
@@ -50,6 +53,7 @@ interface GameLib {
50
53
  * @source https://wiki.facepunch.com/gmod/game.BuildAmmoTypes
51
54
  */
52
55
  BuildAmmoTypes(): table;
56
+
53
57
  /**
54
58
  * Removes most entities, and then respawns entities created by the map, as if the map was just loaded.
55
59
  *
@@ -69,6 +73,7 @@ interface GameLib {
69
73
  * @source https://wiki.facepunch.com/gmod/game.CleanUpMap
70
74
  */
71
75
  CleanUpMap(dontSendToClients?: boolean, extraFilters?: table, callback?: function): void;
76
+
72
77
  /**
73
78
  * Runs a console command.
74
79
  * Make sure to add a newline ("\n") at the end of the command.
@@ -82,6 +87,7 @@ interface GameLib {
82
87
  * @source https://wiki.facepunch.com/gmod/game.ConsoleCommand
83
88
  */
84
89
  ConsoleCommand(stringCommand: string): void;
90
+
85
91
  /**
86
92
  * Returns information about the currently active 3D skybox.
87
93
  *
@@ -89,24 +95,28 @@ interface GameLib {
89
95
  * @source https://wiki.facepunch.com/gmod/game.Get3DSkyboxInfo
90
96
  */
91
97
  Get3DSkyboxInfo(): Sky3DParams[];
98
+
92
99
  /**
93
100
  * Returns the damage type of given ammo type.
94
101
  * @realm shared
95
102
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoDamageType
96
103
  */
97
104
  GetAmmoDamageType(id: number): number;
105
+
98
106
  /**
99
107
  * Returns the [Structures/AmmoData](https://wiki.facepunch.com/gmod/Structures/AmmoData) for given ID.
100
108
  * @realm shared
101
109
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoData
102
110
  */
103
111
  GetAmmoData(id: number): AmmoData;
112
+
104
113
  /**
105
114
  * Returns the ammo bullet force that is applied when an entity is hit by a bullet of given ammo type.
106
115
  * @realm shared
107
116
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoForce
108
117
  */
109
118
  GetAmmoForce(id: number): number;
119
+
110
120
  /**
111
121
  * Returns the ammo type ID for given ammo type name.
112
122
  *
@@ -116,6 +126,7 @@ interface GameLib {
116
126
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoID
117
127
  */
118
128
  GetAmmoID(name: string): number;
129
+
119
130
  /**
120
131
  * Returns the real maximum amount of ammo of given ammo ID, regardless of the setting of `gmod_maxammo` convar.
121
132
  *
@@ -123,12 +134,14 @@ interface GameLib {
123
134
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoMax
124
135
  */
125
136
  GetAmmoMax(id: number): number;
137
+
126
138
  /**
127
139
  * Returns the damage given ammo type should do to NPCs.
128
140
  * @realm shared
129
141
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoNPCDamage
130
142
  */
131
143
  GetAmmoNPCDamage(id: number): number;
144
+
132
145
  /**
133
146
  * Returns the ammo name for given ammo type ID.
134
147
  *
@@ -138,18 +151,21 @@ interface GameLib {
138
151
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoName
139
152
  */
140
153
  GetAmmoName(id: number): string;
154
+
141
155
  /**
142
156
  * Returns the damage given ammo type should do to players.
143
157
  * @realm shared
144
158
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoPlayerDamage
145
159
  */
146
160
  GetAmmoPlayerDamage(id: number): number;
161
+
147
162
  /**
148
163
  * Returns a list of all ammo types currently registered.
149
164
  * @realm shared
150
165
  * @source https://wiki.facepunch.com/gmod/game.GetAmmoTypes
151
166
  */
152
167
  GetAmmoTypes(): Table<number, string>;
168
+
153
169
  /**
154
170
  * Returns the counter of a Global State.
155
171
  *
@@ -159,6 +175,7 @@ interface GameLib {
159
175
  * @source https://wiki.facepunch.com/gmod/game.GetGlobalCounter
160
176
  */
161
177
  GetGlobalCounter(name: string): number;
178
+
162
179
  /**
163
180
  * Returns whether a Global State is off, active or dead ( inactive ).
164
181
  *
@@ -168,6 +185,7 @@ interface GameLib {
168
185
  * @source https://wiki.facepunch.com/gmod/game.GetGlobalState
169
186
  */
170
187
  GetGlobalState(name: string): number;
188
+
171
189
  /**
172
190
  * Returns the public IP address and port of the current server. This will return the IP/port that you are connecting through when ran clientside.
173
191
  * **NOTE**: Returns "loopback" in singleplayer.
@@ -179,6 +197,7 @@ interface GameLib {
179
197
  * @source https://wiki.facepunch.com/gmod/game.GetIPAddress
180
198
  */
181
199
  GetIPAddress(): string;
200
+
182
201
  /**
183
202
  * Returns the name of the current map, without a file extension.
184
203
  * On the menu state, returns "menu".
@@ -189,6 +208,7 @@ interface GameLib {
189
208
  * @source https://wiki.facepunch.com/gmod/game.GetMap
190
209
  */
191
210
  GetMap(): string;
211
+
192
212
  /**
193
213
  * Returns the current map change count for the server.
194
214
  *
@@ -198,12 +218,14 @@ interface GameLib {
198
218
  * @source https://wiki.facepunch.com/gmod/game.GetMapChangeCount
199
219
  */
200
220
  GetMapChangeCount(): number;
221
+
201
222
  /**
202
223
  * Returns the next map that would be loaded according to the file that is set by the mapcyclefile convar.
203
224
  * @realm server
204
225
  * @source https://wiki.facepunch.com/gmod/game.GetMapNext
205
226
  */
206
227
  GetMapNext(): string;
228
+
207
229
  /**
208
230
  * Returns the revision (Not to be confused with [VBSP Version](https://developer.valvesoftware.com/wiki/Source_BSP_File_Format#Versions)) and BSP version of the current map.
209
231
  *
@@ -213,6 +235,7 @@ interface GameLib {
213
235
  * @source https://wiki.facepunch.com/gmod/game.GetMapVersion
214
236
  */
215
237
  GetMapVersion(): (number, number);
238
+
216
239
  /**
217
240
  * Returns the difficulty level of the game.
218
241
  *
@@ -225,6 +248,7 @@ interface GameLib {
225
248
  * @source https://wiki.facepunch.com/gmod/game.GetSkillLevel
226
249
  */
227
250
  GetSkillLevel(): number;
251
+
228
252
  /**
229
253
  * Returns the time scale set with [game.SetTimeScale](https://wiki.facepunch.com/gmod/game.SetTimeScale).
230
254
  *
@@ -237,6 +261,7 @@ interface GameLib {
237
261
  * @source https://wiki.facepunch.com/gmod/game.GetTimeScale
238
262
  */
239
263
  GetTimeScale(): number;
264
+
240
265
  /**
241
266
  * Returns the wind's velocity at a given position, as influenced by current map's [env_wind](https://developer.valvesoftware.com/wiki/Env_wind) entities.
242
267
  *
@@ -244,12 +269,14 @@ interface GameLib {
244
269
  * @source https://wiki.facepunch.com/gmod/game.GetWindSpeed
245
270
  */
246
271
  GetWindSpeed(pos?: Vector): Vector;
272
+
247
273
  /**
248
274
  * Returns the worldspawn entity.
249
275
  * @realm shared
250
276
  * @source https://wiki.facepunch.com/gmod/game.GetWorld
251
277
  */
252
278
  GetWorld(): Entity;
279
+
253
280
  /**
254
281
  * Returns true if the server is a dedicated server, false if it is a listen server or a singleplayer game.
255
282
  *
@@ -257,18 +284,21 @@ interface GameLib {
257
284
  * @source https://wiki.facepunch.com/gmod/game.IsDedicated
258
285
  */
259
286
  IsDedicated(): boolean;
287
+
260
288
  /**
261
289
  * Kicks a player from the server. This can be ran before the player has spawned.
262
290
  * @realm server
263
291
  * @source https://wiki.facepunch.com/gmod/game.KickID
264
292
  */
265
293
  KickID(id: string, reason?: string): void;
294
+
266
295
  /**
267
296
  * Loads the next map according to the `nextlevel` convar, or from the current `mapcyclefile` set by the respective convar.
268
297
  * @realm server
269
298
  * @source https://wiki.facepunch.com/gmod/game.LoadNextMap
270
299
  */
271
300
  LoadNextMap(): void;
301
+
272
302
  /**
273
303
  * Returns the map load type of the current map.
274
304
  *
@@ -278,12 +308,14 @@ interface GameLib {
278
308
  * @source https://wiki.facepunch.com/gmod/game.MapLoadType
279
309
  */
280
310
  MapLoadType(): string;
311
+
281
312
  /**
282
313
  * Returns the maximum amount of players (including bots) that the server can have.
283
314
  * @realm shared
284
315
  * @source https://wiki.facepunch.com/gmod/game.MaxPlayers
285
316
  */
286
317
  MaxPlayers(): number;
318
+
287
319
  /**
288
320
  * Mounts a GMA addon from the disk.
289
321
  * Can be used with [steamworks.DownloadUGC](https://wiki.facepunch.com/gmod/steamworks.DownloadUGC).
@@ -298,12 +330,14 @@ interface GameLib {
298
330
  * @source https://wiki.facepunch.com/gmod/game.MountGMA
299
331
  */
300
332
  MountGMA(path: string): (boolean, table);
333
+
301
334
  /**
302
335
  * Removes all the clientside ragdolls. On server, it will remove all `prop_ragdolls` that have the `SF_RAGDOLLPROP_USE_LRU_RETIREMENT` (4096) spawnflag.
303
336
  * @realm shared
304
337
  * @source https://wiki.facepunch.com/gmod/game.RemoveRagdolls
305
338
  */
306
339
  RemoveRagdolls(): void;
340
+
307
341
  /**
308
342
  * Sets the counter of a Global State.
309
343
  *
@@ -313,6 +347,7 @@ interface GameLib {
313
347
  * @source https://wiki.facepunch.com/gmod/game.SetGlobalCounter
314
348
  */
315
349
  SetGlobalCounter(name: string, count: number): void;
350
+
316
351
  /**
317
352
  * Sets whether a Global State is off, active or dead ( inactive ).
318
353
  *
@@ -322,6 +357,7 @@ interface GameLib {
322
357
  * @source https://wiki.facepunch.com/gmod/game.SetGlobalState
323
358
  */
324
359
  SetGlobalState(name: string, state: number): void;
360
+
325
361
  /**
326
362
  * Sets the difficulty level of the game, can be retrieved with [game.GetSkillLevel](https://wiki.facepunch.com/gmod/game.GetSkillLevel).
327
363
  *
@@ -331,6 +367,7 @@ interface GameLib {
331
367
  * @source https://wiki.facepunch.com/gmod/game.SetSkillLevel
332
368
  */
333
369
  SetSkillLevel(level: number): void;
370
+
334
371
  /**
335
372
  * Sets the time scale of the game logic.
336
373
  *
@@ -347,12 +384,14 @@ interface GameLib {
347
384
  * @source https://wiki.facepunch.com/gmod/game.SetTimeScale
348
385
  */
349
386
  SetTimeScale(timeScale: number): void;
387
+
350
388
  /**
351
389
  * Returns whether the current session is a single player game.
352
390
  * @realm shared
353
391
  * @source https://wiki.facepunch.com/gmod/game.SinglePlayer
354
392
  */
355
393
  SinglePlayer(): boolean;
394
+
356
395
  /**
357
396
  * Returns the name of the entity that should be used as player start position.
358
397
  *
@@ -362,43 +401,3 @@ interface GameLib {
362
401
  */
363
402
  StartSpot(): string;
364
403
  }
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
-
376
-
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
@@ -961,4 +961,3 @@ interface GameeventLib {
961
961
  */
962
962
  Listen(eventName: string): void;
963
963
  }
964
-
@@ -18,6 +18,7 @@ interface GamemodeLib {
18
18
  * @source https://wiki.facepunch.com/gmod/gamemode.Call
19
19
  */
20
20
  Call(name: string, ...: any): any;
21
+
21
22
  /**
22
23
  * INTERNAL: This is used internally - although you're able to use it you
23
24
  * probably shouldn't. This returns the internally stored gamemode table.
@@ -30,6 +31,7 @@ interface GamemodeLib {
30
31
  * @source https://wiki.facepunch.com/gmod/gamemode.Get
31
32
  */
32
33
  Get(name: string): GM;
34
+
33
35
  /**
34
36
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
35
37
  * Called by the engine when a gamemode is being loaded.
@@ -38,7 +40,3 @@ interface GamemodeLib {
38
40
  */
39
41
  Register(gm: table, name: string, derived: string): void;
40
42
  }
41
-
42
-
43
-
44
-
@@ -9,7 +9,6 @@
9
9
  */
10
10
  declare function AccessorFunc(tab: table, key: any, name: string, force?: FORCE): void;
11
11
 
12
-
13
12
  /**
14
13
  * Adds the specified image path to the main menu background pool. Image can be png or jpeg.
15
14
  * @realm menu
@@ -272,7 +271,6 @@ declare function Color(r: number, g: number, b: number, a?: number): Color;
272
271
  */
273
272
  declare function ColorAlpha(color: Color, alpha: number): Color;
274
273
 
275
-
276
274
  /**
277
275
  * Creates a Color with randomized red, green, and blue components. If the alpha
278
276
  * argument is true, alpha will also be randomized.
@@ -282,7 +280,6 @@ declare function ColorAlpha(color: Color, alpha: number): Color;
282
280
  */
283
281
  declare function ColorRand(a?: boolean): Color;
284
282
 
285
-
286
283
  /**
287
284
  * Converts a [Color](https://wiki.facepunch.com/gmod/Color) into HSL color space.
288
285
  * @realm shared and menu
@@ -344,7 +341,6 @@ declare function CreateClientConVar(name: string, _default: string | number, sho
344
341
  */
345
342
  declare function CreateConVar(name: string, value: string | number, flags?: FCVAR | number[], helptext?: string, min?: number, max?: number): ConVar;
346
343
 
347
-
348
344
  /**
349
345
  * Creates a ContextMenu.
350
346
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
@@ -558,7 +554,6 @@ declare function DeriveGamemode(base: string): void;
558
554
  */
559
555
  declare function DermaMenu(keepOpen?: boolean, parent?: Panel): DMenu;
560
556
 
561
-
562
557
  /**
563
558
  * Creates a new derma animation.
564
559
  * @realm client and menu
@@ -922,7 +917,6 @@ declare function EyeVector(): Vector;
922
917
  */
923
918
  declare function FindMetaTable<T extends table>(metaName: string): T;
924
919
 
925
-
926
920
  /**
927
921
  * Returns the tool-tip text and tool-tip-panel (if any) of the given panel as well as itself
928
922
  * @realm client and menu
@@ -1382,7 +1376,6 @@ declare function HTTP(parameters: HTTPRequestWithParameters): boolean;
1382
1376
  declare function HTTP(parameters: HTTPRequestWithoutParameters): boolean;
1383
1377
  declare function HTTP(parameters: HTTPRequest): boolean;
1384
1378
 
1385
-
1386
1379
  /**
1387
1380
  * Converts a color from [HWB color space](https://en.wikipedia.org/wiki/HWB_color_model) (Hue-Whiteness-Blackness) into RGB color space and returns a [Color](https://wiki.facepunch.com/gmod/Color).
1388
1381
  *
@@ -1418,7 +1411,6 @@ declare function IncludeCS(filename: string): (...any);
1418
1411
  */
1419
1412
  declare function IsColor(value: any): value is Color;
1420
1413
 
1421
-
1422
1414
  /**
1423
1415
  * Determines whether or not the provided console command will be blocked if it's ran through Lua functions, such as [Global.RunConsoleCommand](https://wiki.facepunch.com/gmod/Global.RunConsoleCommand) or [Player:ConCommand](https://wiki.facepunch.com/gmod/Player:ConCommand).
1424
1416
  *
@@ -3058,7 +3050,6 @@ declare function include(fileName: string): (...any);
3058
3050
  */
3059
3051
  declare function isangle(value: any): value is Angle;
3060
3052
 
3061
-
3062
3053
  /**
3063
3054
  * Returns whether the given value is a boolean.
3064
3055
  * @realm shared
@@ -3067,7 +3058,6 @@ declare function isangle(value: any): value is Angle;
3067
3058
  */
3068
3059
  declare function isbool(value: any): value is boolean;
3069
3060
 
3070
-
3071
3061
  /**
3072
3062
  * Returns whether the given value is a function.
3073
3063
  * @realm shared
@@ -3076,7 +3066,6 @@ declare function isbool(value: any): value is boolean;
3076
3066
  */
3077
3067
  declare function isfunction(value: any): value is function;
3078
3068
 
3079
-
3080
3069
  /**
3081
3070
  * Returns whether the given value is a VMatrix.
3082
3071
  * @realm shared
@@ -3085,7 +3074,6 @@ declare function isfunction(value: any): value is function;
3085
3074
  */
3086
3075
  declare function ismatrix(value: any): value is VMatrix;
3087
3076
 
3088
-
3089
3077
  /**
3090
3078
  * Returns whether the given value is a number.
3091
3079
  * @realm shared
@@ -3094,7 +3082,6 @@ declare function ismatrix(value: any): value is VMatrix;
3094
3082
  */
3095
3083
  declare function isnumber(value: any): value is number;
3096
3084
 
3097
-
3098
3085
  /**
3099
3086
  * Returns whether the given value is a Panel.
3100
3087
  * @realm shared
@@ -3103,7 +3090,6 @@ declare function isnumber(value: any): value is number;
3103
3090
  */
3104
3091
  declare function ispanel(value: any): value is Panel;
3105
3092
 
3106
-
3107
3093
  /**
3108
3094
  * Returns whether the given value is a string.
3109
3095
  * @realm shared
@@ -3112,7 +3098,6 @@ declare function ispanel(value: any): value is Panel;
3112
3098
  */
3113
3099
  declare function isstring(value: any): value is string;
3114
3100
 
3115
-
3116
3101
  /**
3117
3102
  * Returns whether the given value is a table.
3118
3103
  * @realm shared
@@ -3121,7 +3106,6 @@ declare function isstring(value: any): value is string;
3121
3106
  */
3122
3107
  declare function istable(value: any): value is table;
3123
3108
 
3124
-
3125
3109
  /**
3126
3110
  * Returns whether the given value is a Vector.
3127
3111
  * @realm shared
@@ -3130,7 +3114,6 @@ declare function istable(value: any): value is table;
3130
3114
  */
3131
3115
  declare function isvector(value: any): value is Vector;
3132
3116
 
3133
-
3134
3117
  /**
3135
3118
  * First tries to load a binary module with the given name, if unsuccessful, it tries to load a Lua module with the given name.
3136
3119
  *
@@ -3153,4 +3136,3 @@ declare function require(name: string): void;
3153
3136
  * @source https://wiki.facepunch.com/gmod/Global.tobool
3154
3137
  */
3155
3138
  declare function tobool(input: any): boolean;
3156
-