Skip to content

Commit 6aa6f11

Browse files
Update events.md
1 parent 37f256b commit 6aa6f11

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/articles/events.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ public void OnPlayerConnect(IPlayer player, string reason)
2828

2929
You should not register event handlers in async code.
3030

31+
[!code-csharp[Events](/api/AltV.Net/Alt.Events.cs)]
32+
3133
For a list of all event handlers see [Alt.Events.cs](https://github.com/FabianTerhorst/coreclr-module/blob/master/api/AltV.Net/Alt.Events.cs).
3234

35+
[!code-csharp[Events](/api/AltV.Net/Events/Events.cs)]
36+
3337
And the method signatures can be found in [Events.cs](https://github.com/FabianTerhorst/coreclr-module/blob/master/api/AltV.Net/Events/Events.cs).
3438

3539
The player event handler looks like this.

0 commit comments

Comments
 (0)