---
title: "Event System - s&box library"
description: "About Event System\n\npublic partial class MyClass\n{\n public MyClass(){\n EventSystem.EventCommand.RegisterServerEvent<int, string>( \"server:test_event\", this.EventTest2 );\n EventSystem.EventCommand.RegisterGameEvent<int, string>( \"game:test_event\", this.EventTest );\n }\n\n public void EventTest(IClient client,int arg1, string arg2)\n {\n Log.Info( \"eventExecuted\" );\n Log.Info( arg1 );\n Log.Info( arg2 );\n //Call Server event with TriggerServerEvent\n EventSystem.EventCommand.TriggerServerEvent( \"server:test_event\", 1, \"uno\" );\n }\n\n public void EventTest2( IClient client, int arg1, string arg2 )\n {\n Log.Info( \"eventExecuted\" );\n Log.Info( arg1 );\n Log.Info( arg2 );\n }\n\n}\n\n//call Client Event with TriggerClientEvent\nEventSystem.EventCommand.TriggerClientEvent( client, \"game:test_event\", 1,\"uno\");\n\nYou can put up to 6 arguments, I'm working on a version with websockets not necessarily useful but can be good for certain things.\n\nYou can declare your event on methods that are not static."
canonical: "https://sbox.watch/libraries/dicta/event_system/"
generated_at: "2026-07-22T23:21:23.098Z"
---

# Event System

No summary provided.

- Type: library
- Ident: dicta.event_system
- Creator: dicta
- Canonical: https://sbox.watch/libraries/dicta/event_system/
- Markdown: https://sbox.watch/libraries/dicta/event_system.md
- sbox.game: https://sbox.game/dicta/event_system/
- Generated: 2026-07-22T23:21:23.098Z

## Stats

- 24h momentum: +0
- Terry score: --
- Favorites: 0
- Upvotes: 0
- Downvotes: 0
- Updated: Nov 9, 2023
- Created: Jul 29, 2023
- Size: 45.2 KB
- Files: 3
- Tags: 

## Description

About Event System

public partial class MyClass
{
 public MyClass(){
 EventSystem.EventCommand.RegisterServerEvent<int, string>( "server:test\_event", this.EventTest2 );
 EventSystem.EventCommand.RegisterGameEvent<int, string>( "game:test\_event", this.EventTest );
 }

 public void EventTest(IClient client,int arg1, string arg2)
 {
 Log.Info( "eventExecuted" );
 Log.Info( arg1 );
 Log.Info( arg2 );
 //Call Server event with TriggerServerEvent
 EventSystem.EventCommand.TriggerServerEvent( "server:test\_event", 1, "uno" );
 }

 public void EventTest2( IClient client, int arg1, string arg2 )
 {
 Log.Info( "eventExecuted" );
 Log.Info( arg1 );
 Log.Info( arg2 );
 }

}

//call Client Event with TriggerClientEvent
EventSystem.EventCommand.TriggerClientEvent( client, "game:test\_event", 1,"uno");

You can put up to 6 arguments, I'm working on a version with websockets not necessarily useful but can be good for certain things.

You can declare your event on methods that are not static.



## More by dicta

| Package | Ident | Players | Favorites | Upvotes | Score | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| PanelRenderTarget | dicta.panelrendertarget | 0 | 0 | 0 | -- | https://sbox.watch/libraries/dicta/panelrendertarget.md |
