@tlua/gmod 1.0.1
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.
- package/README.md +28 -0
- package/__metadata.json +4 -0
- package/_globals.d.tlua +178 -0
- package/_gmod-std.d.tlua +35 -0
- package/achievementicon.d.tlua +12 -0
- package/achievements.d.tlua +162 -0
- package/ai.d.tlua +65 -0
- package/ai_schedule.d.tlua +17 -0
- package/ai_task.d.tlua +17 -0
- package/angle.d.tlua +197 -0
- package/avatarimage.d.tlua +10 -0
- package/awesomium.d.tlua +14 -0
- package/baseclass.d.tlua +42 -0
- package/bf_read.d.tlua +110 -0
- package/bit.d.tlua +121 -0
- package/button.d.tlua +13 -0
- package/cam.d.tlua +220 -0
- package/ceffectdata.d.tlua +337 -0
- package/chat.d.tlua +62 -0
- package/checkbutton.d.tlua +14 -0
- package/cleanup.d.tlua +88 -0
- package/cluaemitter.d.tlua +119 -0
- package/clualocomotion.d.tlua +383 -0
- package/cluaparticle.d.tlua +426 -0
- package/cmovedata.d.tlua +476 -0
- package/cnavarea.d.tlua +845 -0
- package/cnavladder.d.tlua +209 -0
- package/cnewparticleeffect.d.tlua +259 -0
- package/color.d.tlua +339 -0
- package/concommand.d.tlua +69 -0
- package/constraint.d.tlua +311 -0
- package/construct.d.tlua +26 -0
- package/contentheader.d.tlua +32 -0
- package/contenticon.d.tlua +86 -0
- package/contentsidebar.d.tlua +45 -0
- package/contentsidebartoolbox.d.tlua +13 -0
- package/contextbase.d.tlua +37 -0
- package/controlpanel.d.tlua +140 -0
- package/controlpresets.d.tlua +118 -0
- package/convar.d.tlua +162 -0
- package/cookie.d.tlua +60 -0
- package/coroutine.d.tlua +90 -0
- package/crecipientfilter.d.tlua +152 -0
- package/csent.d.tlua +10 -0
- package/csoundpatch.d.tlua +150 -0
- package/ctakedamageinfo.d.tlua +366 -0
- package/ctrllistbox.d.tlua +12 -0
- package/ctrlnumpad.d.tlua +73 -0
- package/cusercmd.d.tlua +320 -0
- package/custom_classes.d.tlua +65 -0
- package/custom_entity_fields.d.tlua +96 -0
- package/cvars.d.tlua +80 -0
- package/dadjustablemodelpanel.d.tlua +81 -0
- package/dalphabar.d.tlua +27 -0
- package/dbinder.d.tlua +37 -0
- package/dbubblecontainer.d.tlua +18 -0
- package/dbutton.d.tlua +88 -0
- package/dcategoryheader.d.tlua +13 -0
- package/dcategorylist.d.tlua +11 -0
- package/dcheckbox.d.tlua +46 -0
- package/dcheckboxlabel.d.tlua +90 -0
- package/dcollapsiblecategory.d.tlua +240 -0
- package/dcolorbutton.d.tlua +73 -0
- package/dcolorcombo.d.tlua +54 -0
- package/dcolorcube.d.tlua +137 -0
- package/dcolormixer.d.tlua +303 -0
- package/dcolorpalette.d.tlua +294 -0
- package/dcolumnsheet.d.tlua +49 -0
- package/dcombobox.d.tlua +161 -0
- package/ddragbase.d.tlua +151 -0
- package/ddrawer.d.tlua +72 -0
- package/debug.d.tlua +236 -0
- package/debugoverlay.d.tlua +193 -0
- package/dentityproperties.d.tlua +63 -0
- package/derma.d.tlua +119 -0
- package/dexpandbutton.d.tlua +30 -0
- package/dfilebrowser.d.tlua +228 -0
- package/dform.d.tlua +176 -0
- package/dframe.d.tlua +261 -0
- package/dgrid.d.tlua +113 -0
- package/dhorizontaldivider.d.tlua +196 -0
- package/dhorizontalscroller.d.tlua +104 -0
- package/dhscrollbar.d.tlua +109 -0
- package/dhtml.d.tlua +91 -0
- package/dhtmlcontrols.d.tlua +62 -0
- package/diconbrowser.d.tlua +113 -0
- package/diconlayout.d.tlua +190 -0
- package/dimage.d.tlua +221 -0
- package/dimagebutton.d.tlua +103 -0
- package/dkillicon.d.tlua +9 -0
- package/dlabel.d.tlua +385 -0
- package/dlabeleditable.d.tlua +51 -0
- package/dlabelurl.d.tlua +100 -0
- package/dlistbox.d.tlua +82 -0
- package/dlistboxitem.d.tlua +42 -0
- package/dlistlayout.d.tlua +14 -0
- package/dlistview.d.tlua +360 -0
- package/dlistview_column.d.tlua +135 -0
- package/dlistview_columnplain.d.tlua +11 -0
- package/dlistview_draggerbar.d.tlua +11 -0
- package/dlistview_line.d.tlua +140 -0
- package/dlistviewheaderlabel.d.tlua +11 -0
- package/dlistviewlabel.d.tlua +11 -0
- package/dlistviewline.d.tlua +11 -0
- package/dmenu.d.tlua +266 -0
- package/dmenubar.d.tlua +42 -0
- package/dmenuoption.d.tlua +135 -0
- package/dmenuoptioncvar.d.tlua +64 -0
- package/dmodelpanel.d.tlua +207 -0
- package/dmodelselect.d.tlua +20 -0
- package/dmodelselectmulti.d.tlua +19 -0
- package/dnotify.d.tlua +93 -0
- package/dnumberscratch.d.tlua +284 -0
- package/dnumberwang.d.tlua +147 -0
- package/dnumpad.d.tlua +11 -0
- package/dnumslider.d.tlua +182 -0
- package/dpanel.d.tlua +152 -0
- package/dpanellist.d.tlua +109 -0
- package/dpaneloverlay.d.tlua +65 -0
- package/dpanelselect.d.tlua +13 -0
- package/dpanpanel.d.tlua +64 -0
- package/dprogress.d.tlua +27 -0
- package/dproperties.d.tlua +52 -0
- package/dproperty_boolean.d.tlua +12 -0
- package/dproperty_combo.d.tlua +31 -0
- package/dproperty_entity.d.tlua +12 -0
- package/dproperty_float.d.tlua +12 -0
- package/dproperty_generic.d.tlua +50 -0
- package/dproperty_int.d.tlua +12 -0
- package/dproperty_vectorcolor.d.tlua +14 -0
- package/dpropertysheet.d.tlua +167 -0
- package/dragndrop.d.tlua +123 -0
- package/draw.d.tlua +162 -0
- package/drgbpicker.d.tlua +49 -0
- package/drive.d.tlua +159 -0
- package/dscrollbargrip.d.tlua +13 -0
- package/dscrollpanel.d.tlua +110 -0
- package/dshape.d.tlua +72 -0
- package/dsizetocontents.d.tlua +46 -0
- package/dslider.d.tlua +302 -0
- package/dsprite.d.tlua +84 -0
- package/dtab.d.tlua +81 -0
- package/dtextentry.d.tlua +442 -0
- package/dtilelayout.d.tlua +218 -0
- package/dtooltip.d.tlua +76 -0
- package/dtree.d.tlua +185 -0
- package/dtree_node.d.tlua +793 -0
- package/dtree_node_button.d.tlua +13 -0
- package/duplicator.d.tlua +338 -0
- package/dverticaldivider.d.tlua +223 -0
- package/dvscrollbar.d.tlua +109 -0
- package/editablepanel.d.tlua +10 -0
- package/effect.d.tlua +121 -0
- package/effects.d.tlua +77 -0
- package/engine.d.tlua +248 -0
- package/entity.d.tlua +8295 -0
- package/ents.d.tlua +267 -0
- package/enums.d.tlua +7082 -0
- package/file.d.tlua +419 -0
- package/file_class.d.tlua +7 -0
- package/fingerposer.d.tlua +12 -0
- package/fingervar.d.tlua +13 -0
- package/frame.d.tlua +11 -0
- package/frame_blend.d.tlua +105 -0
- package/game.d.tlua +482 -0
- package/gameevent.d.tlua +968 -0
- package/gamemode.d.tlua +48 -0
- package/global.d.tlua +3156 -0
- package/gm.d.tlua +3218 -0
- package/gmod.d.tlua +20 -0
- package/gmsave.d.tlua +53 -0
- package/gui.d.tlua +232 -0
- package/gwen.d.tlua +55 -0
- package/halo.d.tlua +42 -0
- package/hammer.d.tlua +17 -0
- package/hook.d.tlua +64 -0
- package/html.d.tlua +22 -0
- package/http.d.tlua +72 -0
- package/iconeditor.d.tlua +130 -0
- package/igmodaudiochannel.d.tlua +419 -0
- package/imagecheckbox.d.tlua +48 -0
- package/imaterial.d.tlua +288 -0
- package/imesh.d.tlua +70 -0
- package/index.d.tlua +277 -0
- package/input.d.tlua +252 -0
- package/invalidateinternalentitycache.d.tlua +13 -0
- package/irestore.d.tlua +94 -0
- package/isave.d.tlua +94 -0
- package/itexture.d.tlua +108 -0
- package/ivideowriter.d.tlua +53 -0
- package/jit.d.tlua +243 -0
- package/killicon.d.tlua +84 -0
- package/label.d.tlua +20 -0
- package/language.d.tlua +26 -0
- package/list.d.tlua +112 -0
- package/makeballoon.d.tlua +15 -0
- package/markup.d.tlua +38 -0
- package/markupobject.d.tlua +53 -0
- package/material.d.tlua +9 -0
- package/math.d.tlua +899 -0
- package/matproxy.d.tlua +60 -0
- package/matselect.d.tlua +106 -0
- package/menu.d.tlua +20 -0
- package/menubar.d.tlua +39 -0
- package/mesh.d.tlua +183 -0
- package/modelimage.d.tlua +12 -0
- package/motionsensor.d.tlua +115 -0
- package/navmesh.d.tlua +274 -0
- package/net.d.tlua +639 -0
- package/nextbot.d.tlua +380 -0
- package/notification.d.tlua +35 -0
- package/npc.d.tlua +1787 -0
- package/numpad.d.tlua +89 -0
- package/os.d.tlua +56 -0
- package/package.d.tlua +15 -0
- package/package.json +18 -0
- package/panel.d.tlua +3650 -0
- package/panellist.d.tlua +13 -0
- package/pathfollower.d.tlua +301 -0
- package/permissions.d.tlua +77 -0
- package/physcollide.d.tlua +40 -0
- package/physenv.d.tlua +136 -0
- package/physobj.d.tlua +799 -0
- package/pixelvis_handle_t.d.tlua +9 -0
- package/player.d.tlua +3320 -0
- package/player_manager.d.tlua +147 -0
- package/preseteditor.d.tlua +13 -0
- package/presets.d.tlua +79 -0
- package/projectedtexture.d.tlua +553 -0
- package/properties.d.tlua +65 -0
- package/propselect.d.tlua +50 -0
- package/radiobutton.d.tlua +13 -0
- package/render.d.tlua +1700 -0
- package/resource.d.tlua +73 -0
- package/richtext.d.tlua +17 -0
- package/sandbox.d.tlua +576 -0
- package/saverestore.d.tlua +148 -0
- package/schedule.d.tlua +69 -0
- package/scripted_ents.d.tlua +124 -0
- package/search.d.tlua +26 -0
- package/serverlist.d.tlua +85 -0
- package/slidebar.d.tlua +12 -0
- package/slider.d.tlua +11 -0
- package/sound.d.tlua +140 -0
- package/spawnicon.d.tlua +95 -0
- package/spawnmenu.d.tlua +286 -0
- package/spawnmenucontentpanel.d.tlua +52 -0
- package/sql.d.tlua +154 -0
- package/stack.d.tlua +57 -0
- package/steamworks.d.tlua +208 -0
- package/string.d.tlua +535 -0
- package/structures.d.tlua +4442 -0
- package/surface.d.tlua +463 -0
- package/surfaceinfo.d.tlua +70 -0
- package/system.d.tlua +134 -0
- package/table.d.tlua +533 -0
- package/task.d.tlua +92 -0
- package/team.d.tlua +195 -0
- package/textentry.d.tlua +12 -0
- package/tgaimage.d.tlua +11 -0
- package/timer.d.tlua +198 -0
- package/tool.d.tlua +466 -0
- package/ugcpublishwindow.d.tlua +83 -0
- package/umsg.d.tlua +147 -0
- package/undo.d.tlua +122 -0
- package/urllabel.d.tlua +13 -0
- package/usermessage.d.tlua +48 -0
- package/utf8.d.tlua +89 -0
- package/util.d.tlua +1087 -0
- package/vector.d.tlua +413 -0
- package/vehicle.d.tlua +472 -0
- package/vgui.d.tlua +201 -0
- package/video.d.tlua +17 -0
- package/vmatrix.d.tlua +392 -0
- package/weapon.d.tlua +913 -0
- package/weapons.d.tlua +90 -0
- package/widgets.d.tlua +29 -0
- package/workshopfilebase.d.tlua +68 -0
package/tool.d.tlua
ADDED
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A list of functions available inside a Sandbox Toolgun tool.
|
|
5
|
+
*
|
|
6
|
+
* You can find the hooks [here](https://wiki.facepunch.com/gmod/TOOL_Hooks), and members [here](https://wiki.facepunch.com/gmod/Structures/TOOL).
|
|
7
|
+
* @source https://wiki.facepunch.com/gmod/Tool
|
|
8
|
+
*/
|
|
9
|
+
interface Tool {}
|
|
10
|
+
interface TOOL extends Tool {}
|
|
11
|
+
|
|
12
|
+
interface Tool {
|
|
13
|
+
/**
|
|
14
|
+
* Called when [WEAPON:Deploy](https://wiki.facepunch.com/gmod/WEAPON:Deploy) of the toolgun is called.
|
|
15
|
+
*
|
|
16
|
+
* This is also called when switching from another tool on the server.
|
|
17
|
+
* @realm shared
|
|
18
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:Deploy
|
|
19
|
+
*/
|
|
20
|
+
Deploy(self: Tool): boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface Tool {
|
|
24
|
+
/**
|
|
25
|
+
* Called when [WEAPON:DrawHUD](https://wiki.facepunch.com/gmod/WEAPON:DrawHUD) of the toolgun is called, only when the user has this tool selected.
|
|
26
|
+
* @realm client
|
|
27
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:DrawHUD
|
|
28
|
+
*/
|
|
29
|
+
DrawHUD(self: Tool): void;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface Tool {
|
|
33
|
+
/**
|
|
34
|
+
* Called after the default tool screen has been drawn from [WEAPON:RenderScreen](https://wiki.facepunch.com/gmod/WEAPON:RenderScreen).
|
|
35
|
+
*
|
|
36
|
+
* **NOTE**: If this method exists on the TOOL object table, the default scrolling text will not be drawn
|
|
37
|
+
*
|
|
38
|
+
* **NOTE**: Materials rendered in this hook require $ignorez parameter to draw properly.
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @realm client
|
|
42
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:DrawToolScreen
|
|
43
|
+
*/
|
|
44
|
+
DrawToolScreen(self: Tool, width: number, height: number): void;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface Tool {
|
|
48
|
+
/**
|
|
49
|
+
* Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called, only when the user has this tool selected.
|
|
50
|
+
* @realm client
|
|
51
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:FreezeMovement
|
|
52
|
+
*/
|
|
53
|
+
FreezeMovement(self: Tool): boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface Tool {
|
|
57
|
+
/**
|
|
58
|
+
* Called when [WEAPON:Holster](https://wiki.facepunch.com/gmod/WEAPON:Holster) of the toolgun is called, when switching between different toolguns.
|
|
59
|
+
* @realm shared
|
|
60
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:Holster
|
|
61
|
+
*/
|
|
62
|
+
Holster(self: Tool): void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface Tool {
|
|
66
|
+
/**
|
|
67
|
+
* Called when the user left clicks with the tool.
|
|
68
|
+
* @realm shared
|
|
69
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:LeftClick
|
|
70
|
+
*/
|
|
71
|
+
LeftClick(self: Tool, tr: TraceResult): boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface Tool {
|
|
75
|
+
/**
|
|
76
|
+
* Called when the user presses the reload key with the tool out.
|
|
77
|
+
* @realm shared
|
|
78
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:Reload
|
|
79
|
+
*/
|
|
80
|
+
Reload(self: Tool, tr: TraceResult): boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface Tool {
|
|
84
|
+
/**
|
|
85
|
+
* Called when the user right clicks with the tool.
|
|
86
|
+
* @realm shared
|
|
87
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:RightClick
|
|
88
|
+
*/
|
|
89
|
+
RightClick(self: Tool, tr: TraceResult): boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
interface Tool {
|
|
93
|
+
/**
|
|
94
|
+
* Called when [WEAPON:Think](https://wiki.facepunch.com/gmod/WEAPON:Think) of the toolgun is called. This only happens when the tool gun is currently equipped/selected by the player and the selected tool is this tool.
|
|
95
|
+
* @realm shared
|
|
96
|
+
* @source https://wiki.facepunch.com/gmod/TOOL:Think
|
|
97
|
+
*/
|
|
98
|
+
Think(self: Tool): void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface Tool {
|
|
102
|
+
/**
|
|
103
|
+
* Called when the tool's control panel needs to be rebuilt.
|
|
104
|
+
*
|
|
105
|
+
* NOTE: this is a dot-defined function, not a colon method - it does NOT
|
|
106
|
+
* receive a `self` argument (see the Tool.BuildCPanel field).
|
|
107
|
+
* @realm client
|
|
108
|
+
* @source https://wiki.facepunch.com/gmod/TOOL.BuildCPanel
|
|
109
|
+
*/
|
|
110
|
+
BuildCPanel(panel: ControlPanel): void;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
interface Tool {
|
|
115
|
+
/**
|
|
116
|
+
* Returns whether the tool is allowed to be used or not. This function ignores the [SANDBOX:CanTool](https://wiki.facepunch.com/gmod/SANDBOX:CanTool) hook.
|
|
117
|
+
*
|
|
118
|
+
* By default this will always return true clientside and uses `TOOL.AllowedCVar`which is a [ConVar](https://wiki.facepunch.com/gmod/ConVar) object pointing to `toolmode_allow_*toolname*` convar on the server.
|
|
119
|
+
*
|
|
120
|
+
* @realm shared
|
|
121
|
+
* @source https://wiki.facepunch.com/gmod/Tool:Allowed
|
|
122
|
+
*/
|
|
123
|
+
Allowed(self: Tool): boolean;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface Tool {
|
|
127
|
+
/**
|
|
128
|
+
* Builds a list of all ConVars set via the ClientConVar variable on the [Structures/TOOL](https://wiki.facepunch.com/gmod/Structures/TOOL) and their default values. This is used for the preset system.
|
|
129
|
+
* @realm shared
|
|
130
|
+
* @source https://wiki.facepunch.com/gmod/Tool:BuildConVarList
|
|
131
|
+
*/
|
|
132
|
+
BuildConVarList(self: Tool): table;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
interface Tool {
|
|
136
|
+
/**
|
|
137
|
+
* **INTERNAL**: This is called automatically for most toolgun actions so you shouldn't need to use it.
|
|
138
|
+
*
|
|
139
|
+
*
|
|
140
|
+
* Checks all added objects to see if they're still valid, if not, clears the list of objects.
|
|
141
|
+
*
|
|
142
|
+
* @realm shared
|
|
143
|
+
* @source https://wiki.facepunch.com/gmod/Tool:CheckObjects
|
|
144
|
+
*/
|
|
145
|
+
CheckObjects(self: Tool): void;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
interface Tool {
|
|
149
|
+
/**
|
|
150
|
+
* Clears all objects previously set with [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
151
|
+
* @realm shared
|
|
152
|
+
* @source https://wiki.facepunch.com/gmod/Tool:ClearObjects
|
|
153
|
+
*/
|
|
154
|
+
ClearObjects(self: Tool): void;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface Tool {
|
|
158
|
+
/**
|
|
159
|
+
* **INTERNAL**: This is called automatically for all tools.
|
|
160
|
+
*
|
|
161
|
+
* Initializes the tool object
|
|
162
|
+
*
|
|
163
|
+
* @realm shared
|
|
164
|
+
* @source https://wiki.facepunch.com/gmod/Tool:Create
|
|
165
|
+
*/
|
|
166
|
+
Create(self: Tool): Tool;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface Tool {
|
|
170
|
+
/**
|
|
171
|
+
* **INTERNAL**: This is called automatically for all tools.
|
|
172
|
+
*
|
|
173
|
+
*
|
|
174
|
+
* Creates clientside ConVars based on the ClientConVar table specified in the tool structure. Also creates the 'toolmode_allow_X' ConVar.
|
|
175
|
+
*
|
|
176
|
+
* @realm shared
|
|
177
|
+
* @source https://wiki.facepunch.com/gmod/Tool:CreateConVars
|
|
178
|
+
*/
|
|
179
|
+
CreateConVars(self: Tool): void;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
interface Tool {
|
|
183
|
+
/**
|
|
184
|
+
* Retrieves a physics bone number previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
185
|
+
* @realm shared
|
|
186
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetBone
|
|
187
|
+
*/
|
|
188
|
+
GetBone(self: Tool, id: number): number;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface Tool {
|
|
192
|
+
/**
|
|
193
|
+
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) value as a [boolean](https://wiki.facepunch.com/gmod/boolean).
|
|
194
|
+
* @realm shared
|
|
195
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetClientBool
|
|
196
|
+
*/
|
|
197
|
+
GetClientBool(self: Tool, name: string, _default?: boolean): number;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface Tool {
|
|
201
|
+
/**
|
|
202
|
+
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar) as a [string](https://wiki.facepunch.com/gmod/string).
|
|
203
|
+
* @realm shared
|
|
204
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetClientInfo
|
|
205
|
+
*/
|
|
206
|
+
GetClientInfo(self: Tool, name: string): string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
interface Tool {
|
|
210
|
+
/**
|
|
211
|
+
* Attempts to grab a clientside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar)'s value as a [number](https://wiki.facepunch.com/gmod/number).
|
|
212
|
+
* @realm shared
|
|
213
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetClientNumber
|
|
214
|
+
*/
|
|
215
|
+
GetClientNumber(self: Tool, name: string, _default?: number): number;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface Tool {
|
|
219
|
+
/**
|
|
220
|
+
* Retrieves an Entity previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
221
|
+
* @realm shared
|
|
222
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetEnt
|
|
223
|
+
*/
|
|
224
|
+
GetEnt(self: Tool, id: number): Entity;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface Tool {
|
|
228
|
+
/**
|
|
229
|
+
* Returns a language key based on this tool's name and the current stage it is on.
|
|
230
|
+
* @realm shared
|
|
231
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetHelpText
|
|
232
|
+
*/
|
|
233
|
+
GetHelpText(self: Tool): string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface Tool {
|
|
237
|
+
/**
|
|
238
|
+
* Retrieves an local vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
239
|
+
* See also [Tool:GetPos](https://wiki.facepunch.com/gmod/Tool:GetPos).
|
|
240
|
+
*
|
|
241
|
+
* @realm shared
|
|
242
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetLocalPos
|
|
243
|
+
*/
|
|
244
|
+
GetLocalPos(self: Tool, id: number): Vector;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
interface Tool {
|
|
248
|
+
/**
|
|
249
|
+
* Returns the name of the current tool mode.
|
|
250
|
+
* @realm shared
|
|
251
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetMode
|
|
252
|
+
*/
|
|
253
|
+
GetMode(self: Tool): string;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
interface Tool {
|
|
257
|
+
/**
|
|
258
|
+
* Retrieves an normal vector previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
259
|
+
* @realm shared
|
|
260
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetNormal
|
|
261
|
+
*/
|
|
262
|
+
GetNormal(self: Tool, id: number): Vector;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
interface Tool {
|
|
266
|
+
/**
|
|
267
|
+
* Returns the current operation of the tool set by [Tool:SetOperation](https://wiki.facepunch.com/gmod/Tool:SetOperation).
|
|
268
|
+
* @realm shared
|
|
269
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetOperation
|
|
270
|
+
*/
|
|
271
|
+
GetOperation(self: Tool): number;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface Tool {
|
|
275
|
+
/**
|
|
276
|
+
* Returns the owner of this tool.
|
|
277
|
+
* @realm shared
|
|
278
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetOwner
|
|
279
|
+
*/
|
|
280
|
+
GetOwner(self: Tool): Player;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
interface Tool {
|
|
284
|
+
/**
|
|
285
|
+
* Retrieves an [PhysObj](https://wiki.facepunch.com/gmod/PhysObj) previously stored using [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
286
|
+
* See also [Tool:GetEnt](https://wiki.facepunch.com/gmod/Tool:GetEnt).
|
|
287
|
+
*
|
|
288
|
+
* @realm shared
|
|
289
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetPhys
|
|
290
|
+
*/
|
|
291
|
+
GetPhys(self: Tool, id: number): PhysObj;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
interface Tool {
|
|
295
|
+
/**
|
|
296
|
+
* Retrieves a vector previously stored using Tool:SetObject. See also
|
|
297
|
+
* Tool:GetLocalPos.
|
|
298
|
+
* @realm shared
|
|
299
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetPos
|
|
300
|
+
*/
|
|
301
|
+
GetPos(self: Tool, id?: number): Vector;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
interface Tool {
|
|
306
|
+
/**
|
|
307
|
+
* Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
|
|
308
|
+
* @realm shared
|
|
309
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetSWEP
|
|
310
|
+
* @deprecated Use Tool:GetWeapon instead.
|
|
311
|
+
*/
|
|
312
|
+
GetSWEP(self: Tool): Weapon;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
interface Tool {
|
|
316
|
+
/**
|
|
317
|
+
* Attempts to grab a serverside tool [ConVar](https://wiki.facepunch.com/gmod/ConVar).
|
|
318
|
+
* This will not do anything on client, despite the function being defined shared.
|
|
319
|
+
*
|
|
320
|
+
* @realm shared
|
|
321
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetServerInfo
|
|
322
|
+
*/
|
|
323
|
+
GetServerInfo(self: Tool, name: string): string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
interface Tool {
|
|
327
|
+
/**
|
|
328
|
+
* Returns the current stage of the tool set by [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
|
|
329
|
+
* @realm shared
|
|
330
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetStage
|
|
331
|
+
*/
|
|
332
|
+
GetStage(self: Tool): number;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface Tool {
|
|
336
|
+
/**
|
|
337
|
+
* Returns the Tool Gun (`gmod_tool`) Scripted [Weapon](https://wiki.facepunch.com/gmod/Weapon).
|
|
338
|
+
* @realm shared
|
|
339
|
+
* @source https://wiki.facepunch.com/gmod/Tool:GetWeapon
|
|
340
|
+
*/
|
|
341
|
+
GetWeapon(self: Tool): Weapon;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
interface Tool {
|
|
345
|
+
/**
|
|
346
|
+
* Initializes the ghost entity with the given model. Removes any old ghost entity if called multiple times.
|
|
347
|
+
*
|
|
348
|
+
* The ghost is a regular prop_physics entity in singleplayer games, and a clientside prop in multiplayer games.
|
|
349
|
+
*
|
|
350
|
+
* @realm shared
|
|
351
|
+
* @source https://wiki.facepunch.com/gmod/Tool:MakeGhostEntity
|
|
352
|
+
*/
|
|
353
|
+
MakeGhostEntity(self: Tool, model: string, pos: Vector, angle: Angle): void;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
interface Tool {
|
|
357
|
+
/**
|
|
358
|
+
* Returns the amount of stored objects ( [Entity](https://wiki.facepunch.com/gmod/Entity)s ) the tool has.
|
|
359
|
+
* Are TOOLs limited to 4 entities?
|
|
360
|
+
*
|
|
361
|
+
* @realm shared
|
|
362
|
+
* @source https://wiki.facepunch.com/gmod/Tool:NumObjects
|
|
363
|
+
*/
|
|
364
|
+
NumObjects(self: Tool): number;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
interface Tool {
|
|
368
|
+
/**
|
|
369
|
+
* Automatically forces the tool's control panel to be rebuilt.
|
|
370
|
+
* @realm client
|
|
371
|
+
* @source https://wiki.facepunch.com/gmod/Tool:RebuildControlPanel
|
|
372
|
+
*/
|
|
373
|
+
RebuildControlPanel(self: Tool, ...: any): void;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
interface Tool {
|
|
377
|
+
/**
|
|
378
|
+
* Removes any ghost entity created for this tool.
|
|
379
|
+
*
|
|
380
|
+
* This is called automatically at various points, including when changing tools, holstering the toolgun, therefore it is a very good idea to implement this callback in your custom tool to cleanup any custom ghost entities.
|
|
381
|
+
* @realm shared
|
|
382
|
+
* @source https://wiki.facepunch.com/gmod/Tool:ReleaseGhostEntity
|
|
383
|
+
*/
|
|
384
|
+
ReleaseGhostEntity(self: Tool): void;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface Tool {
|
|
388
|
+
/**
|
|
389
|
+
* Stores an [Entity](https://wiki.facepunch.com/gmod/Entity) for later use in the tool.
|
|
390
|
+
*
|
|
391
|
+
* The stored values can be retrieved by [Tool:GetEnt](https://wiki.facepunch.com/gmod/Tool:GetEnt), [Tool:GetPos](https://wiki.facepunch.com/gmod/Tool:GetPos), [Tool:GetLocalPos](https://wiki.facepunch.com/gmod/Tool:GetLocalPos), [Tool:GetPhys](https://wiki.facepunch.com/gmod/Tool:GetPhys), [Tool:GetBone](https://wiki.facepunch.com/gmod/Tool:GetBone) and [Tool:GetNormal](https://wiki.facepunch.com/gmod/Tool:GetNormal)
|
|
392
|
+
*
|
|
393
|
+
* @realm shared
|
|
394
|
+
* @source https://wiki.facepunch.com/gmod/Tool:SetObject
|
|
395
|
+
*/
|
|
396
|
+
SetObject(self: Tool, id: number, ent: Entity, pos: Vector, phys: PhysObj, bone: number, normal: Vector): void;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
interface Tool {
|
|
400
|
+
/**
|
|
401
|
+
* Sets the current operation of the tool. Does nothing clientside. See also [Tool:SetStage](https://wiki.facepunch.com/gmod/Tool:SetStage).
|
|
402
|
+
*
|
|
403
|
+
* Operations and stages work as follows:
|
|
404
|
+
* * Operation 1
|
|
405
|
+
* * * Stage 1
|
|
406
|
+
* * * Stage 2
|
|
407
|
+
* * * Stage 3
|
|
408
|
+
* * Operation 2
|
|
409
|
+
* * * Stage 1
|
|
410
|
+
* * * Stage 2
|
|
411
|
+
* * * Stage ...
|
|
412
|
+
*
|
|
413
|
+
* @realm shared
|
|
414
|
+
* @source https://wiki.facepunch.com/gmod/Tool:SetOperation
|
|
415
|
+
*/
|
|
416
|
+
SetOperation(self: Tool, operation: number): void;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
interface Tool {
|
|
420
|
+
/**
|
|
421
|
+
* Sets the current stage of the tool. Does nothing clientside.
|
|
422
|
+
*
|
|
423
|
+
* See also [Tool:SetOperation](https://wiki.facepunch.com/gmod/Tool:SetOperation).
|
|
424
|
+
*
|
|
425
|
+
* @realm shared
|
|
426
|
+
* @source https://wiki.facepunch.com/gmod/Tool:SetStage
|
|
427
|
+
*/
|
|
428
|
+
SetStage(self: Tool, stage: number): void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface Tool {
|
|
432
|
+
/**
|
|
433
|
+
* Initializes the ghost entity based on the supplied entity.
|
|
434
|
+
* @realm shared
|
|
435
|
+
* @source https://wiki.facepunch.com/gmod/Tool:StartGhostEntity
|
|
436
|
+
*/
|
|
437
|
+
StartGhostEntity(self: Tool, ent: Entity): void;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
interface Tool {
|
|
441
|
+
/**
|
|
442
|
+
* **INTERNAL**: Called on deploy automatically
|
|
443
|
+
*
|
|
444
|
+
*
|
|
445
|
+
* Sets the tool's stage to how many stored objects the tool has.
|
|
446
|
+
*
|
|
447
|
+
* @realm shared
|
|
448
|
+
* @source https://wiki.facepunch.com/gmod/Tool:UpdateData
|
|
449
|
+
*/
|
|
450
|
+
UpdateData(self: Tool): void;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
interface Tool {
|
|
454
|
+
/**
|
|
455
|
+
* Updates the position and orientation of the ghost entity based on where the toolgun owner is looking along with data from object with id 1 set by [Tool:SetObject](https://wiki.facepunch.com/gmod/Tool:SetObject).
|
|
456
|
+
*
|
|
457
|
+
* This should be called in the tool's [TOOL:Think](https://wiki.facepunch.com/gmod/TOOL:Think) hook.
|
|
458
|
+
*
|
|
459
|
+
* This command is only used for tools that move props, such as easy weld, axis and motor. If you want to update a ghost like the thruster tool does it for example, check its [source code](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/sandbox/entities/weapons/gmod_tool/stools/thruster.lua#L179).
|
|
460
|
+
*
|
|
461
|
+
* @realm shared
|
|
462
|
+
* @source https://wiki.facepunch.com/gmod/Tool:UpdateGhostEntity
|
|
463
|
+
*/
|
|
464
|
+
UpdateGhostEntity(self: Tool): void;
|
|
465
|
+
}
|
|
466
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A window that is used to publish dupes and saves
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* @realm menu
|
|
8
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow
|
|
9
|
+
*/
|
|
10
|
+
interface UGCPublishWindow extends DFrame {}
|
|
11
|
+
|
|
12
|
+
interface UGCPublishWindow {
|
|
13
|
+
/**
|
|
14
|
+
* Checks if the Tags and Title are valid and if so it enables the publish button.
|
|
15
|
+
* @realm menu
|
|
16
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:CheckInput
|
|
17
|
+
*/
|
|
18
|
+
CheckInput(self: UGCPublishWindow): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface UGCPublishWindow {
|
|
22
|
+
/**
|
|
23
|
+
* Displays the given error message.
|
|
24
|
+
* @realm menu
|
|
25
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DisplayError
|
|
26
|
+
*/
|
|
27
|
+
DisplayError(self: UGCPublishWindow, err: string): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface UGCPublishWindow {
|
|
31
|
+
/**
|
|
32
|
+
* Publishes the Item or throws an error if the Title or Tags are invalid
|
|
33
|
+
* @realm menu
|
|
34
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:DoPublish
|
|
35
|
+
*/
|
|
36
|
+
DoPublish(self: UGCPublishWindow, wsid: string, err: string): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface UGCPublishWindow {
|
|
40
|
+
/**
|
|
41
|
+
* Rezises the panel to nicely fit all children
|
|
42
|
+
* @realm menu
|
|
43
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:FitContents
|
|
44
|
+
*/
|
|
45
|
+
FitContents(self: UGCPublishWindow): void;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface UGCPublishWindow {
|
|
49
|
+
/**
|
|
50
|
+
* Returns the name of the current selected tag.
|
|
51
|
+
* @realm menu
|
|
52
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:GetChosenTag
|
|
53
|
+
*/
|
|
54
|
+
GetChosenTag(self: UGCPublishWindow): string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface UGCPublishWindow {
|
|
58
|
+
/**
|
|
59
|
+
* Called when the Item was published or if any error occurred while publishing
|
|
60
|
+
* @realm menu
|
|
61
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:OnPublishFinished
|
|
62
|
+
*/
|
|
63
|
+
OnPublishFinished(self: UGCPublishWindow, wsid: string, err: string): void;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
interface UGCPublishWindow {
|
|
67
|
+
/**
|
|
68
|
+
* updated the Workshop items list.
|
|
69
|
+
* @realm menu
|
|
70
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:Setup
|
|
71
|
+
*/
|
|
72
|
+
Setup(self: UGCPublishWindow, ugcType: string, file: string, imageFile: string, handler: WorkshopFileBase): void;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface UGCPublishWindow {
|
|
76
|
+
/**
|
|
77
|
+
* updated the Workshop items list.
|
|
78
|
+
* @realm menu
|
|
79
|
+
* @source https://wiki.facepunch.com/gmod/UGCPublishWindow:UpdateWorkshopItems
|
|
80
|
+
*/
|
|
81
|
+
UpdateWorkshopItems(self: UGCPublishWindow): void;
|
|
82
|
+
}
|
|
83
|
+
|
package/umsg.d.tlua
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
// AUTO-GENERATED tlua declarations. Do not edit by hand.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The umsg (user message) library was previously the most common way of sending information from the server to the client.
|
|
5
|
+
*
|
|
6
|
+
* **WARNING**: Usermessages have a limit of only 256 bytes!
|
|
7
|
+
*
|
|
8
|
+
* @source https://wiki.facepunch.com/gmod/umsg
|
|
9
|
+
* @deprecated You should be using the net library instead
|
|
10
|
+
*/
|
|
11
|
+
declare umsg: UmsgLib;
|
|
12
|
+
|
|
13
|
+
interface UmsgLib {
|
|
14
|
+
/**
|
|
15
|
+
* Writes an angle to the usermessage.
|
|
16
|
+
* @realm server
|
|
17
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Angle
|
|
18
|
+
* @deprecated You should be using the net instead
|
|
19
|
+
*/
|
|
20
|
+
Angle(angle: Angle): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface UmsgLib {
|
|
24
|
+
/**
|
|
25
|
+
* Writes a bool to the usermessage.
|
|
26
|
+
* @realm server
|
|
27
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Bool
|
|
28
|
+
* @deprecated You should be using the net instead
|
|
29
|
+
*/
|
|
30
|
+
Bool(bool: boolean): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface UmsgLib {
|
|
34
|
+
/**
|
|
35
|
+
* Writes a signed char to the usermessage.
|
|
36
|
+
* @realm server
|
|
37
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Char
|
|
38
|
+
* @deprecated You should be using the net instead
|
|
39
|
+
*/
|
|
40
|
+
Char(char: number): void;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface UmsgLib {
|
|
44
|
+
/**
|
|
45
|
+
* Dispatches the usermessage to the client(s).
|
|
46
|
+
* @realm server
|
|
47
|
+
* @source https://wiki.facepunch.com/gmod/umsg.End
|
|
48
|
+
* @deprecated You should be using the net instead
|
|
49
|
+
*/
|
|
50
|
+
End(): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface UmsgLib {
|
|
54
|
+
/**
|
|
55
|
+
* Writes an entity object to the usermessage. (As an entity handle, which means the entity index + its serial number)
|
|
56
|
+
* @realm server
|
|
57
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Entity
|
|
58
|
+
* @deprecated You should be using the net instead
|
|
59
|
+
*/
|
|
60
|
+
Entity(entity: Entity): void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface UmsgLib {
|
|
64
|
+
/**
|
|
65
|
+
* Writes a float to the usermessage.
|
|
66
|
+
* @realm server
|
|
67
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Float
|
|
68
|
+
* @deprecated You should be using the net instead
|
|
69
|
+
*/
|
|
70
|
+
Float(float: number): void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface UmsgLib {
|
|
74
|
+
/**
|
|
75
|
+
* Writes a signed int (32 bit) to the usermessage.
|
|
76
|
+
* @realm server
|
|
77
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Long
|
|
78
|
+
* @deprecated You should be using the net instead
|
|
79
|
+
*/
|
|
80
|
+
Long(int: number): void;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
interface UmsgLib {
|
|
84
|
+
/**
|
|
85
|
+
* The string specified will be networked to the client and receive a identifying number, which will be sent instead of the string to optimize networking.
|
|
86
|
+
*
|
|
87
|
+
* @realm server
|
|
88
|
+
* @source https://wiki.facepunch.com/gmod/umsg.PoolString
|
|
89
|
+
* @deprecated Inferior version of util.AddNetworkString
|
|
90
|
+
*/
|
|
91
|
+
PoolString(string: string): void;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
interface UmsgLib {
|
|
95
|
+
/**
|
|
96
|
+
* Writes a signed short (16 bit) to the usermessage.
|
|
97
|
+
* @realm server
|
|
98
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Short
|
|
99
|
+
* @deprecated You should be using the net instead
|
|
100
|
+
*/
|
|
101
|
+
Short(short: number): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
interface UmsgLib {
|
|
105
|
+
/**
|
|
106
|
+
* Starts a new usermessage.
|
|
107
|
+
*
|
|
108
|
+
* **WARNING**: Usermessages have a limit of only 256 bytes!
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* @realm server
|
|
112
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Start
|
|
113
|
+
* @deprecated You should be using net instead
|
|
114
|
+
*/
|
|
115
|
+
Start(name: string, filter?: Player): void;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
interface UmsgLib {
|
|
119
|
+
/**
|
|
120
|
+
* Writes a null terminated string to the usermessage.
|
|
121
|
+
* @realm server
|
|
122
|
+
* @source https://wiki.facepunch.com/gmod/umsg.String
|
|
123
|
+
* @deprecated You should be using the net instead
|
|
124
|
+
*/
|
|
125
|
+
String(string: string): void;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
interface UmsgLib {
|
|
129
|
+
/**
|
|
130
|
+
* Writes a Vector to the usermessage.
|
|
131
|
+
* @realm server
|
|
132
|
+
* @source https://wiki.facepunch.com/gmod/umsg.Vector
|
|
133
|
+
* @deprecated You should be using the net instead
|
|
134
|
+
*/
|
|
135
|
+
Vector(vector: Vector): void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
interface UmsgLib {
|
|
139
|
+
/**
|
|
140
|
+
* Writes a vector normal to the usermessage.
|
|
141
|
+
* @realm server
|
|
142
|
+
* @source https://wiki.facepunch.com/gmod/umsg.VectorNormal
|
|
143
|
+
* @deprecated You should be using the net instead
|
|
144
|
+
*/
|
|
145
|
+
VectorNormal(normal: Vector): void;
|
|
146
|
+
}
|
|
147
|
+
|