Skip to content

Commit cb39584

Browse files
committed
2 parents b70d363 + a22b56a commit cb39584

File tree

33 files changed

+239
-163
lines changed

33 files changed

+239
-163
lines changed

documentation/docs/modules/alcoholism/hooks.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ end)
7272

7373
* `client` (`Player`): `The affected player.`
7474

75-
* `amount` (`number`): `Amount added to the BAC.`
75+
* `amt` (`number`): `Amount added to the BAC.`
7676

7777
* `newBac` (`number`): `The resulting BAC value.`
7878

@@ -87,8 +87,8 @@ end)
8787
**Example**
8888

8989
```lua
90-
hook.Add("BACIncreased", "NotifyBACIncrease", function(client, amount, newBac)
91-
client:ChatPrint("BAC increased by " .. amount .. " to " .. newBac .. "%")
90+
hook.Add("BACIncreased", "NotifyBACIncrease", function(client, amt, newBac)
91+
client:ChatPrint("BAC increased by " .. amt .. " to " .. newBac .. "%")
9292
end)
9393
```
9494

@@ -190,7 +190,7 @@ end)
190190

191191
* `client` (`Player`): `The affected player.`
192192

193-
* `amount` (`number`): `Amount being added.`
193+
* `amt` (`number`): `Amount being added.`
194194

195195
**Realm**
196196

@@ -203,8 +203,8 @@ end)
203203
**Example**
204204

205205
```lua
206-
hook.Add("PreBACIncrease", "CheckIncrease", function(client, amount)
207-
if amount > 50 then return false end
206+
hook.Add("PreBACIncrease", "CheckIncrease", function(client, amt)
207+
print("BAC will increase by", amt)
208208
end)
209209
```
210210

@@ -250,7 +250,7 @@ end)
250250

251251
* `client` (`Player`): `Player whose BAC will drop.`
252252

253-
* `current` (`number`): `Their current BAC before drop.`
253+
* `bac` (`number`): `Their current BAC before drop.`
254254

255255
**Realm**
256256

@@ -263,7 +263,7 @@ end)
263263
**Example**
264264

265265
```lua
266-
hook.Add("PreBACDecrease", "CheckDrop", function(client, current)
266+
hook.Add("PreBACDecrease", "CheckDrop", function(client, bac)
267267
-- You could modify decay here
268268
end)
269269
```

documentation/docs/modules/alcoholism/meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Raises the player's BAC by the specified amount.
4040

4141
| ------- | ------ | ------------------ |
4242

43-
| `amount` | number | BAC points to add. |
43+
| `amt` | number | BAC points to add. |
4444

4545
**Realm**
4646

