@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
@@ -12,20 +12,6 @@
12
12
  *
13
13
  * @source https://wiki.facepunch.com/gmod/PLAYER_Hooks
14
14
  */
15
- interface PLAYER {}
16
-
17
- /**
18
- * This is a list of all methods only available for players. It is also possible to call [Entity](https://wiki.facepunch.com/gmod/Entity) functions on the Player.
19
- * @source https://wiki.facepunch.com/gmod/Player
20
- */
21
- interface Player extends Entity {}
22
-
23
- /**
24
- * The player library is used to get the Lua objects that represent players in-game.
25
- * @source https://wiki.facepunch.com/gmod/player(library)
26
- */
27
- declare player: PlayerLib;
28
-
29
15
  interface PLAYER {
30
16
  /**
31
17
  * Called when the player's class was changed from this class.
@@ -33,18 +19,14 @@ interface PLAYER {
33
19
  * @source https://wiki.facepunch.com/gmod/PLAYER:ClassChanged
34
20
  */
35
21
  ClassChanged(self: PLAYER): void;
36
- }
37
22
 
38
- interface PLAYER {
39
23
  /**
40
24
  * Called when the player dies
41
25
  * @realm server
42
26
  * @source https://wiki.facepunch.com/gmod/PLAYER:Death
43
27
  */
44
28
  Death(self: PLAYER): void;
45
- }
46
29
 
47
- interface PLAYER {
48
30
  /**
49
31
  * Called from [GM:FinishMove](https://wiki.facepunch.com/gmod/GM:FinishMove).
50
32
  *
@@ -58,36 +40,28 @@ interface PLAYER {
58
40
  * @source https://wiki.facepunch.com/gmod/PLAYER:FinishMove
59
41
  */
60
42
  FinishMove(self: PLAYER, mv: CMoveData): boolean;
61
- }
62
43
 
63
- interface PLAYER {
64
44
  /**
65
45
  * Called on player spawn to determine which hand model to use
66
46
  * @realm server
67
47
  * @source https://wiki.facepunch.com/gmod/PLAYER:GetHandsModel
68
48
  */
69
49
  GetHandsModel(self: PLAYER): table;
70
- }
71
50
 
72
- interface PLAYER {
73
51
  /**
74
52
  * Called when the class object is created
75
53
  * @realm shared
76
54
  * @source https://wiki.facepunch.com/gmod/PLAYER:Init
77
55
  */
78
56
  Init(self: PLAYER): void;
79
- }
80
57
 
81
- interface PLAYER {
82
58
  /**
83
59
  * Called on spawn to give the player their default loadout
84
60
  * @realm server
85
61
  * @source https://wiki.facepunch.com/gmod/PLAYER:Loadout
86
62
  */
87
63
  Loadout(self: PLAYER): void;
88
- }
89
64
 
90
- interface PLAYER {
91
65
  /**
92
66
  * Called from [GM:Move](https://wiki.facepunch.com/gmod/GM:Move).
93
67
  *
@@ -101,27 +75,21 @@ interface PLAYER {
101
75
  * @source https://wiki.facepunch.com/gmod/PLAYER:Move
102
76
  */
103
77
  Move(self: PLAYER, mv: CMoveData): boolean;
104
- }
105
78
 
106
- interface PLAYER {
107
79
  /**
108
80
  * Called after the viewmodel has been drawn
109
81
  * @realm client
110
82
  * @source https://wiki.facepunch.com/gmod/PLAYER:PostDrawViewModel
111
83
  */
112
84
  PostDrawViewModel(self: PLAYER, viewmodel: Entity, weapon: Entity): void;
113
- }
114
85
 
115
- interface PLAYER {
116
86
  /**
117
87
  * Called before the viewmodel is drawn
118
88
  * @realm client
119
89
  * @source https://wiki.facepunch.com/gmod/PLAYER:PreDrawViewModel
120
90
  */
121
91
  PreDrawViewModel(self: PLAYER, viewmodel: Entity, weapon: Entity): void;
122
- }
123
92
 
124
- interface PLAYER {
125
93
  /**
126
94
  * Called when we need to set player model from the class.
127
95
  *
@@ -132,27 +100,21 @@ interface PLAYER {
132
100
  * @source https://wiki.facepunch.com/gmod/PLAYER:SetModel
133
101
  */
134
102
  SetModel(self: PLAYER): void;
135
- }
136
103
 
137
- interface PLAYER {
138
104
  /**
139
105
  * Setup the network table accessors.
140
106
  * @realm shared
141
107
  * @source https://wiki.facepunch.com/gmod/PLAYER:SetupDataTables
142
108
  */
143
109
  SetupDataTables(self: PLAYER): void;
144
- }
145
110
 
146
- interface PLAYER {
147
111
  /**
148
112
  * Called when the player spawns
149
113
  * @realm server
150
114
  * @source https://wiki.facepunch.com/gmod/PLAYER:Spawn
151
115
  */
152
116
  Spawn(self: PLAYER): void;
153
- }
154
117
 
155
- interface PLAYER {
156
118
  /**
157
119
  * Called from [GM:CreateMove](https://wiki.facepunch.com/gmod/GM:CreateMove).
158
120
  *
@@ -166,9 +128,7 @@ interface PLAYER {
166
128
  * @source https://wiki.facepunch.com/gmod/PLAYER:StartMove
167
129
  */
168
130
  StartMove(self: PLAYER, mv: CMoveData, cmd: CUserCmd): boolean;
169
- }
170
131
 
