Skip to content

Commit c03f44c

Browse files
committed
Merge branch 'pr-139' into megamerge
2 parents 0f5649e + 69e9714 commit c03f44c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

warrants/docs/hooks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Module-specific events raised by the Warrant System module.
2929
**Example**
3030

3131
```lua
32-
hook.Add("PreWarrantToggle", "LogAttempt", function(char, actor, warranted)
32+
hook.Add("PreWarrantToggle", "LogAttempt", function(char, warranter, warranted)
3333
print("Warrant change for " .. char:getName())
3434
end)
3535
```
@@ -61,7 +61,7 @@ end)
6161
**Example**
6262

6363
```lua
64-
hook.Add("WarrantStatusChanged", "NotifyAdmins", function(char, actor, warranted)
64+
hook.Add("WarrantStatusChanged", "NotifyAdmins", function(char, warranter, warranted)
6565
if warranted then
6666
PrintMessage(HUD_PRINTTALK, char:getName() .. " is now warranted")
6767
end
@@ -95,7 +95,7 @@ end)
9595
**Example**
9696

9797
```lua
98-
hook.Add("PostWarrantToggle", "Cleanup", function(char, actor, warranted)
98+
hook.Add("PostWarrantToggle", "Cleanup", function(char, warranter, warranted)
9999
if not warranted then
100100
-- custom cleanup here
101101
end

warrants/docs/meta.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ Extensions for managing a character's warrant status.
1010

1111
Toggles the character's wanted status and notifies relevant players.
1212

13+
**Parameters**
14+
1315
| Name | Type | Description |
1416

1517
| ----------- | ------ | ------------------------------- |
1618

17-
| `warranter` | Player | Player initiating the toggle. |
19+
| `warranter` | Player | *(Optional)* Player initiating the toggle. |
1820

1921
**Realm**
2022

@@ -78,7 +80,7 @@ Returns whether the character currently has a warrant.
7880

7981
**Realm**
8082

81-
Shared
83+
Server
8284

8385
**Returns**
8486

0 commit comments

Comments
 (0)