@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
@@ -4,55 +4,42 @@
4
4
  * This is a list of all methods only available for vehicles. It is also possible to call [Entity](https://wiki.facepunch.com/gmod/Entity) functions on vehicles.
5
5
  * @source https://wiki.facepunch.com/gmod/Vehicle
6
6
  */
7
- interface Vehicle extends Entity {}
8
- interface VEHICLE extends Vehicle {}
9
-
10
- interface Vehicle {
7
+ interface Vehicle extends Entity {
11
8
  /**
12
9
  * Returns the remaining boosting time left.
13
10
  * @realm server
14
11
  * @source https://wiki.facepunch.com/gmod/Vehicle:BoostTimeLeft
15
12
  */
16
13
  BoostTimeLeft(self: Vehicle): number;
17
- }
18
14
 
19
- interface Vehicle {
20
15
  /**
21
16
  * Tries to find an Exit Point for leaving vehicle, if one is unobstructed in the direction given.
22
17
  * @realm server
23
18
  * @source https://wiki.facepunch.com/gmod/Vehicle:CheckExitPoint
24
19
  */
25
20
  CheckExitPoint(self: Vehicle, yaw: number, distance: number): Vector;
26
- }
27
21
 
28
- interface Vehicle {
29
22
  /**
30
23
  * Sets whether the engine is enabled or disabled, i.e. can be started or not.
31
24
  * @realm server
32
25
  * @source https://wiki.facepunch.com/gmod/Vehicle:EnableEngine
33
26
  */
34
27
  EnableEngine(self: Vehicle, enable: boolean): void;
35
- }
36
28
 
37
- interface Vehicle {
38
29
  /**
39
30
  * Returns information about the ammo of the vehicle
40
31
  * @realm client
41
32
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetAmmo
42
33
  */
43
34
  GetAmmo(self: Vehicle): (number, number, number);
44
- }
45
35
 
46
- interface Vehicle {
47
36
  /**
48
37
  * Returns third person camera distance.
49
38
  * @realm shared
50
39
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetCameraDistance
51
40
  */
52
41
  GetCameraDistance(self: Vehicle): number;
53
- }
54
42
 
55
- interface Vehicle {
56
43
  /**
57
44
  * Gets the driver of the vehicle, returns NULL Entity if no driver is present.
58
45
  * In Garry's Mod, only Players can drive vehicles.
@@ -60,37 +47,28 @@ interface Vehicle {
60
47
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetDriver
61
48
  */
62
49
  GetDriver(self: Vehicle): Player | NULL;
63
- }
64
-
65
50
 
66
- interface Vehicle {
67
51
  /**
68
52
  * Returns the current speed of the vehicle in Half-Life Hammer Units (in/s). Same as [Entity:GetVelocity](https://wiki.facepunch.com/gmod/Entity:GetVelocity) + [Vector:Length](https://wiki.facepunch.com/gmod/Vector:Length).
69
53
  * @realm server
70
54
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetHLSpeed
71
55
  */
72
56
  GetHLSpeed(self: Vehicle): number;
73
- }
74
57
 
75
- interface Vehicle {
76
58
  /**
77
59
  * Returns the max speed of the vehicle in MPH.
78
60
  * @realm server
79
61
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetMaxSpeed
80
62
  */
81
63
  GetMaxSpeed(self: Vehicle): number;
82
- }
83
64
 
84
- interface Vehicle {
85
65
  /**
86
66
  * Returns some info about the vehicle.
87
67
  * @realm server
88
68
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetOperatingParams
89
69
  */
90
70
  GetOperatingParams(self: Vehicle): OperatingParams;
91
- }
92
71
 
93
- interface Vehicle {
94
72
  /**
95
73
  * Gets the passenger of the vehicle, returns [NULL](https://wiki.facepunch.com/gmod/NULL) if no drivers is present.
96
74
  *
@@ -98,90 +76,70 @@ interface Vehicle {
98
76
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetPassenger
99
77
  */
100
78
  GetPassenger(self: Vehicle, passenger: number): Entity;
101
- }
102
79
 
103
- interface Vehicle {
104
80
  /**
105
81
  * Returns the seat position and angle of a given passenger seat.
106
82
  * @realm server
107
83
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetPassengerSeatPoint
108
84
  */
109
85
  GetPassengerSeatPoint(self: Vehicle, role: number): (Vector, Angle);
110
- }
111
86
 
112
- interface Vehicle {
113
87
  /**
114
88
  * Returns the current RPM of the vehicle. This value is fake and doesn't actually affect the vehicle movement.
115
89
  * @realm server
116
90
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetRPM
117
91
  */
118
92
  GetRPM(self: Vehicle): number;
119
- }
120
93
 
121
- interface Vehicle {
122
94
  /**
123
95
  * Returns the current speed of the vehicle in MPH.
124
96
  * @realm server
125
97
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetSpeed
126
98
  */
127
99
  GetSpeed(self: Vehicle): number;
128
- }
129
100
 
130
- interface Vehicle {
131
101
  /**
132
102
  * Returns the current steering of the vehicle.
133
103
  * @realm server
134
104
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetSteering
135
105
  */
136
106
  GetSteering(self: Vehicle): number;
137
- }
138
107
 
139
- interface Vehicle {
140
108
  /**
141
109
  * Returns the maximum steering degree of the vehicle
142
110
  * @realm server
143
111
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetSteeringDegrees
144
112
  */
145
113
  GetSteeringDegrees(self: Vehicle): number;
146
- }
147
114
 
148
- interface Vehicle {
149
115
  /**
150
116
  * Returns if vehicle has thirdperson mode enabled or not.
151
117
  * @realm shared
152
118
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetThirdPersonMode
153
119
  */
154
120
  GetThirdPersonMode(self: Vehicle): boolean;
155
- }
156
121
 
157
- interface Vehicle {
158
122
  /**
159
123
  * Returns the current throttle of the vehicle.
160
124
  * @realm server
161
125
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetThrottle
162
126
  */
163
127
  GetThrottle(self: Vehicle): number;
164
- }
165
128
 
166
- interface Vehicle {
167
129
  /**
168
130
  * Returns the vehicle class name. This is only useful for Sandbox spawned vehicles or any vehicle that properly sets the vehicle class with [Vehicle:SetVehicleClass](https://wiki.facepunch.com/gmod/Vehicle:SetVehicleClass).
169
131
  * @realm shared
170
132
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetVehicleClass
171
133
  */
172
134
  GetVehicleClass(self: Vehicle): string;
173
- }
174
135
 
175
- interface Vehicle {
176
136
  /**
177
137
  * Returns the vehicle parameters of given vehicle.
178
138
  * @realm server
179
139
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetVehicleParams
180
140
  */
181
141
  GetVehicleParams(self: Vehicle): VehicleParams;
182
- }
183
142
 
184
- interface Vehicle {
185
143
  /**
186
144
  * Returns the view position and forward angle of a given passenger seat.
187
145
  *
@@ -189,99 +147,77 @@ interface Vehicle {
189
147
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetVehicleViewPosition
190
148
  */
191
149
  GetVehicleViewPosition(self: Vehicle, role?: number): (Vector, Angle, number);
192
- }
193
150
 
194
- interface Vehicle {
195
151
  /**
196
152
  * Returns the [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) of given wheel.
197
153
  * @realm server
198
154
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetWheel
199
155
  */
200
156
  GetWheel(self: Vehicle, wheel: number): PhysObj;
201
- }
202
157
 
203
- interface Vehicle {
204
158
  /**
205
159
  * Returns the base wheel height.
206
160
  * @realm server
207
161
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelBaseHeight
208
162
  */
209
163
  GetWheelBaseHeight(self: Vehicle, wheel: number): number;
210
- }
211
164
 
212
- interface Vehicle {
213
165
  /**
214
166
  * Returns the wheel contact point.
215
167
  * @realm server
216
168
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelContactPoint
217
169
  */
218
170
  GetWheelContactPoint(self: Vehicle, wheel: number): (Vector, number, boolean);
219
- }
220
171
 
221
- interface Vehicle {
222
172
  /**
223
173
  * Returns the wheel count of the vehicle
224
174
  * @realm server
225
175
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelCount
226
176
  */
227
177
  GetWheelCount(self: Vehicle): number;
228
- }
229
178
 
230
- interface Vehicle {
231
179
  /**
232
180
  * Returns the total wheel height.
233
181
  * @realm server
234
182
  * @source https://wiki.facepunch.com/gmod/Vehicle:GetWheelTotalHeight
235
183
  */
236
184
  GetWheelTotalHeight(self: Vehicle, wheel: number): number;
237
- }
238
185
 
239
- interface Vehicle {
240
186
  /**
241
187
  * Returns whether this vehicle has boost at all.
242
188
  * @realm server
243
189
  * @source https://wiki.facepunch.com/gmod/Vehicle:HasBoost
244
190
  */
245
191
  HasBoost(self: Vehicle): boolean;
246
- }
247
192
 
248
- interface Vehicle {
249
193
  /**
250
194
  * Returns whether this vehicle has a brake pedal. See [Vehicle:SetHasBrakePedal](https://wiki.facepunch.com/gmod/Vehicle:SetHasBrakePedal).
251
195
  * @realm server
252
196
  * @source https://wiki.facepunch.com/gmod/Vehicle:HasBrakePedal
253
197
  */
254
198
  HasBrakePedal(self: Vehicle): boolean;
255
- }
256
199
 
257
- interface Vehicle {
258
200
  /**
259
201
  * Returns whether this vehicle is currently boosting or not.
260
202
  * @realm server
261
203
  * @source https://wiki.facepunch.com/gmod/Vehicle:IsBoosting
262
204
  */
263
205
  IsBoosting(self: Vehicle): boolean;
264
- }
265
206
 
266
- interface Vehicle {
267
207
  /**
268
208
  * Returns whether the engine is enabled or not, i.e. whether it can be started.
269
209
  * @realm server
270
210
  * @source https://wiki.facepunch.com/gmod/Vehicle:IsEngineEnabled
271
211
  */
272
212
  IsEngineEnabled(self: Vehicle): boolean;
273
- }
274
213
 
275
- interface Vehicle {
276
214
  /**
277
215
  * Returns whether the engine is started or not.
278
216
  * @realm server
279
217
  * @source https://wiki.facepunch.com/gmod/Vehicle:IsEngineStarted
280
218
  */
281
219
  IsEngineStarted(self: Vehicle): boolean;
282
- }
283
220
 
284
- interface Vehicle {
285
221
  /**
286
222
  * Determines whether a given [Vehicle](https://wiki.facepunch.com/gmod/Vehicle) is fully initialized.
287
223
  *
@@ -293,18 +229,14 @@ interface Vehicle {
293
229
  * @source https://wiki.facepunch.com/gmod/Vehicle:IsValidVehicle
294
230
  */
295
231
  IsValidVehicle(self: Vehicle): boolean;
296
- }
297
232
 
298
- interface Vehicle {
299
233
  /**
300
234
  * Returns whether this vehicle's engine is underwater or not. ( Internally the attachment point "engine" or "vehicle_engine" is checked )
301
235
  * @realm server
302
236
  * @source https://wiki.facepunch.com/gmod/Vehicle:IsVehicleBodyInWater
303
237
  */
304
238
  IsVehicleBodyInWater(self: Vehicle): boolean;
305
- }
306
239
 
307
- interface Vehicle {
308
240
  /**
309
241
  * Releases the vehicle's handbrake (Jeep) so it can roll without any passengers.
310
242
  *
@@ -314,27 +246,21 @@ interface Vehicle {
314
246
  * @source https://wiki.facepunch.com/gmod/Vehicle:ReleaseHandbrake
315
247
  */
316
248
  ReleaseHandbrake(self: Vehicle): void;
317
- }
318
249
 
319
- interface Vehicle {
320
250
  /**
321
251
  * Sets the boost. It is possible that this function does not work while the vehicle has a valid driver in it.
322
252
  * @realm server
323
253
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetBoost
324
254
  */
325
255
  SetBoost(self: Vehicle, boost: number): void;
326
- }
327
256
 
328
- interface Vehicle {
329
257
  /**
330
258
  * Sets the third person camera distance of the vehicle.
331
259
  * @realm shared
332
260
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetCameraDistance
333
261
  */
334
262
  SetCameraDistance(self: Vehicle, distance: number): void;
335
- }
336
263
 
337
- interface Vehicle {
338
264
  /**
339
265
  * Turns on or off the Jeep handbrake so it can roll without a driver inside.
340
266
  *
@@ -344,45 +270,35 @@ interface Vehicle {
344
270
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetHandbrake
345
271
  */
346
272
  SetHandbrake(self: Vehicle, handbrake: boolean): void;
347
- }
348
273
 
349
- interface Vehicle {
350
274
  /**
351
275
  * Sets whether this vehicle has a brake pedal.
352
276
  * @realm server
353
277
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetHasBrakePedal
354
278
  */
355
279
  SetHasBrakePedal(self: Vehicle, brakePedal: boolean): void;
356
- }
357
280
 
358
- interface Vehicle {
359
281
  /**
360
282
  * Sets maximum reverse throttle
361
283
  * @realm server
362
284
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetMaxReverseThrottle
363
285
  */
364
286
  SetMaxReverseThrottle(self: Vehicle, maxRevThrottle: number): void;
365
- }
366
287
 
367
- interface Vehicle {
368
288
  /**
369
289
  * Sets maximum forward throttle
370
290
  * @realm server
371
291
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetMaxThrottle
372
292
  */
373
293
  SetMaxThrottle(self: Vehicle, maxThrottle: number): void;
374
- }
375
294
 
376
- interface Vehicle {
377
295
  /**
378
296
  * Sets spring length of given wheel
379
297
  * @realm server
380
298
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetSpringLength
381
299
  */
382
300
  SetSpringLength(self: Vehicle, wheel: number, length: number): void;
383
- }
384
301
 
385
- interface Vehicle {
386
302
  /**
387
303
  * Sets the steering of the vehicle.
388
304
  * The correct range, 0 to 1 or -1 to 1
@@ -391,36 +307,28 @@ interface Vehicle {
391
307
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetSteering
392
308
  */
393
309
  SetSteering(self: Vehicle, front: number, rear: number): void;
394
- }
395
310
 
396
- interface Vehicle {
397
311
  /**
398
312
  * Sets the maximum steering degrees of the vehicle
399
313
  * @realm server
400
314
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetSteeringDegrees
401
315
  */
402
316
  SetSteeringDegrees(self: Vehicle, steeringDegrees: number): void;
403
- }
404
317
 
405
- interface Vehicle {
406
318
  /**
407
319
  * Sets the third person mode state.
408
320
  * @realm shared
409
321
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetThirdPersonMode
410
322
  */
411
323
  SetThirdPersonMode(self: Vehicle, enable: boolean): void;
412
- }
413
324
 
414
- interface Vehicle {
415
325
  /**
416
326
  * Sets the throttle of the vehicle. It is possible that this function does not work with a valid driver in it.
417
327
  * @realm server
418
328
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetThrottle
419
329
  */
420
330
  SetThrottle(self: Vehicle, throttle: number): void;
421
- }
422
331
 
423
- interface Vehicle {
424
332
  /**
425
333
  * **INTERNAL**: This is used internally - although you're able to use it you probably shouldn't.
426
334
  * Sets the vehicle class name.
@@ -428,18 +336,14 @@ interface Vehicle {
428
336
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetVehicleClass
429
337
  */
430
338
  SetVehicleClass(self: Vehicle, _class: string): void;
431
- }
432
339
 
433
- interface Vehicle {
434
340
  /**
435
341
  * Sets whether the entry or exit camera animation should be played or not.
436
342
  * @realm server
437
343
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetVehicleEntryAnim
438
344
  */
439
345
  SetVehicleEntryAnim(self: Vehicle, bOn: boolean): void;
440
- }
441
346
 
442
- interface Vehicle {
443
347
  /**
444
348
  * Sets the vehicle parameters for given vehicle.
445
349
  *
@@ -450,18 +354,14 @@ interface Vehicle {
450
354
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetVehicleParams
451
355
  */
452
356
  SetVehicleParams(self: Vehicle, params: VehicleParams): void;
453
- }
454
357
 
455
- interface Vehicle {
456
358
  /**
457
359
  * Sets friction of given wheel. This function may be broken.
458
360
  * @realm server
459
361
  * @source https://wiki.facepunch.com/gmod/Vehicle:SetWheelFriction
460
362
  */
461
363
  SetWheelFriction(self: Vehicle, wheel: number, friction: number): void;
462
- }
463
364
 
464
- interface Vehicle {
465
365
  /**
466
366
  * Starts or stops the engine.
467
367
  * @realm server
@@ -469,4 +369,4 @@ interface Vehicle {
469
369
  */
470
370
  StartEngine(self: Vehicle, start: boolean): void;
471
371
  }
472
-
372
+ interface VEHICLE extends Vehicle {}
package/types/vgui.d.tlua CHANGED
@@ -21,10 +21,7 @@ interface VguiLib {
21
21
  * @source https://wiki.facepunch.com/gmod/vgui.Create
22
22
  */
23
23
  Create(classname: string, parent?: Panel, name?: string): Panel;
24
- }
25
-
26
24
 
27
- interface VguiLib {
28
25
  /**
29
26
  * Creates a panel from a table, used alongside vgui.RegisterFile and
30
27
  * vgui.RegisterTable to define, register, and instantiate custom panels.
@@ -33,10 +30,7 @@ interface VguiLib {
33
30
  * @source https://wiki.facepunch.com/gmod/vgui.CreateFromTable
34
31
  */
35
32
  CreateFromTable(metatable: table, parent?: Panel, name?: string): Panel;
36
- }
37
-
38
33
 
39
- interface VguiLib {
40
34
  /**
41
35
  * Creates an engine panel.
42
36
  *
@@ -50,37 +44,28 @@ interface VguiLib {
50
44
  * @source https://wiki.facepunch.com/gmod/vgui.CreateX
51
45
  */
52
46
  CreateX(class: string, parent?: Panel, name?: string): Panel;
53
- }
54
47
 
55
-
56
- interface VguiLib {
57
48
  /**
58
49
  * Returns whenever the cursor is currently active and visible.
59
50
  * @realm client and menu
60
51
  * @source https://wiki.facepunch.com/gmod/vgui.CursorVisible
61
52
  */
62
53
  CursorVisible(): boolean;
63
- }
64
54
 
65
- interface VguiLib {
66
55
  /**
67
56
  * Returns true if Lua-defined panel exists by name. Uses [vgui.GetControlTable](https://wiki.facepunch.com/gmod/vgui.GetControlTable) internally.
68
57
  * @realm client and menu
69
58
  * @source https://wiki.facepunch.com/gmod/vgui.Exists
70
59
  */
71
60
  Exists(Panelname: string): boolean;
72
- }
73
61
 
74
- interface VguiLib {
75
62
  /**
76
63
  * Returns whether the currently focused panel is a child of the given one.
77
64
  * @realm client and menu
78
65
  * @source https://wiki.facepunch.com/gmod/vgui.FocusedHasParent
79
66
  */
80
67
  FocusedHasParent(parent: Panel): boolean;
81
- }
82
68
 
83
- interface VguiLib {
84
69
  /**
85
70
  * Returns all Lua-created panels.
86
71
  *
@@ -90,9 +75,7 @@ interface VguiLib {
90
75
  * @source https://wiki.facepunch.com/gmod/vgui.GetAll
91
76
  */
92
77
  GetAll(): Panel[];
93
- }
94
78
 
95
- interface VguiLib {
96
79
  /**
97
80
  * Returns the table of a Lua-defined panel by name. Does not return parent
98
81
  * members of the table!
@@ -105,10 +88,7 @@ interface VguiLib {
105
88
  * @source https://wiki.facepunch.com/gmod/vgui.GetControlTable
106
89
  */
107
90
  GetControlTable(Panelname: string): table;
108
- }
109
-
110
91
 
111
- interface VguiLib {
112
92
  /**
113
93
  * Returns the panel the cursor is hovering above.
114
94
  *
@@ -121,18 +101,14 @@ interface VguiLib {
121
101
  * @source https://wiki.facepunch.com/gmod/vgui.GetHoveredPanel
122
102
  */
123
103
  GetHoveredPanel(): Panel;
124
- }
125
104
 
126
- interface VguiLib {
127
105
  /**
128
106
  * Returns the panel which is currently receiving keyboard input.
129
107
  * @realm client and menu
130
108
  * @source https://wiki.facepunch.com/gmod/vgui.GetKeyboardFocus
131
109
  */
132
110
  GetKeyboardFocus(): Panel;
133
- }
134
111
 
135
- interface VguiLib {
136
112
  /**
137
113
  * Returns the global world panel which is the parent to all others, except for the HUD panel.
138
114
  *
@@ -142,27 +118,21 @@ interface VguiLib {
142
118
  * @source https://wiki.facepunch.com/gmod/vgui.GetWorldPanel
143
119
  */
144
120
  GetWorldPanel(): Panel;
145
- }
146
121
 
147
- interface VguiLib {
148
122
  /**
149
123
  * Returns whenever the cursor is hovering the world panel.
150
124
  * @realm client and menu
151
125
  * @source https://wiki.facepunch.com/gmod/vgui.IsHoveringWorld
152
126
  */
153
127
  IsHoveringWorld(): boolean;
154
- }
155
128
 
156
- interface VguiLib {
157
129
  /**
158
130
  * Registers a panel for later creation via [vgui.Create](https://wiki.facepunch.com/gmod/vgui.Create).
159
131
  * @realm client and menu
160
132
  * @source https://wiki.facepunch.com/gmod/vgui.Register
161
133
  */
162
134
  Register(classname: string, panelTable: table, baseName?: string): table;
163
- }
164
135
 
165
- interface VguiLib {
166
136
  /**
167
137
  * Registers a new [VGUI](https://wiki.facepunch.com/gmod/VGUI) panel from a file, to be used with [vgui.CreateFromTable](https://wiki.facepunch.com/gmod/vgui.CreateFromTable).
168
138
  *
@@ -186,9 +156,7 @@ interface VguiLib {
186
156
  * @source https://wiki.facepunch.com/gmod/vgui.RegisterFile
187
157
  */
188
158
  RegisterFile(file: string): table;
189
- }
190
159
 
191
- interface VguiLib {
192
160
  /**
193
161
  * Registers a table to use as a panel, to be used with [vgui.CreateFromTable](https://wiki.facepunch.com/gmod/vgui.CreateFromTable).
194
162
  *
@@ -198,4 +166,3 @@ interface VguiLib {
198
166
  */
199
167
  RegisterTable(panel: table, base?: string): table;
200
168
  }
201
-
@@ -14,4 +14,3 @@ interface VideoLib {
14
14
  */
15
15
  Record(config: VideoData): (IVideoWriter, string);
16
16
  }
17
-