171
- interface PLAYER {
172
132
  /**
173
133
  * Called when the player changes their weapon to another one causing their viewmodel model to change
174
134
  * @realm client
@@ -177,7 +137,11 @@ interface PLAYER {
177
137
  ViewModelChanged(self: PLAYER, viewmodel: Entity, old: string, _new: string): void;
178
138
  }
179
139
 
180
- interface Player {
140
+ /**
141
+ * This is a list of all methods only available for players. It is also possible to call [Entity](https://wiki.facepunch.com/gmod/Entity) functions on the Player.
142
+ * @source https://wiki.facepunch.com/gmod/Player
143
+ */
144
+ interface Player extends Entity {
181
145
  /**
182
146
  * Returns the player's AccountID part of their full SteamID.
183
147
  *
@@ -195,9 +159,7 @@ interface Player {
195
159
  * @source https://wiki.facepunch.com/gmod/Player:AccountID
196
160
  */
197
161
  AccountID(self: Player): number;
198
- }
199
162
 
200
- interface Player {
201
163
  /**
202
164
  * **NOTE**: This function is only available in Sandbox and its derivatives.
203
165
  * Adds an entity to the player's clean up list. This uses [cleanup.Add](https://wiki.facepunch.com/gmod/cleanup.Add) internally.
@@ -205,9 +167,7 @@ interface Player {
205
167
  * @source https://wiki.facepunch.com/gmod/Player:AddCleanup
206
168
  */
207
169
  AddCleanup(self: Player, type: string, ent: Entity): void;
208
- }
209
170
 
210
- interface Player {
211
171
  /**
212
172
  * **NOTE**: This function is only available in Sandbox and its derivatives.
213
173
  * Adds an entity to the player's list of entities of the same type. See [Player:GetCount](https://wiki.facepunch.com/gmod/Player:GetCount) to get the current count of entities of an entity type added with this function.
@@ -215,36 +175,28 @@ interface Player {
215
175
  * @source https://wiki.facepunch.com/gmod/Player:AddCount
216
176
  */
217
177
  AddCount(self: Player, str: string, ent: Entity): void;
218
- }
219
178
 
220
- interface Player {
221
179
  /**
222
180
  * Adds the provided amount to the player's death count.
223
181
  * @realm server
224
182
  * @source https://wiki.facepunch.com/gmod/Player:AddDeaths
225
183
  */
226
184
  AddDeaths(self: Player, count: number): void;
227
- }
228
185
 
229
- interface Player {
230
186
  /**
231
187
  * Adds the provided amount to the player's frag/kill count.
232
188
  * @realm server
233
189
  * @source https://wiki.facepunch.com/gmod/Player:AddFrags
234
190
  */
235
191
  AddFrags(self: Player, count: number): void;
236
- }
237
192
 
238
- interface Player {
239
193
  /**
240
194
  * Adds an entity to the player's list of frozen objects.
241
195
  * @realm server
242
196
  * @source https://wiki.facepunch.com/gmod/Player:AddFrozenPhysicsObject
243
197
  */
244
198
  AddFrozenPhysicsObject(self: Player, ent: Entity, physobj: PhysObj): void;
245
- }
246
199
 
247
- interface Player {
248
200
  /**
249
201
  * Sets up the voting system for the player.
250
202
  * This is a really barebone system. By calling this a vote gets started, when the player presses 0-9 the callback function gets called along with the key the player pressed. Use the draw callback to draw the vote panel.
@@ -253,9 +205,7 @@ interface Player {
253
205
  * @source https://wiki.facepunch.com/gmod/Player:AddPlayerOption
254
206
  */
255
207
  AddPlayerOption(self: Player, name: string, timeout: number, vote_callback: (voteNum: number) => boolean, draw_callback: function): void;
256
- }
257
208
 
258
- interface Player {
259
209
  /**
260
210
  * Plays a sequence directly from a sequence number, similar to [Player:AnimRestartGesture](https://wiki.facepunch.com/gmod/Player:AnimRestartGesture). This function has the advantage to play sequences that haven't been bound to an existing [Enums/ACT](https://wiki.facepunch.com/gmod/Enums/ACT)
261
211
  * **WARNING**: This is not automatically networked. This function has to be called on the client to be seen by said client.
@@ -265,9 +215,7 @@ interface Player {
265
215
  * @source https://wiki.facepunch.com/gmod/Player:AddVCDSequenceToGestureSlot
266
216
  */
267
217
  AddVCDSequenceToGestureSlot(self: Player, slot: number, sequenceId: number, cycle: number, autokill?: boolean): void;
268
- }
269
218
 
270
- interface Player {
271
219
  /**
272
220
  * Sets if the player can toggle their flashlight. Function exists on both the server and client but has no effect when ran on the client.
273
221
  *
@@ -277,27 +225,21 @@ interface Player {
277
225
  * @source https://wiki.facepunch.com/gmod/Player:AllowFlashlight
278
226
  */
279
227
  AllowFlashlight(self: Player, canFlashlight: boolean): void;
280
- }
281
228
 
282
- interface Player {
283
229
  /**
284
230
  * Lets the player spray their decal without delay
285
231
  * @realm server
286
232
  * @source https://wiki.facepunch.com/gmod/Player:AllowImmediateDecalPainting
287
233
  */
288
234
  AllowImmediateDecalPainting(self: Player, allow: boolean): void;
289
- }
290
235
 
291
- interface Player {
292
236
  /**
293
237
  * Resets player gesture in selected slot.
294
238
  * @realm shared
295
239
  * @source https://wiki.facepunch.com/gmod/Player:AnimResetGestureSlot
296
240
  */
297
241
  AnimResetGestureSlot(self: Player, slot: number): void;
298
- }
299
242
 
300
- interface Player {
301
243
  /**
302
244
  * Restart a gesture on a player, within a gesture slot.
303
245
  *
@@ -308,54 +250,42 @@ interface Player {
308
250
  * @source https://wiki.facepunch.com/gmod/Player:AnimRestartGesture
309
251
  */
310
252
  AnimRestartGesture(self: Player, slot: number, activity: number, autokill?: boolean): void;
311
- }
312
253
 
313
- interface Player {
314
254
  /**
315
255
  * Restarts the main animation on the player, has the same effect as calling [Entity:SetCycle](https://wiki.facepunch.com/gmod/Entity:SetCycle)( 0 ).
316
256
  * @realm shared
317
257
  * @source https://wiki.facepunch.com/gmod/Player:AnimRestartMainSequence
318
258
  */
319
259
  AnimRestartMainSequence(self: Player): void;
320
- }
321
260
 
322
- interface Player {
323
261
  /**
324
262
  * Sets the sequence of the animation playing in the given gesture slot.
325
263
  * @realm shared
326
264
  * @source https://wiki.facepunch.com/gmod/Player:AnimSetGestureSequence
327
265
  */
328
266
  AnimSetGestureSequence(self: Player, slot: number, sequenceID: number): void;
329
- }
330
267
 
331
- interface Player {
332
268
  /**
333
269
  * Sets the weight of the animation playing in the given gesture slot.
334
270
  * @realm shared
335
271
  * @source https://wiki.facepunch.com/gmod/Player:AnimSetGestureWeight
336
272
  */
337
273
  AnimSetGestureWeight(self: Player, slot: number, weight: number): void;
338
- }
339
274
 
340
- interface Player {
341
275
  /**
342
276
  * Returns the player's armor.
343
277
  * @realm shared
344
278
  * @source https://wiki.facepunch.com/gmod/Player:Armor
345
279
  */
346
280
  Armor(self: Player): number;
347
- }
348
281
 
349
- interface Player {
350
282
  /**
351
283
  * Bans the player from the server for a certain amount of minutes.
352
284
  * @realm server
353
285
  * @source https://wiki.facepunch.com/gmod/Player:Ban
354
286
  */
355
287
  Ban(self: Player, minutes: number, kick?: boolean): void;
356
- }
357
288
 
358
- interface Player {
359
289
  /**
360
290
  * Returns true if the player's flashlight hasn't been disabled by [Player:AllowFlashlight](https://wiki.facepunch.com/gmod/Player:AllowFlashlight).
361
291
  *
@@ -366,9 +296,7 @@ interface Player {
366
296
  * @source https://wiki.facepunch.com/gmod/Player:CanUseFlashlight
367
297
  */
368
298
  CanUseFlashlight(self: Player): boolean;
369
- }
370
299
 
371
- interface Player {
372
300
  /**
373
301
  * Prints a string to the chatbox of the client.
374
302
  *
@@ -379,9 +307,7 @@ interface Player {
379
307
  * @source https://wiki.facepunch.com/gmod/Player:ChatPrint
380
308
  */
381
309
  ChatPrint(self: Player, message: string): void;
382
- }
383
310
 
384
- interface Player {
385
311
  /**
386
312
  * Checks if the limit of an entity type added by [Player:AddCount](https://wiki.facepunch.com/gmod/Player:AddCount) is hit or not. If it's hit, it will call the [GM:PlayerCheckLimit](https://wiki.facepunch.com/gmod/GM:PlayerCheckLimit) hook, and call [Player:LimitHit](https://wiki.facepunch.com/gmod/Player:LimitHit) if the hook doesn't return `false`.
387
313
  *
@@ -394,9 +320,7 @@ interface Player {
394
320
  * @source https://wiki.facepunch.com/gmod/Player:CheckLimit
395
321
  */
396
322
  CheckLimit(self: Player, str: string): boolean;
397
- }
398
323
 
399
- interface Player {
400
324
  /**
401
325
  * Runs the concommand on the player. This does not work on bots. If used clientside, always runs the command on the local player.
402
326
  *
@@ -409,9 +333,7 @@ interface Player {
409
333
  * @source https://wiki.facepunch.com/gmod/Player:ConCommand
410
334
  */
411
335
  ConCommand(self: Player, command: string): void;
412
- }
413
336
 
414
- interface Player {
415
337
  /**
416
338
  * Creates the player's death ragdoll entity and deletes the old one.
417
339
  *
@@ -425,72 +347,56 @@ interface Player {
425
347
  * @source https://wiki.facepunch.com/gmod/Player:CreateRagdoll
426
348
  */
427
349
  CreateRagdoll(self: Player): void;
428
- }
429
350
 
430
- interface Player {
431
351
  /**
432
352
  * Disables the default player's crosshair. Can be reenabled with [Player:CrosshairEnable](https://wiki.facepunch.com/gmod/Player:CrosshairEnable). This will affect [WEAPON:DoDrawCrosshair](https://wiki.facepunch.com/gmod/WEAPON:DoDrawCrosshair).
433
353
  * @realm server
434
354
  * @source https://wiki.facepunch.com/gmod/Player:CrosshairDisable
435
355
  */
436
356
  CrosshairDisable(self: Player): void;
437
- }
438
357
 
439
- interface Player {
440
358
  /**
441
359
  * Enables the player's crosshair, if it was previously disabled via [Player:CrosshairDisable](https://wiki.facepunch.com/gmod/Player:CrosshairDisable).
442
360
  * @realm server
443
361
  * @source https://wiki.facepunch.com/gmod/Player:CrosshairEnable
444
362
  */
445
363
  CrosshairEnable(self: Player): void;
446
- }
447
364
 
448
- interface Player {
449
365
  /**
450
366
  * Returns whether the player is crouching or not ([FL_DUCKING](https://wiki.facepunch.com/gmod/Enums/FL) flag).
451
367
  * @realm shared
452
368
  * @source https://wiki.facepunch.com/gmod/Player:Crouching
453
369
  */
454
370
  Crouching(self: Player): boolean;
455
- }
456
371
 
457
- interface Player {
458
372
  /**
459
373
  * Returns the player's death count
460
374
  * @realm shared
461
375
  * @source https://wiki.facepunch.com/gmod/Player:Deaths
462
376
  */
463
377
  Deaths(self: Player): number;
464
- }
465
378
 
466
- interface Player {
467
379
  /**
468
380
  * Prints the players' name and position to the console.
469
381
  * @realm shared
470
382
  * @source https://wiki.facepunch.com/gmod/Player:DebugInfo
471
383
  */
472
384
  DebugInfo(self: Player): void;
473
- }
474
385
 
475
- interface Player {
476
386
  /**
477
387
  * Detonates all tripmines belonging to the player.
478
388
  * @realm server
479
389
  * @source https://wiki.facepunch.com/gmod/Player:DetonateTripmines
480
390
  */
481
391
  DetonateTripmines(self: Player): void;
482
- }
483
392
 
484
- interface Player {
485
393
  /**
486
394
  * Disables world clicking for given player. See [Panel:SetWorldClicker](https://wiki.facepunch.com/gmod/Panel:SetWorldClicker) and [Player:IsWorldClickingDisabled](https://wiki.facepunch.com/gmod/Player:IsWorldClickingDisabled).
487
395
  * @realm server
488
396
  * @source https://wiki.facepunch.com/gmod/Player:DisableWorldClicking
489
397
  */
490
398
  DisableWorldClicking(self: Player, disable: boolean): void;
491
- }
492
399
 
493
- interface Player {
494
400
  /**
495
401
  * Sends a third person animation event to the player.
496
402
  *
@@ -500,9 +406,7 @@ interface Player {
500
406
  * @source https://wiki.facepunch.com/gmod/Player:DoAnimationEvent
501
407
  */
502
408
  DoAnimationEvent(self: Player, data: number): void;
503
- }
504
409
 
505
- interface Player {
506
410
  /**
507
411
  * Starts the player's attack animation. The attack animation is determined by the weapon's HoldType.
508
412
  *
@@ -512,9 +416,7 @@ interface Player {
512
416
  * @source https://wiki.facepunch.com/gmod/Player:DoAttackEvent
513
417
  */
514
418
  DoAttackEvent(self: Player): void;
515
- }
516
419
 
517
- interface Player {
518
420
  /**
519
421
  * Sends a specified third person animation event to the player.
520
422
  *
@@ -524,9 +426,7 @@ interface Player {
524
426
  * @source https://wiki.facepunch.com/gmod/Player:DoCustomAnimEvent
525
427
  */
526
428
  DoCustomAnimEvent(self: Player, event: number, data: number): void;
527
- }
528
429
 
529
- interface Player {
530
430
  /**
531
431
  * Sends a third person reload animation event to the player.
532
432
  *
@@ -536,9 +436,7 @@ interface Player {
536
436
  * @source https://wiki.facepunch.com/gmod/Player:DoReloadEvent
537
437
  */
538
438
  DoReloadEvent(self: Player): void;
539
- }
540
439
 
541
- interface Player {
542
440
  /**
543
441
  * Sends a third person secondary fire animation event to the player.
544
442
  *
@@ -548,36 +446,28 @@ interface Player {
548
446
  * @source https://wiki.facepunch.com/gmod/Player:DoSecondaryAttack
549
447
  */
550
448
  DoSecondaryAttack(self: Player): void;
551
- }
552
449
 
553
- interface Player {
554
450
  /**
555
451
  * Show/Hide the player's weapon's viewmodel.
556
452
  * @realm shared
557
453
  * @source https://wiki.facepunch.com/gmod/Player:DrawViewModel
558
454
  */
559
455
  DrawViewModel(self: Player, draw: boolean, vm?: number): void;
560
- }
561
456
 
562
- interface Player {
563
457
  /**
564
458
  * Show/Hide the player's weapon's worldmodel.
565
459
  * @realm server
566
460
  * @source https://wiki.facepunch.com/gmod/Player:DrawWorldModel
567
461
  */
568
462
  DrawWorldModel(self: Player, draw: boolean): void;
569
- }
570
463
 
571
- interface Player {
572
464
  /**
573
465
  * Drops the players' weapon of a specific class.
574
466
  * @realm server
575
467
  * @source https://wiki.facepunch.com/gmod/Player:DropNamedWeapon
576
468
  */
577
469
  DropNamedWeapon(self: Player, _class: string, target?: Vector, velocity?: Vector): void;
578
- }
579
470
 
580
- interface Player {
581
471
  /**
582
472
  * Drops any object the player is currently holding with either Gravity Gun, Physics Gun or `+use` (E key)
583
473
  *
@@ -587,18 +477,14 @@ interface Player {
587
477
  * @source https://wiki.facepunch.com/gmod/Player:DropObject
588
478
  */
589
479
  DropObject(self: Player, entity?: Entity): void;
590
- }
591
480
 
592
- interface Player {
593
481
  /**
594
482
  * Forces the player to drop the specified weapon
595
483
  * @realm server
596
484
  * @source https://wiki.facepunch.com/gmod/Player:DropWeapon
597
485
  */
598
486
  DropWeapon(self: Player, weapon?: Weapon, target?: Vector, velocity?: Vector): void;
599
- }
600
487
 
601
- interface Player {
602
488
  /**
603
489
  * Force puts the player into a specified vehicle.
604
490
  * This **does not** bypass [GM:CanPlayerEnterVehicle](https://wiki.facepunch.com/gmod/GM:CanPlayerEnterVehicle).
@@ -607,9 +493,7 @@ interface Player {
607
493
  * @source https://wiki.facepunch.com/gmod/Player:EnterVehicle
608
494
  */
609
495
  EnterVehicle(self: Player, vehicle: Vehicle): void;
610
- }
611
496
 
612
- interface Player {
613
497
  /**
614
498
  * Equips the player with the HEV suit.
615
499
  *
@@ -622,18 +506,14 @@ interface Player {
622
506
  * @source https://wiki.facepunch.com/gmod/Player:EquipSuit
623
507
  */
624
508
  EquipSuit(self: Player): void;
625
- }
626
509
 
627
- interface Player {
628
510
  /**
629
511
  * Forces the player off the current ladder if they are on one.
630
512
  * @realm server
631
513
  * @source https://wiki.facepunch.com/gmod/Player:ExitLadder
632
514
  */
633
515
  ExitLadder(self: Player): void;
634
- }
635
516
 
636
- interface Player {
637
517
  /**
638
518
  * Forces the player to exit the vehicle if they're in one.
639
519
  *
@@ -643,9 +523,7 @@ interface Player {
643
523
  * @source https://wiki.facepunch.com/gmod/Player:ExitVehicle
644
524
  */
645
525
  ExitVehicle(self: Player): void;
646
- }
647
526
 
648
- interface Player {
649
527
  /**
650
528
  * Enables/Disables the player's flashlight.
651
529
  *
@@ -662,18 +540,14 @@ interface Player {
662
540
  * @source https://wiki.facepunch.com/gmod/Player:Flashlight
663
541
  */
664
542
  Flashlight(self: Player, isOn: boolean): void;
665
- }
666
543
 
667
- interface Player {
668
544
  /**
669
545
  * Returns true if the player's flashlight is on.
670
546
  * @realm shared
671
547
  * @source https://wiki.facepunch.com/gmod/Player:FlashlightIsOn
672
548
  */
673
549
  FlashlightIsOn(self: Player): boolean;
674
- }
675
550
 
676
- interface Player {
677
551
  /**
678
552
  * Returns the amount of frags a player has.
679
553
  *
@@ -684,9 +558,7 @@ interface Player {
684
558
  * @source https://wiki.facepunch.com/gmod/Player:Frags
685
559
  */
686
560
  Frags(self: Player): number;
687
- }
688
561
 
689
- interface Player {
690
562
  /**
691
563
  * Freeze the player. Frozen players cannot move, look around, or attack. Key bindings are still called. Similar to [Player:Lock](https://wiki.facepunch.com/gmod/Player:Lock) but the player can still take damage.
692
564
  *
@@ -697,9 +569,7 @@ interface Player {
697
569
  * @source https://wiki.facepunch.com/gmod/Player:Freeze
698
570
  */
699
571
  Freeze(self: Player, frozen?: boolean): void;
700
- }
701
572
 
702
- interface Player {
703
573
  /**
704
574
  * Returns the player's active weapon.
705
575
  *
@@ -709,99 +579,77 @@ interface Player {
709
579
  * @source https://wiki.facepunch.com/gmod/Player:GetActiveWeapon
710
580
  */
711
581
  GetActiveWeapon(self: Player): Weapon;
712
- }
713
582
 
714
- interface Player {
715
583
  /**
716
584
  * Returns the player's current activity.
717
585
  * @realm server
718
586
  * @source https://wiki.facepunch.com/gmod/Player:GetActivity
719
587
  */
720
588
  GetActivity(self: Player): number;
721
- }
722
589
 
723
- interface Player {
724
590
  /**
725
591
  * Returns the direction that the player is aiming.
726
592
  * @realm shared
727
593
  * @source https://wiki.facepunch.com/gmod/Player:GetAimVector
728
594
  */
729
595
  GetAimVector(self: Player): Vector;
730
- }
731
596
 
732
- interface Player {
733
597
  /**
734
598
  * Returns true if the players' model is allowed to rotate around the pitch and roll axis.
735
599
  * @realm shared
736
600
  * @source https://wiki.facepunch.com/gmod/Player:GetAllowFullRotation
737
601
  */
738
602
  GetAllowFullRotation(self: Player): boolean;
739
- }
740
603
 
741
- interface Player {
742
604
  /**
743
605
  * Returns whether the player is allowed to use their weapons in a vehicle or not.
744
606
  * @realm shared
745
607
  * @source https://wiki.facepunch.com/gmod/Player:GetAllowWeaponsInVehicle
746
608
  */
747
609
  GetAllowWeaponsInVehicle(self: Player): boolean;
748
- }
749
610
 
750
- interface Player {
751
611
  /**
752
612
  * Returns a table of all ammo the player has.
753
613
  * @realm shared
754
614
  * @source https://wiki.facepunch.com/gmod/Player:GetAmmo
755
615
  */
756
616
  GetAmmo(self: Player): table;
757
- }
758
617
 
759
- interface Player {
760
618
  /**
761
619
  * Gets the amount of ammo the player has.
762
620
  * @realm shared
763
621
  * @source https://wiki.facepunch.com/gmod/Player:GetAmmoCount
764
622
  */
765
623
  GetAmmoCount(self: Player, ammotype: any): number;
766
- }
767
624
 
768
- interface Player {
769
625
  /**
770
626
  * Gets if the player will be pushed out of nocollided players.
771
627
  * @realm shared
772
628
  * @source https://wiki.facepunch.com/gmod/Player:GetAvoidPlayers
773
629
  */
774
630
  GetAvoidPlayers(self: Player): boolean;
775
- }
776
631
 
777
- interface Player {
778
632
  /**
779
633
  * Returns true if the player is able to walk using the (default) alt key.
780
634
  * @realm shared
781
635
  * @source https://wiki.facepunch.com/gmod/Player:GetCanWalk
782
636
  */
783
637
  GetCanWalk(self: Player): boolean;
784
- }
785
638
 
786
- interface Player {
787
639
  /**
788
640
  * Determines whenever the player is allowed to use the zoom functionality.
789
641
  * @realm shared
790
642
  * @source https://wiki.facepunch.com/gmod/Player:GetCanZoom
791
643
  */
792
644
  GetCanZoom(self: Player): boolean;
793
- }
794
645
 
795
- interface Player {
796
646
  /**
797
647
  * Returns the player's class id.
798
648
  * @realm shared
799
649
  * @source https://wiki.facepunch.com/gmod/Player:GetClassID
800
650
  */
801
651
  GetClassID(self: Player): number;
802
- }
803
652
 
804
- interface Player {
805
653
  /**
806
654
  * **NOTE**: This function is only available in Sandbox and its derivatives.
807
655
  * Gets the total amount of entities of an entity type added by [Player:AddCount](https://wiki.facepunch.com/gmod/Player:AddCount).
@@ -829,9 +677,7 @@ interface Player {
829
677
  * @source https://wiki.facepunch.com/gmod/Player:GetCount
830
678
  */
831
679
  GetCount(self: Player, type: string, minus?: number): number;
832
- }
833
680
 
834
- interface Player {
835
681
  /**
836
682
  * Returns the crouched walk speed multiplier.
837
683
  *
@@ -841,9 +687,7 @@ interface Player {
841
687
  * @source https://wiki.facepunch.com/gmod/Player:GetCrouchedWalkSpeed
842
688
  */
843
689
  GetCrouchedWalkSpeed(self: Player): number;
844
- }
845
690
 
846
- interface Player {
847
691
  /**
848
692
  * Returns the last command which was sent by the specified player. This can only be called on the player which [Global.GetPredictionPlayer](https://wiki.facepunch.com/gmod/Global.GetPredictionPlayer)() returns.
849
693
  *
@@ -856,9 +700,7 @@ interface Player {
856
700
  * @source https://wiki.facepunch.com/gmod/Player:GetCurrentCommand
857
701
  */
858
702
  GetCurrentCommand(self: Player): CUserCmd;
859
- }
860
703
 
861
- interface Player {
862
704
  /**
863
705
  * Gets the current applied view offset, which transitions between the player's standing and ducked view offset depending on their duck state.
864
706
  *
@@ -868,45 +710,35 @@ interface Player {
868
710
  * @source https://wiki.facepunch.com/gmod/Player:GetCurrentViewOffset
869
711
  */
870
712
  GetCurrentViewOffset(self: Player): Vector;
871
- }
872
713
 
873
- interface Player {
874
714
  /**
875
715
  * Gets the entity the player is currently driving via the [drive](https://wiki.facepunch.com/gmod/drive) library.
876
716
  * @realm shared
877
717
  * @source https://wiki.facepunch.com/gmod/Player:GetDrivingEntity
878
718
  */
879
719
  GetDrivingEntity(self: Player): Entity;
880
- }
881
720
 
882
- interface Player {
883
721
  /**
884
722
  * Returns driving mode of the player. See [Entity Driving](https://wiki.facepunch.com/gmod/Entity_Driving).
885
723
  * @realm shared
886
724
  * @source https://wiki.facepunch.com/gmod/Player:GetDrivingMode
887
725
  */
888
726
  GetDrivingMode(self: Player): number;
889
- }
890
727
 
891
- interface Player {
892
728
  /**
893
729
  * Returns a player's duck speed (in seconds)
894
730
  * @realm shared
895
731
  * @source https://wiki.facepunch.com/gmod/Player:GetDuckSpeed
896
732
  */
897
733
  GetDuckSpeed(self: Player): number;
898
- }
899
734
 
900
- interface Player {
901
735
  /**
902
736
  * Returns the entity the player is currently using, like func_tank mounted turrets or +use prop pickups.
903
737
  * @realm shared
904
738
  * @source https://wiki.facepunch.com/gmod/Player:GetEntityInUse
905
739
  */
906
740
  GetEntityInUse(self: Player): Entity;
907
- }
908
741
 
909
- interface Player {
910
742
  /**
911
743
  * Returns a table with information of what the player is looking at.
912
744
  *
@@ -920,9 +752,7 @@ interface Player {
920
752
  * @source https://wiki.facepunch.com/gmod/Player:GetEyeTrace
921
753
  */
922
754
  GetEyeTrace(self: Player): TraceResult;
923
- }
924
755
 
925
- interface Player {
926
756
  /**
927
757
  * Returns the trace according to the players view direction, ignoring their mouse (holding C and moving the mouse in Sandbox).
928
758
  *
@@ -936,18 +766,14 @@ interface Player {
936
766
  * @source https://wiki.facepunch.com/gmod/Player:GetEyeTraceNoCursor
937
767
  */
938
768
  GetEyeTraceNoCursor(self: Player): TraceResult;
939
- }
940
769
 
941
- interface Player {
942
770
  /**
943
771
  * Returns the FOV of the player.
944
772
  * @realm shared
945
773
  * @source https://wiki.facepunch.com/gmod/Player:GetFOV
946
774
  */
947
775
  GetFOV(self: Player): number;
948
- }
949
776
 
950
- interface Player {
951
777
  /**
952
778
  * Returns the color of a player's flashlight.
953
779
  *
@@ -955,36 +781,28 @@ interface Player {
955
781
  * @source https://wiki.facepunch.com/gmod/Player:GetFlashlightColor
956
782
  */
957
783
  GetFlashlightColor(self: Player): Color;
958
- }
959
784
 
960
- interface Player {
961
785
  /**
962
786
  * Returns the steam "relationship" towards the player.
963
787
  * @realm client
964
788
  * @source https://wiki.facepunch.com/gmod/Player:GetFriendStatus
965
789
  */
966
790
  GetFriendStatus(self: Player): string;
967
- }
968
791
 
969
- interface Player {
970
792
  /**
971
793
  * Gets the hands entity of a player
972
794
  * @realm shared
973
795
  * @source https://wiki.facepunch.com/gmod/Player:GetHands
974
796
  */
975
797
  GetHands(self: Player): Entity;
976
- }
977
798
 
978
- interface Player {
979
799
  /**
980
800
  * Returns the widget the player is hovering with their mouse.
981
801
  * @realm shared
982
802
  * @source https://wiki.facepunch.com/gmod/Player:GetHoveredWidget
983
803
  */
984
804
  GetHoveredWidget(self: Player): Entity;
985
- }
986
805
 
987
- interface Player {
988
806
  /**
989
807
  * Retrieves the minimum and maximum [Vectors](https://wiki.facepunch.com/gmod/Vector) of the [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for the [Player's](https://wiki.facepunch.com/gmod/Player) physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull).
990
808
  *
@@ -994,9 +812,7 @@ interface Player {
994
812
  * @source https://wiki.facepunch.com/gmod/Player:GetHull
995
813
  */
996
814
  GetHull(self: Player): (Vector, Vector);
997
- }
998
815
 
999
- interface Player {
1000
816
  /**
1001
817
  * Retrieves the minimum and maximum [Vectors](https://wiki.facepunch.com/gmod/Vector) of the [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for the [Player's](https://wiki.facepunch.com/gmod/Player) physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull) while they are crouching (or "Ducking").
1002
818
  *
@@ -1006,9 +822,7 @@ interface Player {
1006
822
  * @source https://wiki.facepunch.com/gmod/Player:GetHullDuck
1007
823
  */
1008
824
  GetHullDuck(self: Player): (Vector, Vector);
1009
- }
1010
825
 
1011
- interface Player {
1012
826
  /**
1013
827
  * Retrieves the value of a client-side [ConVar](https://wiki.facepunch.com/gmod/ConVar). The [ConVar](https://wiki.facepunch.com/gmod/ConVar) must have a [FCVAR_USERINFO](https://wiki.facepunch.com/gmod/Enums/FCVAR) flag for this to work.
1014
828
  *
@@ -1020,27 +834,21 @@ interface Player {
1020
834
  * @source https://wiki.facepunch.com/gmod/Player:GetInfo
1021
835
  */
1022
836
  GetInfo(self: Player, cVarName: string): string;
1023
- }
1024
837
 
1025
- interface Player {
1026
838
  /**
1027
839
  * Retrieves the numeric value of a client-side convar, returns nil if value is not convertible to a number. The [ConVar](https://wiki.facepunch.com/gmod/ConVar) must have a [FCVAR_USERINFO](https://wiki.facepunch.com/gmod/Enums/FCVAR) flag for this to work.
1028
840
  * @realm shared
1029
841
  * @source https://wiki.facepunch.com/gmod/Player:GetInfoNum
1030
842
  */
1031
843
  GetInfoNum(self: Player, cVarName: string, _default: number): number;
1032
- }
1033
844
 
1034
- interface Player {
1035
845
  /**
1036
846
  * Returns the jump power of the player
1037
847
  * @realm shared
1038
848
  * @source https://wiki.facepunch.com/gmod/Player:GetJumpPower
1039
849
  */
1040
850
  GetJumpPower(self: Player): number;
1041
- }
1042
851
 
1043
- interface Player {
1044
852
  /**
1045
853
  * Returns the player's ladder climbing speed.
1046
854
  *
@@ -1050,18 +858,14 @@ interface Player {
1050
858
  * @source https://wiki.facepunch.com/gmod/Player:GetLadderClimbSpeed
1051
859
  */
1052
860
  GetLadderClimbSpeed(self: Player): number;
1053
- }
1054
861
 
1055
- interface Player {
1056
862
  /**
1057
863
  * Returns the timescale multiplier of the player movement.
1058
864
  * @realm shared
1059
865
  * @source https://wiki.facepunch.com/gmod/Player:GetLaggedMovementValue
1060
866
  */
1061
867
  GetLaggedMovementValue(self: Player): number;
1062
- }
1063
868
 
1064
- interface Player {
1065
869
  /**
1066
870
  * Returns the maximum amount of armor the player should have. Default value is 100.
1067
871
  *
@@ -1069,9 +873,7 @@ interface Player {
1069
873
  * @source https://wiki.facepunch.com/gmod/Player:GetMaxArmor
1070
874
  */
1071
875
  GetMaxArmor(self: Player): number;
1072
- }
1073
876
 
1074
- interface Player {
1075
877
  /**
1076
878
  * Returns the player's maximum movement speed.
1077
879
  *
@@ -1081,27 +883,21 @@ interface Player {
1081
883
  * @source https://wiki.facepunch.com/gmod/Player:GetMaxSpeed
1082
884
  */
1083
885
  GetMaxSpeed(self: Player): number;
1084
- }
1085
886
 
1086
- interface Player {
1087
887
  /**
1088
888
  * Returns whenever the player is set not to collide with their teammates.
1089
889
  * @realm shared
1090
890
  * @source https://wiki.facepunch.com/gmod/Player:GetNoCollideWithTeammates
1091
891
  */
1092
892
  GetNoCollideWithTeammates(self: Player): boolean;
1093
- }
1094
893
 
1095
- interface Player {
1096
894
  /**
1097
895
  * Returns the the observer mode of the player
1098
896
  * @realm shared
1099
897
  * @source https://wiki.facepunch.com/gmod/Player:GetObserverMode
1100
898
  */
1101
899
  GetObserverMode(self: Player): number;
1102
- }
1103
900
 
1104
- interface Player {
1105
901
  /**
1106
902
  * Returns the entity the player is currently observing.
1107
903
  *
@@ -1111,9 +907,7 @@ interface Player {
1111
907
  * @source https://wiki.facepunch.com/gmod/Player:GetObserverTarget
1112
908
  */
1113
909
  GetObserverTarget(self: Player): Entity;
1114
- }
1115
910
 
1116
- interface Player {
1117
911
  /**
1118
912
  * Returns a **P**ersistent **Data** key-value pair from the SQL database. (`sv.db` when called on server, `cl.db` when called on client)
1119
913
  *
@@ -1129,9 +923,7 @@ interface Player {
1129
923
  * @source https://wiki.facepunch.com/gmod/Player:GetPData
1130
924
  */
1131
925
  GetPData(self: Player, key: string, _default?: any): string;
1132
- }
1133
926
 
1134
- interface Player {
1135
927
  /**
1136
928
  * Returns a player's character model color.
1137
929
  *
@@ -1146,18 +938,14 @@ interface Player {
1146
938
  * @source https://wiki.facepunch.com/gmod/Player:GetPlayerColor
1147
939
  */
1148
940
  GetPlayerColor(self: Player): Vector;
1149
- }
1150
941
 
1151
- interface Player {
1152
942
  /**
1153
943
  * Returns a table containing player information.
1154
944
  * @realm shared
1155
945
  * @source https://wiki.facepunch.com/gmod/Player:GetPlayerInfo
1156
946
  */
1157
947
  GetPlayerInfo(self: Player): table;
1158
- }
1159
948
 
1160
- interface Player {
1161
949
  /**
1162
950
  * Returns the widget entity the player is using.
1163
951
  *
@@ -1167,18 +955,14 @@ interface Player {
1167
955
  * @source https://wiki.facepunch.com/gmod/Player:GetPressedWidget
1168
956
  */
1169
957
  GetPressedWidget(self: Player): Entity;
1170
- }
1171
958
 
1172
- interface Player {
1173
959
  /**
1174
960
  * Returns the weapon the player previously had equipped.
1175
961
  * @realm shared
1176
962
  * @source https://wiki.facepunch.com/gmod/Player:GetPreviousWeapon
1177
963
  */
1178
964
  GetPreviousWeapon(self: Player): Entity;
1179
- }
1180
965
 
1181
- interface Player {
1182
966
  /**
1183
967
  * Returns players screen punch effect angle. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch) and [Player:SetViewPunchAngles](https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles)
1184
968
  *
@@ -1188,9 +972,7 @@ interface Player {
1188
972
  * @deprecated You should use Player:GetViewPunchAngles instead.
1189
973
  */
1190
974
  GetPunchAngle(self: Player): Angle;
1191
- }
1192
975
 
1193
- interface Player {
1194
976
  /**
1195
977
  * Returns players death ragdoll. The ragdoll is created by [Player:CreateRagdoll](https://wiki.facepunch.com/gmod/Player:CreateRagdoll).
1196
978
  * **NOTE**: Calling [Entity:GetPos](https://wiki.facepunch.com/gmod/Entity:GetPos) server-side with this function then will return the position where [Player:CreateRagdoll](https://wiki.facepunch.com/gmod/Player:CreateRagdoll) was used, as it is a hl2mp_ragdoll which is a serverside point entity that creates a clientside ragdoll for everyone (opposed to prop_ragdoll that is serverside and networks).
@@ -1200,9 +982,7 @@ interface Player {
1200
982
  * @source https://wiki.facepunch.com/gmod/Player:GetRagdollEntity
1201
983
  */
1202
984
  GetRagdollEntity(self: Player): Entity;
1203
- }
1204
985
 
1205
- interface Player {
1206
986
  /**
1207
987
  * Returns the player's sprint speed.
1208
988
  *
@@ -1212,9 +992,7 @@ interface Player {
1212
992
  * @source https://wiki.facepunch.com/gmod/Player:GetRunSpeed
1213
993
  */
1214
994
  GetRunSpeed(self: Player): number;
1215
- }
1216
995
 
1217
- interface Player {
1218
996
  /**
1219
997
  * Returns the position of a Player's view
1220
998
  *
@@ -1225,9 +1003,7 @@ interface Player {
1225
1003
  * @source https://wiki.facepunch.com/gmod/Player:GetShootPos
1226
1004
  */
1227
1005
  GetShootPos(self: Player): Vector;
1228
- }
1229
1006
 
1230
- interface Player {
1231
1007
  /**
1232
1008
  * Returns the player's slow walking speed, which is activated via +WALK keybind.
1233
1009
  *
@@ -1237,18 +1013,14 @@ interface Player {
1237
1013
  * @source https://wiki.facepunch.com/gmod/Player:GetSlowWalkSpeed
1238
1014
  */
1239
1015
  GetSlowWalkSpeed(self: Player): number;
1240
- }
1241
1016
 
1242
- interface Player {
1243
1017
  /**
1244
1018
  * Returns the maximum height player can step onto.
1245
1019
  * @realm shared
1246
1020
  * @source https://wiki.facepunch.com/gmod/Player:GetStepSize
1247
1021
  */
1248
1022
  GetStepSize(self: Player): number;
1249
- }
1250
1023
 
1251
- interface Player {
1252
1024
  /**
1253
1025
  * Returns the player's HEV suit power.
1254
1026
  *
@@ -1258,9 +1030,7 @@ interface Player {
1258
1030
  * @source https://wiki.facepunch.com/gmod/Player:GetSuitPower
1259
1031
  */
1260
1032
  GetSuitPower(self: Player): number;
1261
- }
1262
1033
 
1263
- interface Player {
1264
1034
  /**
1265
1035
  * Returns the number of seconds that the player has been timing out for. You can check if a player is timing out with [Player:IsTimingOut](https://wiki.facepunch.com/gmod/Player:IsTimingOut).
1266
1036
  *
@@ -1270,27 +1040,21 @@ interface Player {
1270
1040
  * @source https://wiki.facepunch.com/gmod/Player:GetTimeoutSeconds
1271
1041
  */
1272
1042
  GetTimeoutSeconds(self: Player): number;
1273
- }
1274
1043
 
1275
- interface Player {
1276
1044
  /**
1277
1045
  * Returns [TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) table of players current tool, or of the one specified.
1278
1046
  * @realm shared
1279
1047
  * @source https://wiki.facepunch.com/gmod/Player:GetTool
1280
1048
  */
1281
1049
  GetTool(self: Player, mode?: string): table;
1282
- }
1283
1050
 
1284
- interface Player {
1285
1051
  /**
1286
1052
  * Returns a player's unduck speed (in seconds)
1287
1053
  * @realm shared
1288
1054
  * @source https://wiki.facepunch.com/gmod/Player:GetUnDuckSpeed
1289
1055
  */
1290
1056
  GetUnDuckSpeed(self: Player): number;
1291
- }
1292
1057
 
1293
- interface Player {
1294
1058
  /**
1295
1059
  * Returns the entity the player would use if they would press their `+use` keybind.
1296
1060
  * **NOTE**: Because entity physics objects usually do not exist on the client, the client's use entity will resolve to whatever the crosshair is placed on within a little less than 72 units of the player's eye position. This differs from the entity returned by the server, which has fully physical use checking. See [util.TraceHull](https://wiki.facepunch.com/gmod/util.TraceHull).
@@ -1302,27 +1066,21 @@ interface Player {
1302
1066
  * @source https://wiki.facepunch.com/gmod/Player:GetUseEntity
1303
1067
  */
1304
1068
  GetUseEntity(self: Player): Entity;
1305
- }
1306
1069
 
1307
- interface Player {
1308
1070
  /**
1309
1071
  * Returns the player's user group. By default, player user groups are loaded from `garrysmod/settings/users.txt`.
1310
1072
  * @realm shared
1311
1073
  * @source https://wiki.facepunch.com/gmod/Player:GetUserGroup
1312
1074
  */
1313
1075
  GetUserGroup(self: Player): string;
1314
- }
1315
1076
 
1316
- interface Player {
1317
1077
  /**
1318
1078
  * Returns the vehicle the player is driving.
1319
1079
  * @realm shared
1320
1080
  * @source https://wiki.facepunch.com/gmod/Player:GetVehicle
1321
1081
  */
1322
1082
  GetVehicle(self: Player): Vehicle;
1323
- }
1324
1083
 
1325
- interface Player {
1326
1084
  /**
1327
1085
  * Returns the entity the player is using to see from (such as the player itself, the camera, or another entity).
1328
1086
  *
@@ -1335,9 +1093,7 @@ interface Player {
1335
1093
  * @source https://wiki.facepunch.com/gmod/Player:GetViewEntity
1336
1094
  */
1337
1095
  GetViewEntity(self: Player): Entity;
1338
- }
1339
1096
 
1340
- interface Player {
1341
1097
  /**
1342
1098
  * Returns the player's view model entity by the index.
1343
1099
  * Each player has 3 view models by default, but only the first one is used.
@@ -1351,9 +1107,7 @@ interface Player {
1351
1107
  * @source https://wiki.facepunch.com/gmod/Player:GetViewModel
1352
1108
  */
1353
1109
  GetViewModel(self: Player, index?: number): Entity;
1354
- }
1355
1110
 
1356
- interface Player {
1357
1111
  /**
1358
1112
  * Returns the view offset of the player, which equals the difference between the player's actual position and their view when standing.
1359
1113
  *
@@ -1363,9 +1117,7 @@ interface Player {
1363
1117
  * @source https://wiki.facepunch.com/gmod/Player:GetViewOffset
1364
1118
  */
1365
1119
  GetViewOffset(self: Player): Vector;
1366
- }
1367
1120
 
1368
- interface Player {
1369
1121
  /**
1370
1122
  * Returns the ducked view offset of the player, which equals the difference between the player's actual position and their view when ducked.
1371
1123
  *
@@ -1375,36 +1127,28 @@ interface Player {
1375
1127
  * @source https://wiki.facepunch.com/gmod/Player:GetViewOffsetDucked
1376
1128
  */
1377
1129
  GetViewOffsetDucked(self: Player): Vector;
1378
- }
1379
1130
 
1380
- interface Player {
1381
1131
  /**
1382
1132
  * Returns players screen punch effect angle.
1383
1133
  * @realm shared
1384
1134
  * @source https://wiki.facepunch.com/gmod/Player:GetViewPunchAngles
1385
1135
  */
1386
1136
  GetViewPunchAngles(self: Player): Angle;
1387
- }
1388
1137
 
1389
- interface Player {
1390
1138
  /**
1391
1139
  * Returns client's view punch velocity. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch) and [Player:SetViewPunchVelocity](https://wiki.facepunch.com/gmod/Player:SetViewPunchVelocity)
1392
1140
  * @realm shared
1393
1141
  * @source https://wiki.facepunch.com/gmod/Player:GetViewPunchVelocity
1394
1142
  */
1395
1143
  GetViewPunchVelocity(self: Player): Angle;
1396
- }
1397
1144
 
1398
- interface Player {
1399
1145
  /**
1400
1146
  * Returns the current voice volume scale for given player on client.
1401
1147
  * @realm client
1402
1148
  * @source https://wiki.facepunch.com/gmod/Player:GetVoiceVolumeScale
1403
1149
  */
1404
1150
  GetVoiceVolumeScale(self: Player): number;
1405
- }
1406
1151
 
1407
- interface Player {
1408
1152
  /**
1409
1153
  * Returns the player's normal walking speed. Not sprinting, not slow walking. (+walk)
1410
1154
  *
@@ -1414,18 +1158,14 @@ interface Player {
1414
1158
  * @source https://wiki.facepunch.com/gmod/Player:GetWalkSpeed
1415
1159
  */
1416
1160
  GetWalkSpeed(self: Player): number;
1417
- }
1418
1161
 
1419
- interface Player {
1420
1162
  /**
1421
1163
  * Returns the weapon for the specified class
1422
1164
  * @realm shared
1423
1165
  * @source https://wiki.facepunch.com/gmod/Player:GetWeapon
1424
1166
  */
1425
1167
  GetWeapon(self: Player, className: string): Weapon;
1426
- }
1427
1168
 
1428
- interface Player {
1429
1169
  /**
1430
1170
  * Returns a player's weapon color.
1431
1171
  *
@@ -1437,9 +1177,7 @@ interface Player {
1437
1177
  * @source https://wiki.facepunch.com/gmod/Player:GetWeaponColor
1438
1178
  */
1439
1179
  GetWeaponColor(self: Player): Vector;
1440
- }
1441
1180
 
1442
- interface Player {
1443
1181
  /**
1444
1182
  * Returns a table of the player's weapons.
1445
1183
  * **NOTE**: This function returns a sequential table. Prefer to loop it with [Global.ipairs](https://wiki.facepunch.com/gmod/Global.ipairs) instead of the [Global.pairs](https://wiki.facepunch.com/gmod/Global.pairs) function.
@@ -1449,9 +1187,7 @@ interface Player {
1449
1187
  * @source https://wiki.facepunch.com/gmod/Player:GetWeapons
1450
1188
  */
1451
1189
  GetWeapons(self: Player): table;
1452
- }
1453
1190
 
1454
- interface Player {
1455
1191
  /**
1456
1192
  * Gives the player a weapon.
1457
1193
  *
@@ -1464,36 +1200,28 @@ interface Player {
1464
1200
  * @source https://wiki.facepunch.com/gmod/Player:Give
1465
1201
  */
1466
1202
  Give(self: Player, weaponClassName: string, bNoAmmo?: boolean): Weapon;
1467
- }
1468
1203
 
1469
- interface Player {
1470
1204
  /**
1471
1205
  * Gives ammo to a player
1472
1206
  * @realm server
1473
1207
  * @source https://wiki.facepunch.com/gmod/Player:GiveAmmo
1474
1208
  */
1475
1209
  GiveAmmo(self: Player, amount: number, type: string | number, hidePopup?: boolean): number;
1476
- }
1477
1210
 
1478
- interface Player {
1479
1211
  /**
1480
1212
  * Disables god mode on the player. Removes the [FL_GODMODE](https://wiki.facepunch.com/gmod/Enums/FL#FL_GODMODE) flag from the player.
1481
1213
  * @realm server
1482
1214
  * @source https://wiki.facepunch.com/gmod/Player:GodDisable
1483
1215
  */
1484
1216
  GodDisable(self: Player): void;
1485
- }
1486
1217
 
1487
- interface Player {
1488
1218
  /**
1489
1219
  * Enables god mode on the player. Adds the [FL_GODMODE](https://wiki.facepunch.com/gmod/Enums/FL#FL_GODMODE) flag to the player.
1490
1220
  * @realm server
1491
1221
  * @source https://wiki.facepunch.com/gmod/Player:GodEnable
1492
1222
  */
1493
1223
  GodEnable(self: Player): void;
1494
- }
1495
1224
 
1496
- interface Player {
1497
1225
  /**
1498
1226
  * Returns whether the player has god mode or not, contolled by [Player:GodEnable](https://wiki.facepunch.com/gmod/Player:GodEnable) and [Player:GodDisable](https://wiki.facepunch.com/gmod/Player:GodDisable).
1499
1227
  *
@@ -1501,18 +1229,14 @@ interface Player {
1501
1229
  * @source https://wiki.facepunch.com/gmod/Player:HasGodMode
1502
1230
  */
1503
1231
  HasGodMode(self: Player): boolean;
1504
- }
1505
1232
 
1506
- interface Player {
1507
1233
  /**
1508
1234
  * Returns if the player has the specified weapon
1509
1235
  * @realm shared
1510
1236
  * @source https://wiki.facepunch.com/gmod/Player:HasWeapon
1511
1237
  */
1512
1238
  HasWeapon(self: Player, className: string): boolean;
1513
- }
1514
1239
 
1515
- interface Player {
1516
1240
  /**
1517
1241
  * Returns the player's IP address and connection port in ip:port form
1518
1242
  * **NOTE**: Returns `Error!` for bots.
@@ -1521,18 +1245,14 @@ interface Player {
1521
1245
  * @source https://wiki.facepunch.com/gmod/Player:IPAddress
1522
1246
  */
1523
1247
  IPAddress(self: Player): string;
1524
- }
1525
1248
 
1526
- interface Player {
1527
1249
  /**
1528
1250
  * Returns if the player is in a vehicle
1529
1251
  * @realm shared
1530
1252
  * @source https://wiki.facepunch.com/gmod/Player:InVehicle
1531
1253
  */
1532
1254
  InVehicle(self: Player): boolean;
1533
- }
1534
1255
 
1535
- interface Player {
1536
1256
  /**
1537
1257
  * Returns whether the player is an admin or not. It will also return `true` if the player is [Player:IsSuperAdmin](https://wiki.facepunch.com/gmod/Player:IsSuperAdmin) by default.
1538
1258
  *
@@ -1542,45 +1262,35 @@ interface Player {
1542
1262
  * @source https://wiki.facepunch.com/gmod/Player:IsAdmin
1543
1263
  */
1544
1264
  IsAdmin(self: Player): boolean;
1545
- }
1546
1265
 
1547
- interface Player {
1548
1266
  /**
1549
1267
  * Returns if the player is an bot or not
1550
1268
  * @realm shared
1551
1269
  * @source https://wiki.facepunch.com/gmod/Player:IsBot
1552
1270
  */
1553
1271
  IsBot(self: Player): boolean;
1554
- }
1555
1272
 
1556
- interface Player {
1557
1273
  /**
1558
1274
  * Returns true from the point when the player is sending client info but not fully in the game until they disconnect.
1559
1275
  * @realm server
1560
1276
  * @source https://wiki.facepunch.com/gmod/Player:IsConnected
1561
1277
  */
1562
1278
  IsConnected(self: Player): boolean;
1563
- }
1564
1279
 
1565
- interface Player {
1566
1280
  /**
1567
1281
  * Used to find out if a player is currently 'driving' an entity (by which we mean 'right click > drive' ).
1568
1282
  * @realm shared
1569
1283
  * @source https://wiki.facepunch.com/gmod/Player:IsDrivingEntity
1570
1284
  */
1571
1285
  IsDrivingEntity(self: Player): boolean;
1572
- }
1573
1286
 
1574
- interface Player {
1575
1287
  /**
1576
1288
  * Returns whether the players movement is currently frozen, controlled by [Player:Freeze](https://wiki.facepunch.com/gmod/Player:Freeze).
1577
1289
  * @realm shared
1578
1290
  * @source https://wiki.facepunch.com/gmod/Player:IsFrozen
1579
1291
  */
1580
1292
  IsFrozen(self: Player): boolean;
1581
- }
1582
1293
 
1583
- interface Player {
1584
1294
  /**
1585
1295
  * Returns whether the player identity was confirmed by the Steam network.
1586
1296
  *
@@ -1590,45 +1300,35 @@ interface Player {
1590
1300
  * @source https://wiki.facepunch.com/gmod/Player:IsFullyAuthenticated
1591
1301
  */
1592
1302
  IsFullyAuthenticated(self: Player): boolean;
1593
- }
1594
1303
 
1595
- interface Player {
1596
1304
  /**
1597
1305
  * Returns if a player is the host of the current session.
1598
1306
  * @realm shared
1599
1307
  * @source https://wiki.facepunch.com/gmod/Player:IsListenServerHost
1600
1308
  */
1601
1309
  IsListenServerHost(self: Player): boolean;
1602
- }
1603
1310
 
1604
- interface Player {
1605
1311
  /**
1606
1312
  * Returns whether or not the player is voice muted locally.
1607
1313
  * @realm client
1608
1314
  * @source https://wiki.facepunch.com/gmod/Player:IsMuted
1609
1315
  */
1610
1316
  IsMuted(self: Player): boolean;
1611
- }
1612
1317
 
1613
- interface Player {
1614
1318
  /**
1615
1319
  * Returns true if the player is playing a taunt.
1616
1320
  * @realm shared
1617
1321
  * @source https://wiki.facepunch.com/gmod/Player:IsPlayingTaunt
1618
1322
  */
1619
1323
  IsPlayingTaunt(self: Player): boolean;
1620
- }
1621
1324
 
1622
- interface Player {
1623
1325
  /**
1624
1326
  * Returns whenever the player is heard by the local player clientside, or if the player is speaking serverside.
1625
1327
  * @realm shared
1626
1328
  * @source https://wiki.facepunch.com/gmod/Player:IsSpeaking
1627
1329
  */
1628
1330
  IsSpeaking(self: Player): boolean;
1629
- }
1630
1331
 
1631
- interface Player {
1632
1332
  /**
1633
1333
  * Returns whether the player is currently sprinting or not, specifically if they are holding their sprint key and are allowed to sprint.
1634
1334
  *
@@ -1637,9 +1337,7 @@ interface Player {
1637
1337
  * @source https://wiki.facepunch.com/gmod/Player:IsSprinting
1638
1338
  */
1639
1339
  IsSprinting(self: Player): boolean;
1640
- }
1641
1340
 
1642
- interface Player {
1643
1341
  /**
1644
1342
  * Returns whenever the player is equipped with the suit item.
1645
1343
  *
@@ -1649,9 +1347,7 @@ interface Player {
1649
1347
  * @source https://wiki.facepunch.com/gmod/Player:IsSuitEquipped
1650
1348
  */
1651
1349
  IsSuitEquipped(self: Player): boolean;
1652
- }
1653
1350
 
1654
- interface Player {
1655
1351
  /**
1656
1352
  * Returns whether the player is a super admin.
1657
1353
  *
@@ -1661,9 +1357,7 @@ interface Player {
1661
1357
  * @source https://wiki.facepunch.com/gmod/Player:IsSuperAdmin
1662
1358
  */
1663
1359
  IsSuperAdmin(self: Player): boolean;
1664
- }
1665
1360
 
1666
- interface Player {
1667
1361
  /**
1668
1362
  * Returns `true` if the player is timing out (i.e. is losing connection), `false` otherwise.
1669
1363
  *
@@ -1672,9 +1366,7 @@ interface Player {
1672
1366
  * @source https://wiki.facepunch.com/gmod/Player:IsTimingOut
1673
1367
  */
1674
1368
  IsTimingOut(self: Player): boolean;
1675
- }
1676
1369
 
1677
- interface Player {
1678
1370
  /**
1679
1371
  * Returns whether the player is typing in their chat.
1680
1372
  *
@@ -1684,36 +1376,28 @@ interface Player {
1684
1376
  * @source https://wiki.facepunch.com/gmod/Player:IsTyping
1685
1377
  */
1686
1378
  IsTyping(self: Player): boolean;
1687
- }
1688
1379
 
1689
- interface Player {
1690
1380
  /**
1691
1381
  * Returns whether the player is in specified group or not. See [Player:GetUserGroup](https://wiki.facepunch.com/gmod/Player:GetUserGroup) for a way to get player's user group.
1692
1382
  * @realm shared
1693
1383
  * @source https://wiki.facepunch.com/gmod/Player:IsUserGroup
1694
1384
  */
1695
1385
  IsUserGroup(self: Player, groupName: string): boolean;
1696
- }
1697
1386
 
1698
- interface Player {
1699
1387
  /**
1700
1388
  * Returns if the player can be heard by the local player.
1701
1389
  * @realm client
1702
1390
  * @source https://wiki.facepunch.com/gmod/Player:IsVoiceAudible
1703
1391
  */
1704
1392
  IsVoiceAudible(self: Player): boolean;
1705
- }
1706
1393
 
1707
- interface Player {
1708
1394
  /**
1709
1395
  * Returns if the player currently walking. (`+walk` keybind)
1710
1396
  * @realm shared
1711
1397
  * @source https://wiki.facepunch.com/gmod/Player:IsWalking
1712
1398
  */
1713
1399
  IsWalking(self: Player): boolean;
1714
- }
1715
1400
 
1716
- interface Player {
1717
1401
  /**
1718
1402
  * Returns whether the player is using the world clicking feature, see [Panel:SetWorldClicker](https://wiki.facepunch.com/gmod/Panel:SetWorldClicker)
1719
1403
  *
@@ -1721,9 +1405,7 @@ interface Player {
1721
1405
  * @source https://wiki.facepunch.com/gmod/Player:IsWorldClicking
1722
1406
  */
1723
1407
  IsWorldClicking(self: Player): boolean;
1724
- }
1725
1408
 
1726
- interface Player {
1727
1409
  /**
1728
1410
  * Returns whether the world clicking is disabled for given player or not. See [Player:DisableWorldClicking](https://wiki.facepunch.com/gmod/Player:DisableWorldClicking).
1729
1411
  *
@@ -1731,45 +1413,35 @@ interface Player {
1731
1413
  * @source https://wiki.facepunch.com/gmod/Player:IsWorldClickingDisabled
1732
1414
  */
1733
1415
  IsWorldClickingDisabled(self: Player): boolean;
1734
- }
1735
1416
 
1736
- interface Player {
1737
1417
  /**
1738
1418
  * Returns whether a key is down. This is not networked to other players, meaning only the local client can see the keys they are pressing.
1739
1419
  * @realm shared
1740
1420
  * @source https://wiki.facepunch.com/gmod/Player:KeyDown
1741
1421
  */
1742
1422
  KeyDown(self: Player, key: number): boolean;
1743
- }
1744
1423
 
1745
- interface Player {
1746
1424
  /**
1747
1425
  * Gets whether a key was down one tick ago.
1748
1426
  * @realm shared
1749
1427
  * @source https://wiki.facepunch.com/gmod/Player:KeyDownLast
1750
1428
  */
1751
1429
  KeyDownLast(self: Player, key: number): boolean;
1752
- }
1753
1430
 
1754
- interface Player {
1755
1431
  /**
1756
1432
  * Gets whether a key was just pressed this tick.
1757
1433
  * @realm shared
1758
1434
  * @source https://wiki.facepunch.com/gmod/Player:KeyPressed
1759
1435
  */
1760
1436
  KeyPressed(self: Player, key: number): boolean;
1761
- }
1762
1437
 
1763
- interface Player {
1764
1438
  /**
1765
1439
  * Gets whether a key was just released this tick.
1766
1440
  * @realm shared
1767
1441
  * @source https://wiki.facepunch.com/gmod/Player:KeyReleased
1768
1442
  */
1769
1443
  KeyReleased(self: Player, key: number): boolean;
1770
- }
1771
1444
 
1772
- interface Player {
1773
1445
  /**
1774
1446
  * Kicks the player from the server.
1775
1447
  * **NOTE**: This can not be run before the player has fully joined in. Use [game.KickID](https://wiki.facepunch.com/gmod/game.KickID) for that.
@@ -1779,18 +1451,14 @@ interface Player {
1779
1451
  * @source https://wiki.facepunch.com/gmod/Player:Kick
1780
1452
  */
1781
1453
  Kick(self: Player, reason?: string): void;
1782
- }
1783
1454
 
1784
- interface Player {
1785
1455
  /**
1786
1456
  * Kills a player and calls [GM:PlayerDeath](https://wiki.facepunch.com/gmod/GM:PlayerDeath).
1787
1457
  * @realm server
1788
1458
  * @source https://wiki.facepunch.com/gmod/Player:Kill
1789
1459
  */
1790
1460
  Kill(self: Player): void;
1791
- }
1792
1461
 
1793
- interface Player {
1794
1462
  /**
1795
1463
  * Kills a player without notifying the rest of the server.
1796
1464
  *
@@ -1800,9 +1468,7 @@ interface Player {
1800
1468
  * @source https://wiki.facepunch.com/gmod/Player:KillSilent
1801
1469
  */
1802
1470
  KillSilent(self: Player): void;
1803
- }
1804
1471
 
1805
- interface Player {
1806
1472
  /**
1807
1473
  * This allows the server to mitigate the lag of the player by moving back all the entities that can be lag compensated to the time the player attacked with his weapon.
1808
1474
  *
@@ -1824,18 +1490,14 @@ interface Player {
1824
1490
  * @source https://wiki.facepunch.com/gmod/Player:LagCompensation
1825
1491
  */
1826
1492
  LagCompensation(self: Player, lagCompensation: boolean): void;
1827
- }
1828
1493
 
1829
- interface Player {
1830
1494
  /**
1831
1495
  * Returns the hitgroup where the player was last hit.
1832
1496
  * @realm server
1833
1497
  * @source https://wiki.facepunch.com/gmod/Player:LastHitGroup
1834
1498
  */
1835
1499
  LastHitGroup(self: Player): number;
1836
- }
1837
1500
 
1838
- interface Player {
1839
1501
  /**
1840
1502
  * Shows "limit hit" notification in sandbox.
1841
1503
  * **NOTE**: This function is only available in Sandbox and its derivatives.
@@ -1845,9 +1507,7 @@ interface Player {
1845
1507
  * @source https://wiki.facepunch.com/gmod/Player:LimitHit
1846
1508
  */
1847
1509
  LimitHit(self: Player, type: string): void;
1848
- }
1849
1510
 
1850
- interface Player {
1851
1511
  /**
1852
1512
  * Returns the direction a player is looking as a entity/local-oriented angle.
1853
1513
  *
@@ -1859,9 +1519,7 @@ interface Player {
1859
1519
  * @source https://wiki.facepunch.com/gmod/Player:LocalEyeAngles
1860
1520
  */
1861
1521
  LocalEyeAngles(self: Player): Angle;
1862
- }
1863
1522
 
1864
- interface Player {
1865
1523
  /**
1866
1524
  * Stops a player from using any inputs, such as moving, turning, or attacking. Key binds are still called. Similar to [Player:Freeze](https://wiki.facepunch.com/gmod/Player:Freeze) but the player takes no damage.
1867
1525
  *
@@ -1872,18 +1530,14 @@ interface Player {
1872
1530
  * @source https://wiki.facepunch.com/gmod/Player:Lock
1873
1531
  */
1874
1532
  Lock(self: Player): void;
1875
- }
1876
1533
 
1877
- interface Player {
1878
1534
  /**
1879
1535
  * Returns the position of a Kinect bone.
1880
1536
  * @realm shared
1881
1537
  * @source https://wiki.facepunch.com/gmod/Player:MotionSensorPos
1882
1538
  */
1883
1539
  MotionSensorPos(self: Player, bone: number): Vector;
1884
- }
1885
1540
 
1886
- interface Player {
1887
1541
  /**
1888
1542
  * Returns the player's nick name. Identical to [Player:Nick](https://wiki.facepunch.com/gmod/Player:Nick) and [Player:GetName](https://wiki.facepunch.com/gmod/Player:GetName).
1889
1543
  * @realm shared
@@ -1891,18 +1545,14 @@ interface Player {
1891
1545
  * @deprecated Use Player:Nick.
1892
1546
  */
1893
1547
  Name(self: Player): string;
1894
- }
1895
1548
 
1896
- interface Player {
1897
1549
  /**
1898
1550
  * Returns the player's nick name also known as display name, as it appears in Steam.
1899
1551
  * @realm shared
1900
1552
  * @source https://wiki.facepunch.com/gmod/Player:Nick
1901
1553
  */
1902
1554
  Nick(self: Player): string;
1903
- }
1904
1555
 
1905
- interface Player {
1906
1556
  /**
1907
1557
  * Returns the 64-bit SteamID aka CommunityID of the Steam Account that owns the Garry's Mod license this player is using. This is useful for detecting players using Steam Family Sharing.
1908
1558
  *
@@ -1915,18 +1565,14 @@ interface Player {
1915
1565
  * @source https://wiki.facepunch.com/gmod/Player:OwnerSteamID64
1916
1566
  */
1917
1567
  OwnerSteamID64(self: Player): string;
1918
- }
1919
1568
 
1920
- interface Player {
1921
1569
  /**
1922
1570
  * Returns the percentage of packets lost by the client. It is not networked so it only returns 0 when run clientside.
1923
1571
  * @realm shared
1924
1572
  * @source https://wiki.facepunch.com/gmod/Player:PacketLoss
1925
1573
  */
1926
1574
  PacketLoss(self: Player): number;
1927
- }
1928
1575
 
1929
- interface Player {
1930
1576
  /**
1931
1577
  * Unfreezes the props player is looking at. This is essentially the same as pressing reload with the physics gun, including double press for unfreeze all.
1932
1578
  *
@@ -1935,9 +1581,7 @@ interface Player {
1935
1581
  * @source https://wiki.facepunch.com/gmod/Player:PhysgunUnfreeze
1936
1582
  */
1937
1583
  PhysgunUnfreeze(self: Player): number;
1938
- }
1939
1584
 
1940
- interface Player {
1941
1585
  /**
1942
1586
  * This makes the player hold (same as pressing E on a small prop) given entity.
1943
1587
  *
@@ -1949,9 +1593,7 @@ interface Player {
1949
1593
  * @source https://wiki.facepunch.com/gmod/Player:PickupObject
1950
1594
  */
1951
1595
  PickupObject(self: Player, entity: Entity): void;
1952
- }
1953
1596
 
1954
- interface Player {
1955
1597
  /**
1956
1598
  * Forces the player to pickup an existing weapon entity. The player will not pick up the weapon if they already own a weapon of given type, or if the player could not normally have this weapon in their inventory.
1957
1599
  *
@@ -1961,27 +1603,21 @@ interface Player {
1961
1603
  * @source https://wiki.facepunch.com/gmod/Player:PickupWeapon
1962
1604
  */
1963
1605
  PickupWeapon(self: Player, wep: Weapon, ammoOnly?: boolean): boolean;
1964
- }
1965
1606
 
1966
- interface Player {
1967
1607
  /**
1968
1608
  * Returns the player's ping to server.
1969
1609
  * @realm shared
1970
1610
  * @source https://wiki.facepunch.com/gmod/Player:Ping
1971
1611
  */
1972
1612
  Ping(self: Player): number;
1973
- }
1974
1613
 
1975
- interface Player {
1976
1614
  /**
1977
1615
  * Plays the correct step sound according to what the player is staying on.
1978
1616
  * @realm server
1979
1617
  * @source https://wiki.facepunch.com/gmod/Player:PlayStepSound
1980
1618
  */
1981
1619
  PlayStepSound(self: Player, volume?: number): void;
1982
- }
1983
1620
 
1984
- interface Player {
1985
1621
  /**
1986
1622
  * Displays a message either in their chat, console, or center of the screen. See also [Global.PrintMessage](https://wiki.facepunch.com/gmod/Global.PrintMessage).
1987
1623
  *
@@ -1994,36 +1630,28 @@ interface Player {
1994
1630
  * @source https://wiki.facepunch.com/gmod/Player:PrintMessage
1995
1631
  */
1996
1632
  PrintMessage(self: Player, type: number, message: string): void;
1997
- }
1998
1633
 
1999
- interface Player {
2000
1634
  /**
2001
1635
  * Removes all ammo from a certain player
2002
1636
  * @realm server
2003
1637
  * @source https://wiki.facepunch.com/gmod/Player:RemoveAllAmmo
2004
1638
  */
2005
1639
  RemoveAllAmmo(self: Player): void;
2006
- }
2007
1640
 
2008
- interface Player {
2009
1641
  /**
2010
1642
  * Removes all weapons and ammo from the player.
2011
1643
  * @realm server
2012
1644
  * @source https://wiki.facepunch.com/gmod/Player:RemoveAllItems
2013
1645
  */
2014
1646
  RemoveAllItems(self: Player): void;
2015
- }
2016
1647
 
2017
- interface Player {
2018
1648
  /**
2019
1649
  * Removes the amount of the specified ammo from the player.
2020
1650
  * @realm shared
2021
1651
  * @source https://wiki.facepunch.com/gmod/Player:RemoveAmmo
2022
1652
  */
2023
1653
  RemoveAmmo(self: Player, ammoCount: number, ammoName: string | number): void;
2024
- }
2025
1654
 
2026
- interface Player {
2027
1655
  /**
2028
1656
  * Removes a **P**ersistent **Data** key-value pair from the SQL database. (`sv.db` when called on server, `cl.db` when called on client)
2029
1657
  *
@@ -2038,27 +1666,21 @@ interface Player {
2038
1666
  * @source https://wiki.facepunch.com/gmod/Player:RemovePData
2039
1667
  */
2040
1668
  RemovePData(self: Player, key: string): boolean;
2041
- }
2042
1669
 
2043
- interface Player {
2044
1670
  /**
2045
1671
  * Strips the player's suit item.
2046
1672
  * @realm server
2047
1673
  * @source https://wiki.facepunch.com/gmod/Player:RemoveSuit
2048
1674
  */
2049
1675
  RemoveSuit(self: Player): void;
2050
- }
2051
1676
 
2052
- interface Player {
2053
1677
  /**
2054
1678
  * Resets both normal and duck hulls to their default values.
2055
1679
  * @realm shared
2056
1680
  * @source https://wiki.facepunch.com/gmod/Player:ResetHull
2057
1681
  */
2058
1682
  ResetHull(self: Player): void;
2059
- }
2060
1683
 
2061
- interface Player {
2062
1684
  /**
2063
1685
  * Forces the player to say whatever the first argument is. Works on bots too.
2064
1686
  *
@@ -2071,18 +1693,14 @@ interface Player {
2071
1693
  * @source https://wiki.facepunch.com/gmod/Player:Say
2072
1694
  */
2073
1695
  Say(self: Player, text: string, teamOnly?: boolean): void;
2074
- }
2075
1696
 
2076
- interface Player {
2077
1697
  /**
2078
1698
  * Fades the screen
2079
1699
  * @realm shared
2080
1700
  * @source https://wiki.facepunch.com/gmod/Player:ScreenFade
2081
1701
  */
2082
1702
  ScreenFade(self: Player, flags: number, color?: Color, fadeTime?: number, fadeHold?: number): void;
2083
- }
2084
1703
 
2085
- interface Player {
2086
1704
  /**
2087
1705
  * Sets the active weapon of the player by its class name.
2088
1706
  *
@@ -2096,9 +1714,7 @@ interface Player {
2096
1714
  * @source https://wiki.facepunch.com/gmod/Player:SelectWeapon
2097
1715
  */
2098
1716
  SelectWeapon(self: Player, className: string): void;
2099
- }
2100
1717
 
2101
- interface Player {
2102
1718
  /**
2103
1719
  * Sends a hint to a player.
2104
1720
  *
@@ -2109,9 +1725,7 @@ interface Player {
2109
1725
  * @source https://wiki.facepunch.com/gmod/Player:SendHint
2110
1726
  */
2111
1727
  SendHint(self: Player, name: string, delay: number): void;
2112
- }
2113
1728
 
2114
- interface Player {
2115
1729
  /**
2116
1730
  * Executes a simple Lua string on the player.
2117
1731
  * **NOTE**: If you need to use this function more than once consider using [net](https://wiki.facepunch.com/gmod/net) library. Send net message and make the entire code you want to execute in [net.Receive](https://wiki.facepunch.com/gmod/net.Receive) on client.
@@ -2121,9 +1735,7 @@ interface Player {
2121
1735
  * @source https://wiki.facepunch.com/gmod/Player:SendLua
2122
1736
  */
2123
1737
  SendLua(self: Player, script: string): void;
2124
- }
2125
1738
 
2126
- interface Player {
2127
1739
  /**
2128
1740
  * Sets the player's active weapon. You should use [CUserCmd:SelectWeapon](https://wiki.facepunch.com/gmod/CUserCmd:SelectWeapon) or [Player:SelectWeapon](https://wiki.facepunch.com/gmod/Player:SelectWeapon), instead in most cases.
2129
1741
  *
@@ -2134,27 +1746,21 @@ interface Player {
2134
1746
  * @source https://wiki.facepunch.com/gmod/Player:SetActiveWeapon
2135
1747
  */
2136
1748
  SetActiveWeapon(self: Player, weapon: Weapon): void;
2137
- }
2138
1749
 
2139
- interface Player {
2140
1750
  /**
2141
1751
  * Sets the player's activity.
2142
1752
  * @realm server
2143
1753
  * @source https://wiki.facepunch.com/gmod/Player:SetActivity
2144
1754
  */
2145
1755
  SetActivity(self: Player, act: number): void;
2146
- }
2147
1756
 
2148
- interface Player {
2149
1757
  /**
2150
1758
  * Set if the players' model is allowed to rotate around the pitch and roll axis.
2151
1759
  * @realm shared
2152
1760
  * @source https://wiki.facepunch.com/gmod/Player:SetAllowFullRotation
2153
1761
  */
2154
1762
  SetAllowFullRotation(self: Player, Allowed: boolean): void;
2155
- }
2156
1763
 
2157
- interface Player {
2158
1764
  /**
2159
1765
  * Allows player to use their weapons in a vehicle. You need to call this before entering a vehicle.
2160
1766
  *
@@ -2164,18 +1770,14 @@ interface Player {
2164
1770
  * @source https://wiki.facepunch.com/gmod/Player:SetAllowWeaponsInVehicle
2165
1771
  */
2166
1772
  SetAllowWeaponsInVehicle(self: Player, allow: boolean): void;
2167
- }
2168
1773
 
2169
- interface Player {
2170
1774
  /**
2171
1775
  * Sets the amount of the specified ammo for the player.
2172
1776
  * @realm shared
2173
1777
  * @source https://wiki.facepunch.com/gmod/Player:SetAmmo
2174
1778
  */
2175
1779
  SetAmmo(self: Player, ammoCount: number, ammoType: any): void;
2176
- }
2177
1780
 
2178
- interface Player {
2179
1781
  /**
2180
1782
  * Sets the player armor value.
2181
1783
  *
@@ -2185,9 +1787,7 @@ interface Player {
2185
1787
  * @source https://wiki.facepunch.com/gmod/Player:SetArmor
2186
1788
  */
2187
1789
  SetArmor(self: Player, amount: number): void;
2188
- }
2189
1790
 
2190
- interface Player {
2191
1791
  /**
2192
1792
  * Pushes the player away from other players whenever the player inside another players' bounding box.
2193
1793
  *
@@ -2198,27 +1798,21 @@ interface Player {
2198
1798
  * @source https://wiki.facepunch.com/gmod/Player:SetAvoidPlayers
2199
1799
  */
2200
1800
  SetAvoidPlayers(self: Player, avoidPlayers: boolean): void;
2201
- }
2202
1801
 
2203
- interface Player {
2204
1802
  /**
2205
1803
  * Set if the player should be allowed to walk using the (default) alt key. (`+walk` keybind)
2206
1804
  * @realm shared
2207
1805
  * @source https://wiki.facepunch.com/gmod/Player:SetCanWalk
2208
1806
  */
2209
1807
  SetCanWalk(self: Player, canWalk: boolean): void;
2210
- }
2211
1808
 
2212
- interface Player {
2213
1809
  /**
2214
1810
  * Sets whether the player can use the HL2 suit zoom (`+zoom` bind) or not.
2215
1811
  * @realm shared
2216
1812
  * @source https://wiki.facepunch.com/gmod/Player:SetCanZoom
2217
1813
  */
2218
1814
  SetCanZoom(self: Player, canZoom: boolean): void;
2219
- }
2220
1815
 
2221
- interface Player {
2222
1816
  /**
2223
1817
  * **INTERNAL**: Use [player_manager.SetPlayerClass](https://wiki.facepunch.com/gmod/player_manager.SetPlayerClass) instead.
2224
1818
  *
@@ -2228,9 +1822,7 @@ interface Player {
2228
1822
  * @source https://wiki.facepunch.com/gmod/Player:SetClassID
2229
1823
  */
2230
1824
  SetClassID(self: Player, classID: number): void;
2231
- }
2232
1825
 
2233
- interface Player {
2234
1826
  /**
2235
1827
  * Sets the crouched walk speed multiplier.
2236
1828
  *
@@ -2242,9 +1834,7 @@ interface Player {
2242
1834
  * @source https://wiki.facepunch.com/gmod/Player:SetCrouchedWalkSpeed
2243
1835
  */
2244
1836
  SetCrouchedWalkSpeed(self: Player, speed: number): void;
2245
- }
2246
1837
 
2247
- interface Player {
2248
1838
  /**
2249
1839
  * Sets the **actual** view offset which equals the difference between the players actual position and their view when standing.
2250
1840
  *
@@ -2254,9 +1844,7 @@ interface Player {
2254
1844
  * @source https://wiki.facepunch.com/gmod/Player:SetCurrentViewOffset
2255
1845
  */
2256
1846
  SetCurrentViewOffset(self: Player, viewOffset: Vector): void;
2257
- }
2258
1847
 
2259
- interface Player {
2260
1848
  /**
2261
1849
  * Activates a given DSP (Digital Signal Processor) effect on all sounds that
2262
1850
  * the player hears. Equivalent to setting the `dsp_player` convar on the player.
@@ -2264,19 +1852,14 @@ interface Player {
2264
1852
  * @source https://wiki.facepunch.com/gmod/Player:SetDSP
2265
1853
  */
2266
1854
  SetDSP(self: Player, dspEffectId: number, fastReset?: boolean): void;
2267
- }
2268
-
2269
1855
 
2270
- interface Player {
2271
1856
  /**
2272
1857
  * Sets a player's death count
2273
1858
  * @realm server
2274
1859
  * @source https://wiki.facepunch.com/gmod/Player:SetDeaths
2275
1860
  */
2276
1861
  SetDeaths(self: Player, deathCount: number): void;
2277
- }
2278
1862
 
2279
- interface Player {
2280
1863
  /**
2281
1864
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
2282
1865
  *
@@ -2288,9 +1871,7 @@ interface Player {
2288
1871
  * @source https://wiki.facepunch.com/gmod/Player:SetDrivingEntity
2289
1872
  */
2290
1873
  SetDrivingEntity(self: Player, drivingEntity?: Entity, drivingMode?: number): void;
2291
- }
2292
1874
 
2293
- interface Player {
2294
1875
  /**
2295
1876
  * Sets how quickly a player ducks.
2296
1877
  *
@@ -2300,9 +1881,7 @@ interface Player {
2300
1881
  * @source https://wiki.facepunch.com/gmod/Player:SetDuckSpeed
2301
1882
  */
2302
1883
  SetDuckSpeed(self: Player, duckSpeed: number): void;
2303
- }
2304
1884
 
2305
- interface Player {
2306
1885
  /**
2307
1886
  * Sets the local angle of the player's view (may rotate body too if angular difference is large)
2308
1887
  *
@@ -2313,9 +1892,7 @@ interface Player {
2313
1892
  * @source https://wiki.facepunch.com/gmod/Player:SetEyeAngles
2314
1893
  */
2315
1894
  SetEyeAngles(self: Player, angle: Angle): void;
2316
- }
2317
1895
 
2318
- interface Player {
2319
1896
  /**
2320
1897
  * Set a player's FOV (Field Of View) over a certain amount of time.
2321
1898
  *
@@ -2324,9 +1901,7 @@ interface Player {
2324
1901
  * @source https://wiki.facepunch.com/gmod/Player:SetFOV
2325
1902
  */
2326
1903
  SetFOV(self: Player, fov: number, time?: number, requester?: Entity): void;
2327
- }
2328
1904
 
2329
- interface Player {
2330
1905
  /**
2331
1906
  * Sets the color of a player's flashlight.
2332
1907
  * Can be used on other players.
@@ -2335,18 +1910,14 @@ interface Player {
2335
1910
  * @source https://wiki.facepunch.com/gmod/Player:SetFlashlightColor
2336
1911
  */
2337
1912
  SetFlashlightColor(self: Player, color?: Color): void;
2338
- }
2339
1913
 
2340
- interface Player {
2341
1914
  /**
2342
1915
  * Sets a player's frags (kills)
2343
1916
  * @realm server
2344
1917
  * @source https://wiki.facepunch.com/gmod/Player:SetFrags
2345
1918
  */
2346
1919
  SetFrags(self: Player, fragCount: number): void;
2347
- }
2348
1920
 
2349
- interface Player {
2350
1921
  /**
2351
1922
  * Sets the hands entity of a player.
2352
1923
  *
@@ -2357,18 +1928,14 @@ interface Player {
2357
1928
  * @source https://wiki.facepunch.com/gmod/Player:SetHands
2358
1929
  */
2359
1930
  SetHands(self: Player, hands: Entity): void;
2360
- }
2361
1931
 
2362
- interface Player {
2363
1932
  /**
2364
1933
  * Sets the widget that is currently hovered by the player's mouse.
2365
1934
  * @realm shared
2366
1935
  * @source https://wiki.facepunch.com/gmod/Player:SetHoveredWidget
2367
1936
  */
2368
1937
  SetHoveredWidget(self: Player, widget?: Entity): void;
2369
- }
2370
1938
 
2371
- interface Player {
2372
1939
  /**
2373
1940
  * Sets the size of the [Player's](https://wiki.facepunch.com/gmod/Player) [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull).
2374
1941
  *
@@ -2381,9 +1948,7 @@ interface Player {
2381
1948
  * @source https://wiki.facepunch.com/gmod/Player:SetHull
2382
1949
  */
2383
1950
  SetHull(self: Player, mins: Vector, maxs: Vector): void;
2384
- }
2385
1951
 
2386
- interface Player {
2387
1952
  /**
2388
1953
  * Sets the size of the [Player's](https://wiki.facepunch.com/gmod/Player) [Axis-Aligned Bounding Box (AABB)](https://en.wikipedia.org/wiki/Minimum_bounding_box) used for physics and movement [Hull Traces](https://wiki.facepunch.com/gmod/util.TraceHull) while they are crouching (or "Ducking").
2389
1954
  *
@@ -2396,18 +1961,14 @@ interface Player {
2396
1961
  * @source https://wiki.facepunch.com/gmod/Player:SetHullDuck
2397
1962
  */
2398
1963
  SetHullDuck(self: Player, mins: Vector, maxs: Vector): void;
2399
- }
2400
1964
 
2401
- interface Player {
2402
1965
  /**
2403
1966
  * Sets the jump power, eg. the velocity that will be applied to the player when they jump.
2404
1967
  * @realm shared
2405
1968
  * @source https://wiki.facepunch.com/gmod/Player:SetJumpPower
2406
1969
  */
2407
1970
  SetJumpPower(self: Player, jumpPower: number): void;
2408
- }
2409
1971
 
2410
- interface Player {
2411
1972
  /**
2412
1973
  * Sets the player's ladder climbing speed.
2413
1974
  *
@@ -2417,9 +1978,7 @@ interface Player {
2417
1978
  * @source https://wiki.facepunch.com/gmod/Player:SetLadderClimbSpeed
2418
1979
  */
2419
1980
  SetLadderClimbSpeed(self: Player, speed: number): void;
2420
- }
2421
1981
 
2422
- interface Player {
2423
1982
  /**
2424
1983
  * Slows down the player movement simulation by the timescale, this is used internally in the HL2 weapon stripping sequence.
2425
1984
  *
@@ -2434,18 +1993,14 @@ interface Player {
2434
1993
  * @source https://wiki.facepunch.com/gmod/Player:SetLaggedMovementValue
2435
1994
  */
2436
1995
  SetLaggedMovementValue(self: Player, timescale: number): void;
2437
- }
2438
1996
 
2439
- interface Player {
2440
1997
  /**
2441
1998
  * Sets the hitgroup where the player was last hit.
2442
1999
  * @realm server
2443
2000
  * @source https://wiki.facepunch.com/gmod/Player:SetLastHitGroup
2444
2001
  */
2445
2002
  SetLastHitGroup(self: Player, hitgroup: number): void;
2446
- }
2447
2003
 
2448
- interface Player {
2449
2004
  /**
2450
2005
  * Sets the maximum amount of armor the player should have. This affects default built-in armor pickups, but not [Player:SetArmor](https://wiki.facepunch.com/gmod/Player:SetArmor).
2451
2006
  *
@@ -2453,9 +2008,7 @@ interface Player {
2453
2008
  * @source https://wiki.facepunch.com/gmod/Player:SetMaxArmor
2454
2009
  */
2455
2010
  SetMaxArmor(self: Player, maxarmor: number): void;
2456
- }
2457
2011
 
2458
- interface Player {
2459
2012
  /**
2460
2013
  * Sets the maximum speed which the player can move at.
2461
2014
  *
@@ -2466,18 +2019,14 @@ interface Player {
2466
2019
  * @source https://wiki.facepunch.com/gmod/Player:SetMaxSpeed
2467
2020
  */
2468
2021
  SetMaxSpeed(self: Player, walkSpeed: number): void;
2469
- }
2470
2022
 
2471
- interface Player {
2472
2023
  /**
2473
2024
  * Sets if the player should be voicechat muted locally.
2474
2025
  * @realm client
2475
2026
  * @source https://wiki.facepunch.com/gmod/Player:SetMuted
2476
2027
  */
2477
2028
  SetMuted(self: Player, mute: boolean): void;
2478
- }
2479
2029
 
2480
- interface Player {
2481
2030
  /**
2482
2031
  * Sets whenever the player should not collide with their teammates, based on their [Player:Team](https://wiki.facepunch.com/gmod/Player:Team).
2483
2032
  *
@@ -2490,9 +2039,7 @@ interface Player {
2490
2039
  * @source https://wiki.facepunch.com/gmod/Player:SetNoCollideWithTeammates
2491
2040
  */
2492
2041
  SetNoCollideWithTeammates(self: Player, shouldNotCollide: boolean): void;
2493
- }
2494
2042
 
2495
- interface Player {
2496
2043
  /**
2497
2044
  * Sets the players visibility towards NPCs.
2498
2045
  *
@@ -2502,18 +2049,14 @@ interface Player {
2502
2049
  * @source https://wiki.facepunch.com/gmod/Player:SetNoTarget
2503
2050
  */
2504
2051
  SetNoTarget(self: Player, visibility: boolean): void;
2505
- }
2506
2052
 
2507
- interface Player {
2508
2053
  /**
2509
2054
  * Sets the players observer mode. You must start the spectating first with [Player:Spectate](https://wiki.facepunch.com/gmod/Player:Spectate).
2510
2055
  * @realm shared
2511
2056
  * @source https://wiki.facepunch.com/gmod/Player:SetObserverMode
2512
2057
  */
2513
2058
  SetObserverMode(self: Player, mode: number): void;
2514
- }
2515
2059
 
2516
- interface Player {
2517
2060
  /**
2518
2061
  * Writes a **P**ersistent **Data** key-value pair to the SQL database. (`sv.db` when called on server, `cl.db` when called on client)
2519
2062
  *
@@ -2529,18 +2072,14 @@ interface Player {
2529
2072
  * @source https://wiki.facepunch.com/gmod/Player:SetPData
2530
2073
  */
2531
2074
  SetPData(self: Player, key: string, value: any): boolean;
2532
- }
2533
2075
 
2534
- interface Player {
2535
2076
  /**
2536
2077
  * Sets the player model's color. The part of the model that is colored is determined by the model itself, and is different for each model.
2537
2078
  * @realm shared
2538
2079
  * @source https://wiki.facepunch.com/gmod/Player:SetPlayerColor
2539
2080
  */
2540
2081
  SetPlayerColor(self: Player, Color: Vector): void;
2541
- }
2542
2082
 
2543
- interface Player {
2544
2083
  /**
2545
2084
  * Sets the widget that is currently in use by the player's mouse.
2546
2085
  *
@@ -2550,9 +2089,7 @@ interface Player {
2550
2089
  * @source https://wiki.facepunch.com/gmod/Player:SetPressedWidget
2551
2090
  */
2552
2091
  SetPressedWidget(self: Player, pressedWidget?: Entity): void;
2553
- }
2554
2092
 
2555
- interface Player {
2556
2093
  /**
2557
2094
  * Sets the player's sprint speed.
2558
2095
  *
@@ -2564,9 +2101,7 @@ interface Player {
2564
2101
  * @source https://wiki.facepunch.com/gmod/Player:SetRunSpeed
2565
2102
  */
2566
2103
  SetRunSpeed(self: Player, runSpeed: number): void;
2567
- }
2568
2104
 
2569
- interface Player {
2570
2105
  /**
2571
2106
  * Sets the player's slow walking speed, which is activated via +WALK keybind.
2572
2107
  *
@@ -2576,18 +2111,14 @@ interface Player {
2576
2111
  * @source https://wiki.facepunch.com/gmod/Player:SetSlowWalkSpeed
2577
2112
  */
2578
2113
  SetSlowWalkSpeed(self: Player, speed: number): void;
2579
- }
2580
2114
 
2581
- interface Player {
2582
2115
  /**
2583
2116
  * Sets the maximum height a player can step onto without jumping.
2584
2117
  * @realm shared
2585
2118
  * @source https://wiki.facepunch.com/gmod/Player:SetStepSize
2586
2119
  */
2587
2120
  SetStepSize(self: Player, stepHeight: number): void;
2588
- }
2589
2121
 
2590
- interface Player {
2591
2122
  /**
2592
2123
  * Sets the player's HEV suit power.
2593
2124
  *
@@ -2597,18 +2128,14 @@ interface Player {
2597
2128
  * @source https://wiki.facepunch.com/gmod/Player:SetSuitPower
2598
2129
  */
2599
2130
  SetSuitPower(self: Player, power: number): void;
2600
- }
2601
2131
 
2602
- interface Player {
2603
2132
  /**
2604
2133
  * Sets whenever to suppress the pickup notification for the player.
2605
2134
  * @realm shared
2606
2135
  * @source https://wiki.facepunch.com/gmod/Player:SetSuppressPickupNotices
2607
2136
  */
2608
2137
  SetSuppressPickupNotices(self: Player, doSuppress: boolean): void;
2609
- }
2610
2138
 
2611
- interface Player {
2612
2139
  /**
2613
2140
  * Sets the player to the chosen team. The value is networked to clients at reduced bit count (16 bits) as as a signed value, so the real range is [-32768, 32767].
2614
2141
  *
@@ -2618,36 +2145,28 @@ interface Player {
2618
2145
  * @source https://wiki.facepunch.com/gmod/Player:SetTeam
2619
2146
  */
2620
2147
  SetTeam(self: Player, team: number): void;
2621
- }
2622
2148
 
2623
- interface Player {
2624
2149
  /**
2625
2150
  * Sets how quickly a player un-ducks
2626
2151
  * @realm shared
2627
2152
  * @source https://wiki.facepunch.com/gmod/Player:SetUnDuckSpeed
2628
2153
  */
2629
2154
  SetUnDuckSpeed(self: Player, UnDuckSpeed: number): void;
2630
- }
2631
2155
 
2632
- interface Player {
2633
2156
  /**
2634
2157
  * Sets the usergroup of the player.
2635
2158
  * @realm server
2636
2159
  * @source https://wiki.facepunch.com/gmod/Player:SetUserGroup
2637
2160
  */
2638
2161
  SetUserGroup(self: Player, groupName: string): void;
2639
- }
2640
2162
 
2641
- interface Player {
2642
2163
  /**
2643
2164
  * Attaches the players view to the position and angles of the specified entity.
2644
2165
  * @realm server
2645
2166
  * @source https://wiki.facepunch.com/gmod/Player:SetViewEntity
2646
2167
  */
2647
2168
  SetViewEntity(self: Player, viewEntity: Entity): void;
2648
- }
2649
2169
 
2650
- interface Player {
2651
2170
  /**
2652
2171
  * Sets the **desired** view offset which equals the difference between the players actual position and their view when standing.
2653
2172
  *
@@ -2659,9 +2178,7 @@ interface Player {
2659
2178
  * @source https://wiki.facepunch.com/gmod/Player:SetViewOffset
2660
2179
  */
2661
2180
  SetViewOffset(self: Player, viewOffset: Vector): void;
2662
- }
2663
2181
 
2664
- interface Player {
2665
2182
  /**
2666
2183
  * Sets the **desired** view offset which equals the difference between the players actual position and their view when crouching.
2667
2184
  *
@@ -2673,27 +2190,21 @@ interface Player {
2673
2190
  * @source https://wiki.facepunch.com/gmod/Player:SetViewOffsetDucked
2674
2191
  */
2675
2192
  SetViewOffsetDucked(self: Player, viewOffset: Vector): void;
2676
- }
2677
2193
 
2678
- interface Player {
2679
2194
  /**
2680
2195
  * Sets client's view punch angle, but not the velocity. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch)
2681
2196
  * @realm shared
2682
2197
  * @source https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles
2683
2198
  */
2684
2199
  SetViewPunchAngles(self: Player, punchAngle: Angle): void;
2685
- }
2686
2200
 
2687
- interface Player {
2688
2201
  /**
2689
2202
  * Sets client's view punch velocity. See [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch) and [Player:SetViewPunchAngles](https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles)
2690
2203
  * @realm shared
2691
2204
  * @source https://wiki.facepunch.com/gmod/Player:SetViewPunchVelocity
2692
2205
  */
2693
2206
  SetViewPunchVelocity(self: Player, punchVel: Angle): void;
2694
- }
2695
2207
 
2696
- interface Player {
2697
2208
  /**
2698
2209
  * Sets the voice volume scale for given player on client. This value will persist from server to server, but will be reset when the game is shut down.
2699
2210
  *
@@ -2704,9 +2215,7 @@ interface Player {
2704
2215
  * @source https://wiki.facepunch.com/gmod/Player:SetVoiceVolumeScale
2705
2216
  */
2706
2217
  SetVoiceVolumeScale(self: Player, arg0: number): void;
2707
- }
2708
2218
 
2709
- interface Player {
2710
2219
  /**
2711
2220
  * Sets the player's normal walking speed. Not sprinting, not slow walking +walk.
2712
2221
  *
@@ -2721,27 +2230,21 @@ interface Player {
2721
2230
  * @source https://wiki.facepunch.com/gmod/Player:SetWalkSpeed
2722
2231
  */
2723
2232
  SetWalkSpeed(self: Player, walkSpeed: number): void;
2724
- }
2725
2233
 
2726
- interface Player {
2727
2234
  /**
2728
2235
  * Sets the player weapon's color. The part of the model that is colored is determined by the model itself, and is different for each model.
2729
2236
  * @realm shared
2730
2237
  * @source https://wiki.facepunch.com/gmod/Player:SetWeaponColor
2731
2238
  */
2732
2239
  SetWeaponColor(self: Player, Color: Vector): void;
2733
- }
2734
2240
 
2735
- interface Player {
2736
2241
  /**
2737
2242
  * Sets up the player's hands for the viewmodel. Calls [GM:PlayerSetHandsModel](https://wiki.facepunch.com/gmod/GM:PlayerSetHandsModel) to determine the model. If no entity is provided, uses the player's own hands model. If spectating another entity, pass that entity to use its hands model instead.
2738
2243
  * @realm server
2739
2244
  * @source https://wiki.facepunch.com/gmod/Player:SetupHands
2740
2245
  */
2741
2246
  SetupHands(self: Player, ent?: Entity): void;
2742
- }
2743
2247
 
2744
- interface Player {
2745
2248
  /**
2746
2249
  * Returns whether the **local player's** player model will be drawn at the time the function is called.
2747
2250
  *
@@ -2751,9 +2254,7 @@ interface Player {
2751
2254
  * @source https://wiki.facepunch.com/gmod/Player:ShouldDrawLocalPlayer
2752
2255
  */
2753
2256
  ShouldDrawLocalPlayer(self: Player): boolean;
2754
- }
2755
2257
 
2756
- interface Player {
2757
2258
  /**
2758
2259
  * Sets whether the player's current weapon should drop on death.
2759
2260
  *
@@ -2764,36 +2265,28 @@ interface Player {
2764
2265
  * @source https://wiki.facepunch.com/gmod/Player:ShouldDropWeapon
2765
2266
  */
2766
2267
  ShouldDropWeapon(self: Player, drop: boolean): void;
2767
- }
2768
2268
 
2769
- interface Player {
2770
2269
  /**
2771
2270
  * Opens the player steam profile page in the steam overlay browser.
2772
2271
  * @realm client
2773
2272
  * @source https://wiki.facepunch.com/gmod/Player:ShowProfile
2774
2273
  */
2775
2274
  ShowProfile(self: Player): void;
2776
- }
2777
2275
 
2778
- interface Player {
2779
2276
  /**
2780
2277
  * Signals the entity that it was dropped by the gravity gun.
2781
2278
  * @realm server
2782
2279
  * @source https://wiki.facepunch.com/gmod/Player:SimulateGravGunDrop
2783
2280
  */
2784
2281
  SimulateGravGunDrop(self: Player, ent: Entity): void;
2785
- }
2786
2282
 
2787
- interface Player {
2788
2283
  /**
2789
2284
  * Signals the entity that it was picked up by the gravity gun. This call is only required if you want to simulate the situation of picking up objects.
2790
2285
  * @realm server
2791
2286
  * @source https://wiki.facepunch.com/gmod/Player:SimulateGravGunPickup
2792
2287
  */
2793
2288
  SimulateGravGunPickup(self: Player, ent: Entity, lightning?: boolean): void;
2794
- }
2795
2289
 
2796
- interface Player {
2797
2290
  /**
2798
2291
  * Starts spectate mode for given player. This will also affect the players movetype in some cases.
2799
2292
  *
@@ -2805,9 +2298,7 @@ interface Player {
2805
2298
  * @source https://wiki.facepunch.com/gmod/Player:Spectate
2806
2299
  */
2807
2300
  Spectate(self: Player, mode: OBS_MODE): void;
2808
- }
2809
2301
 
2810
- interface Player {
2811
2302
  /**
2812
2303
  * Makes the player spectate the entity.
2813
2304
  *
@@ -2817,18 +2308,14 @@ interface Player {
2817
2308
  * @source https://wiki.facepunch.com/gmod/Player:SpectateEntity
2818
2309
  */
2819
2310
  SpectateEntity(self: Player, entity: Entity): void;
2820
- }
2821
2311
 
2822
- interface Player {
2823
2312
  /**
2824
2313
  * Makes a player spray their decal.
2825
2314
  * @realm server
2826
2315
  * @source https://wiki.facepunch.com/gmod/Player:SprayDecal
2827
2316
  */
2828
2317
  SprayDecal(self: Player, sprayOrigin: Vector, sprayEndPos: Vector): void;
2829
- }
2830
2318
 
2831
- interface Player {
2832
2319
  /**
2833
2320
  * Disables the sprint on the player.
2834
2321
  *
@@ -2836,9 +2323,7 @@ interface Player {
2836
2323
  * @source https://wiki.facepunch.com/gmod/Player:SprintDisable
2837
2324
  */
2838
2325
  SprintDisable(self: Player): void;
2839
- }
2840
2326
 
2841
- interface Player {
2842
2327
  /**
2843
2328
  * Enables the sprint on the player.
2844
2329
  *
@@ -2846,9 +2331,7 @@ interface Player {
2846
2331
  * @source https://wiki.facepunch.com/gmod/Player:SprintEnable
2847
2332
  */
2848
2333
  SprintEnable(self: Player): void;
2849
- }
2850
2334
 
2851
- interface Player {
2852
2335
  /**
2853
2336
  * Doesn't appear to do anything.
2854
2337
  *
@@ -2857,9 +2340,7 @@ interface Player {
2857
2340
  * @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
2858
2341
  */
2859
2342
  StartSprinting(self: Player): void;
2860
- }
2861
2343
 
2862
- interface Player {
2863
2344
  /**
2864
2345
  * When used in a [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) hook, this function will force the player to walk, as well as preventing the player from sprinting.
2865
2346
  *
@@ -2868,9 +2349,7 @@ interface Player {
2868
2349
  * @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
2869
2350
  */
2870
2351
  StartWalking(self: Player): void;
2871
- }
2872
2352
 
2873
- interface Player {
2874
2353
  /**
2875
2354
  * Returns the player's SteamID.
2876
2355
  *
@@ -2887,9 +2366,7 @@ interface Player {
2887
2366
  * @source https://wiki.facepunch.com/gmod/Player:SteamID
2888
2367
  */
2889
2368
  SteamID(self: Player): string;
2890
- }
2891
2369
 
2892
- interface Player {
2893
2370
  /**
2894
2371
  * Returns the player's full **64-bit SteamID**, also known as **CommunityID**. Information on how data is packed into this value can be found [here](https://developer.valvesoftware.com/wiki/SteamID).
2895
2372
  *
@@ -2906,9 +2383,7 @@ interface Player {
2906
2383
  * @source https://wiki.facepunch.com/gmod/Player:SteamID64
2907
2384
  */
2908
2385
  SteamID64(self: Player): string;
2909
- }
2910
2386
 
2911
- interface Player {
2912
2387
  /**
2913
2388
  * When used in a [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) hook, this function will prevent the player from sprinting.
2914
2389
  *
@@ -2919,9 +2394,7 @@ interface Player {
2919
2394
  * @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
2920
2395
  */
2921
2396
  StopSprinting(self: Player): void;
2922
- }
2923
2397
 
2924
- interface Player {
2925
2398
  /**
2926
2399
  * When used in a [GM:SetupMove](https://wiki.facepunch.com/gmod/GM:SetupMove) hook, this function behaves unexpectedly by preventing the player from sprinting similar to [Player:StopSprinting](https://wiki.facepunch.com/gmod/Player:StopSprinting).
2927
2400
  *
@@ -2930,9 +2403,7 @@ interface Player {
2930
2403
  * @deprecated This appears to be a direct binding to internal functionality that is overridden by the engine every frame so calling these functions may not have any or expected effect.
2931
2404
  */
2932
2405
  StopWalking(self: Player): void;
2933
- }
2934
2406
 
2935
- interface Player {
2936
2407
  /**
2937
2408
  * Turns off the zoom mode of the player. (+zoom console command)
2938
2409
  *
@@ -2942,9 +2413,7 @@ interface Player {
2942
2413
  * @source https://wiki.facepunch.com/gmod/Player:StopZooming
2943
2414
  */
2944
2415
  StopZooming(self: Player): void;
2945
- }
2946
2416
 
2947
- interface Player {
2948
2417
  /**
2949
2418
  * Removes all ammo from the player.
2950
2419
  * @realm server
@@ -2952,9 +2421,7 @@ interface Player {
2952
2421
  * @deprecated Alias of Player:RemoveAllAmmo
2953
2422
  */
2954
2423
  StripAmmo(self: Player): void;
2955
- }
2956
2424
 
2957
- interface Player {
2958
2425
  /**
2959
2426
  * Removes the specified weapon class from a certain player
2960
2427
  * **NOTE**: this function will call the [Entity:OnRemove](https://wiki.facepunch.com/gmod/Entity:OnRemove) but if you try use [Entity:GetOwner](https://wiki.facepunch.com/gmod/Entity:GetOwner) it will return nil
@@ -2963,18 +2430,14 @@ interface Player {
2963
2430
  * @source https://wiki.facepunch.com/gmod/Player:StripWeapon
2964
2431
  */
2965
2432
  StripWeapon(self: Player, weapon: string): void;
2966
- }
2967
2433
 
2968
- interface Player {
2969
2434
  /**
2970
2435
  * Removes all weapons from a certain player
2971
2436
  * @realm server
2972
2437
  * @source https://wiki.facepunch.com/gmod/Player:StripWeapons
2973
2438
  */
2974
2439
  StripWeapons(self: Player): void;
2975
- }
2976
2440
 
2977
- interface Player {
2978
2441
  /**
2979
2442
  * Prevents a hint from showing up.
2980
2443
  *
@@ -2986,9 +2449,7 @@ interface Player {
2986
2449
  * @source https://wiki.facepunch.com/gmod/Player:SuppressHint
2987
2450
  */
2988
2451
  SuppressHint(self: Player, name: string): void;
2989
- }
2990
2452
 
2991
- interface Player {
2992
2453
  /**
2993
2454
  * Attempts to switch the player weapon to the one specified in the "cl_defaultweapon" convar, if the player does not own the specified weapon nothing will happen.
2994
2455
  *
@@ -2998,9 +2459,7 @@ interface Player {
2998
2459
  * @source https://wiki.facepunch.com/gmod/Player:SwitchToDefaultWeapon
2999
2460
  */
3000
2461
  SwitchToDefaultWeapon(self: Player): void;
3001
- }
3002
2462
 
3003
- interface Player {
3004
2463
  /**
3005
2464
  * Returns the player's team ID, set by [Player:SetTeam](https://wiki.facepunch.com/gmod/Player:SetTeam)
3006
2465
  *
@@ -3010,9 +2469,7 @@ interface Player {
3010
2469
  * @source https://wiki.facepunch.com/gmod/Player:Team
3011
2470
  */
3012
2471
  Team(self: Player): number;
3013
- }
3014
2472
 
3015
- interface Player {
3016
2473
  /**
3017
2474
  * Returns the time in seconds since the player connected.
3018
2475
  *
@@ -3021,9 +2478,7 @@ interface Player {
3021
2478
  * @source https://wiki.facepunch.com/gmod/Player:TimeConnected
3022
2479
  */
3023
2480
  TimeConnected(self: Player): number;
3024
- }
3025
2481
 
3026
- interface Player {
3027
2482
  /**
3028
2483
  * Performs a trace hull and applies damage to the entities hit, returns the first entity hit.
3029
2484
  *
@@ -3034,18 +2489,14 @@ interface Player {
3034
2489
  * @source https://wiki.facepunch.com/gmod/Player:TraceHullAttack
3035
2490
  */
3036
2491
  TraceHullAttack(self: Player, startPos: Vector, endPos: Vector, mins: Vector, maxs: Vector, damage: number, damageFlags: number, damageForce: number, damageAllNPCs: boolean): Entity;
3037
- }
3038
2492
 
3039
- interface Player {
3040
2493
  /**
3041
2494
  * Translates [Enums/ACT](https://wiki.facepunch.com/gmod/Enums/ACT) according to the holdtype of players currently held weapon.
3042
2495
  * @realm shared
3043
2496
  * @source https://wiki.facepunch.com/gmod/Player:TranslateWeaponActivity
3044
2497
  */
3045
2498
  TranslateWeaponActivity(self: Player, act: number): number;
3046
- }
3047
2499
 
3048
- interface Player {
3049
2500
  /**
3050
2501
  * Unlocks the player movement if locked previously.
3051
2502
  *
@@ -3055,9 +2506,7 @@ interface Player {
3055
2506
  * @source https://wiki.facepunch.com/gmod/Player:UnLock
3056
2507
  */
3057
2508
  UnLock(self: Player): void;
3058
- }
3059
2509
 
3060
- interface Player {
3061
2510
  /**
3062
2511
  * Removes the player from the spectate mode entirely.
3063
2512
  *
@@ -3067,18 +2516,14 @@ interface Player {
3067
2516
  * @source https://wiki.facepunch.com/gmod/Player:UnSpectate
3068
2517
  */
3069
2518
  UnSpectate(self: Player): void;
3070
- }
3071
2519
 
3072
- interface Player {
3073
2520
  /**
3074
2521
  * Unfreezes all objects the player has frozen with their Physics Gun. Same as double pressing R while holding Physics Gun.
3075
2522
  * @realm shared
3076
2523
  * @source https://wiki.facepunch.com/gmod/Player:UnfreezePhysicsObjects
3077
2524
  */
3078
2525
  UnfreezePhysicsObjects(self: Player): void;
3079
- }
3080
2526
 
3081
- interface Player {
3082
2527
  /**
3083
2528
  * Returns a 32 bit integer that remains constant for a player across joins/leaves and across different servers. This can be used when a string is inappropriate - e.g. in a database primary key.
3084
2529
  *
@@ -3093,9 +2538,7 @@ interface Player {
3093
2538
  * @deprecated **This function has collisions,** where more than one player can have the same UniqueID. It is **highly** recommended to use Player:SteamID64, Player:SteamID or Player:AccountID instead, which are guaranteed to be unique to each player.
3094
2539
  */
3095
2540
  UniqueID(self: Player): number;
3096
- }
3097
2541
 
3098
- interface Player {
3099
2542
  /**
3100
2543
  * Returns a table that will stay allocated for the specific player serverside between connects until the server shuts down or change map. On client it has no such special behavior.
3101
2544
  *
@@ -3106,9 +2549,7 @@ interface Player {
3106
2549
  * @source https://wiki.facepunch.com/gmod/Player:UniqueIDTable
3107
2550
  */
3108
2551
  UniqueIDTable(self: Player, key: any): table;
3109
- }
3110
2552
 
3111
- interface Player {
3112
2553
  /**
3113
2554
  * Returns the player's user ID. This number will always be unique, but will reset if the player reconnects. (Always increments for each connecting player)
3114
2555
  *
@@ -3118,9 +2559,7 @@ interface Player {
3118
2559
  * @source https://wiki.facepunch.com/gmod/Player:UserID
3119
2560
  */
3120
2561
  UserID(self: Player): number;
3121
- }
3122
2562
 
3123
- interface Player {
3124
2563
  /**
3125
2564
  * Simulates a push on the client's screen. This **adds** view punch velocity, and does not reset the current view punch angle, for which you can use [Player:SetViewPunchAngles](https://wiki.facepunch.com/gmod/Player:SetViewPunchAngles).
3126
2565
  *
@@ -3131,18 +2570,14 @@ interface Player {
3131
2570
  * @source https://wiki.facepunch.com/gmod/Player:ViewPunch
3132
2571
  */
3133
2572
  ViewPunch(self: Player, punchAngle: Angle): void;
3134
- }
3135
2573
 
3136
- interface Player {
3137
2574
  /**
3138
2575
  * Resets the player's view punch (and the view punch velocity, read more at [Player:ViewPunch](https://wiki.facepunch.com/gmod/Player:ViewPunch)) effect back to normal.
3139
2576
  * @realm shared
3140
2577
  * @source https://wiki.facepunch.com/gmod/Player:ViewPunchReset
3141
2578
  */
3142
2579
  ViewPunchReset(self: Player, tolerance?: number): void;
3143
- }
3144
2580
 
3145
- interface Player {
3146
2581
  /**
3147
2582
  * Returns the players voice volume, how loud the player's voice communication currently is, as a number in range of [0,1].
3148
2583
  *
@@ -3152,6 +2587,12 @@ interface Player {
3152
2587
  VoiceVolume(self: Player): number;
3153
2588
  }
3154
2589
 
2590
+ /**
2591
+ * The player library is used to get the Lua objects that represent players in-game.
2592
+ * @source https://wiki.facepunch.com/gmod/player(library)
2593
+ */
2594
+ declare player: PlayerLib;
2595
+
3155
2596
  interface PlayerLib {
3156
2597
  /**
3157
2598
  * Similar to the serverside command "bot", this function creates a new Player bot with the given name. This bot will not obey to the usual `bot_*` commands, and it's the same bot base used in TF2 and CS:S.
@@ -3169,9 +2610,7 @@ interface PlayerLib {
3169
2610
  * @source https://wiki.facepunch.com/gmod/player.CreateNextBot
3170
2611
  */
3171
2612
  CreateNextBot(botName: string): Player;
3172
- }
3173
2613
 
3174
- interface PlayerLib {
3175
2614
  /**
3176
2615
  * Gets all the current players in the server (not including connecting clients).
3177
2616
  *
@@ -3184,18 +2623,14 @@ interface PlayerLib {
3184
2623
  * @source https://wiki.facepunch.com/gmod/player.GetAll
3185
2624
  */
3186
2625
  GetAll(): Player[];
3187
- }
3188
2626
 
3189
- interface PlayerLib {
3190
2627
  /**
3191
2628
  * Returns a table of all bots on the server.
3192
2629
  * @realm shared
3193
2630
  * @source https://wiki.facepunch.com/gmod/player.GetBots
3194
2631
  */
3195
2632
  GetBots(): Player[];
3196
- }
3197
2633
 
3198
- interface PlayerLib {
3199
2634
  /**
3200
2635
  * Tried to get the player with the specified [Player:AccountID](https://wiki.facepunch.com/gmod/Player:AccountID).
3201
2636
  * **WARNING**: Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.
@@ -3205,9 +2640,7 @@ interface PlayerLib {
3205
2640
  * @source https://wiki.facepunch.com/gmod/player.GetByAccountID
3206
2641
  */
3207
2642
  GetByAccountID(accountID: number): Player | boolean;
3208
- }
3209
2643
 
3210
- interface PlayerLib {
3211
2644
  /**
3212
2645
  * Gets the player with the specified connection ID.
3213
2646
  *
@@ -3222,9 +2655,7 @@ interface PlayerLib {
3222
2655
  * @source https://wiki.facepunch.com/gmod/player.GetByID
3223
2656
  */
3224
2657
  GetByID(connectionID: number): Player | NULL;
3225
- }
3226
2658
 
3227
- interface PlayerLib {
3228
2659
  /**
3229
2660
  * Gets the player with the specified SteamID.
3230
2661
  * **WARNING**: Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.
@@ -3234,9 +2665,7 @@ interface PlayerLib {
3234
2665
  * @source https://wiki.facepunch.com/gmod/player.GetBySteamID
3235
2666
  */
3236
2667
  GetBySteamID(steamID: string): Player | boolean;
3237
- }
3238
2668
 
3239
- interface PlayerLib {
3240
2669
  /**
3241
2670
  * Gets the player with the specified SteamID64.
3242
2671
  * **WARNING**: Internally this function iterates over all players in the server, meaning it can be quite expensive in a performance-critical context.
@@ -3246,9 +2675,7 @@ interface PlayerLib {
3246
2675
  * @source https://wiki.facepunch.com/gmod/player.GetBySteamID64
3247
2676
  */
3248
2677
  GetBySteamID64(steamID64: string): Player | boolean;
3249
- }
3250
2678
 
3251
- interface PlayerLib {
3252
2679
  /**
3253
2680
  * Gets the player with the specified uniqueID (not recommended way to identify players).
3254
2681
  *
@@ -3262,9 +2689,7 @@ interface PlayerLib {
3262
2689
  * @deprecated Use player.GetBySteamID64, player.GetBySteamID or player.GetByAccountID to get a player by a unique identifier instead.
3263
2690
  */
3264
2691
  GetByUniqueID(uniqueID: string): Player | boolean;
3265
- }
3266
2692
 
3267
- interface PlayerLib {
3268
2693
  /**
3269
2694
  * Returns the active player count.
3270
2695
  *
@@ -3277,9 +2702,7 @@ interface PlayerLib {
3277
2702
  * @source https://wiki.facepunch.com/gmod/player.GetCount
3278
2703
  */
3279
2704
  GetCount(): number;
3280
- }
3281
2705
 
3282
- interface PlayerLib {
3283
2706
  /**
3284
2707
  * Returns the amount of players connecting to the server, but not yet spawned in.
3285
2708
  *
@@ -3290,9 +2713,7 @@ interface PlayerLib {
3290
2713
  * @source https://wiki.facepunch.com/gmod/player.GetCountConnecting
3291
2714
  */
3292
2715
  GetCountConnecting(): number;
3293
- }
3294
2716
 
3295
- interface PlayerLib {
3296
2717
  /**
3297
2718
  * Returns a table containing all human players (non-bot/AI).
3298
2719
  *
@@ -3304,9 +2725,7 @@ interface PlayerLib {
3304
2725
  * @source https://wiki.facepunch.com/gmod/player.GetHumans
3305
2726
  */
3306
2727
  GetHumans(): Player[];
3307
- }
3308
2728
 
3309
- interface PlayerLib {
3310
2729
  /**
3311
2730
  * Returns a stateless iterator for all players on the server, intended for use
3312
2731
  * in generic for-loops. Uses cached Lua values, so it is more efficient than
@@ -3316,5 +2735,3 @@ interface PlayerLib {
3316
2735
  */
3317
2736
  Iterator(): (((tbl: any, prev?: number) => (number, Player)), Player[], number);
3318
2737
  }
3319
-
3320
-