documentation/docs/modules/auto_restarter/hooks.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,3 @@ hook.Add("AutoRestartCountdown", "DisplayTimer", function(remaining)
114114
end)
115115
```
116116

117-
---
118-

documentation/docs/modules/broadcasts/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ end)
136136

137137
**Purpose**
138138

139-
`Fires when the class broadcast selection menu is presented.`
139+
`Runs before the class broadcast selection menu is presented.`
140140

141141
**Parameters**
142142

@@ -228,7 +228,7 @@ end)
228228

229229
**Purpose**
230230

231-
`Fires when the faction broadcast selection menu appears.`
231+
`Runs before the faction broadcast selection menu appears.`
232232

233233
**Parameters**
234234

documentation/docs/modules/captions/hooks.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,16 @@ end)
7878

7979
**Parameters**
8080

81-
* `clientOrText` (`Player|string`): `On the server this is the target player, on the client this is the caption text.`
81+
**Server**
8282

83-
* `textOrDuration` (`string|number`): `On the server this is the caption text, on the client this is the duration.`
83+
* `client` (`Player`): `The player receiving the caption.`
84+
* `text` (`string`): `Caption text.`
85+
* `duration` (`number`): `How long the caption should display.`
8486

85-
* `duration` (`number`, optional): `Duration when running server side.`
87+
**Client**
88+
89+
* `text` (`string`): `Caption text.`
90+
* `duration` (`number`): `How long the caption should display.`
8691

8792
**Realm**
8893

@@ -110,7 +115,13 @@ end)
110115

111116
**Parameters**
112117

113-
* `client` (`Player`, optional): `The player whose caption ended when on the server.`
118+
**Server**
119+
120+
* `client` (`Player`): `The player whose caption ended.`
121+
122+
**Client**
123+
124+
* *(None)*
114125

115126
**Realm**
116127

documentation/docs/modules/captions/libraries.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The net strings `StartCaption` and `EndCaption` are registered automatically whe
2222

2323
---
2424

25-
### lia.caption.start
25+
### lia.caption.start (Server)
2626

2727
**Purpose**
2828

@@ -57,7 +57,7 @@ lia.caption.start(ply, "Access Granted", 5)
5757

5858
---
5959

60-
### lia.caption.finish
60+
### lia.caption.finish (Server)
6161

6262
**Purpose**
6363

@@ -88,7 +88,7 @@ lia.caption.finish(ply)
8888

8989
---
9090

91-
### lia.caption.start
91+
### lia.caption.start (Client)
9292

9393
**Purpose**
9494

@@ -121,7 +121,7 @@ lia.caption.start("Mission Complete", 3)
121121

122122
---
123123

124-
### lia.caption.finish
124+
### lia.caption.finish (Client)
125125

126126
**Purpose**
127127

documentation/docs/modules/cigarettes/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Occurs when a player releases smoke after holding a cigarette.
7878

7979
* `cigID` (`number`): Identifier of the cigarette item.
8080

81-
* `puffs` (`number`): How many puffs were taken.
81+
* `puffs` (`number`): Total puffs taken so far.
8282

8383
**Realm**
8484

documentation/docs/modules/cinematic_text/hooks.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Called when a cinematic display begins on the client.
2020

2121
* `blackBars` (`boolean`): Whether letterbox bars are drawn.
2222

23-
* `playMusic` (`boolean`): Whether background music should play.
23+
* `music` (`boolean`): Whether background music should play.
2424

2525
* `color` (`Color`): Color applied to the text.
2626

@@ -35,7 +35,7 @@ Called when a cinematic display begins on the client.
3535
**Example**
3636

3737
```lua
38-
hook.Add("CinematicDisplayStart", "ExampleStart", function(text, bigText, duration, blackBars, playMusic, color)
38+
hook.Add("CinematicDisplayStart", "ExampleStart", function(text, bigText, duration, blackBars, music, color)
3939
print("Cinematic started:", text)
4040
end)
4141
```
@@ -144,7 +144,7 @@ Called server-side when a player requests to trigger a cinematic display.
144144

145145
* `blackBars` (`boolean`): Whether to include black bars.
146146

147-
* `playMusic` (`boolean`): Whether to play music.
147+
* `music` (`boolean`): Whether to play music.
148148

149149
* `color` (`Color`): Text color.
150150

@@ -159,7 +159,7 @@ Called server-side when a player requests to trigger a cinematic display.
159159
**Example**
160160

161161
```lua
162-
hook.Add("CinematicTriggered", "OnCinematicTrigger", function(client, text, bigText, duration, blackBars, playMusic, color)
162+
hook.Add("CinematicTriggered", "OnCinematicTrigger", function(client, text, bigText, duration, blackBars, music, color)
163163
print(client:Name() .. " started a cinematic.")
164164
end)
165165
```

documentation/docs/modules/custom_cursor/hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Runs right after the cursor texture has been drawn.
5353
**Example**
5454

5555
```lua
56-
hook.Add("PostRenderCursor", "ResetColor", function()
56+
hook.Add("PostRenderCursor", "ResetColor", function(mat)
5757
surface.SetDrawColor(255, 255, 255)
5858
end)
5959
```
@@ -82,7 +82,7 @@ Executed every frame before the hovered panel has its cursor style changed.
8282

8383
```lua
8484
hook.Add("PreCursorThink", "BlockCursor", function(panel)
85-
if panel.NoCursor then return false end
85+
if panel.NoCursor then return end
8686
end)
8787
```
8888

documentation/docs/modules/development_server/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end)
3636

3737
**Purpose**
3838

39-
`Runs when an allowed developer joins the server while dev mode is active.`
39+
`Fires when a player passes the development server check (either dev mode is disabled or their SteamID64 is authorized).`
4040

4141
**Parameters**
4242

0 commit comments

Comments
 (0)