---
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/fr/libraries/dicta/event_system/"
generated_at: "2026-10-09T13:14:14.632Z"
---

# Event System

Aucun résumé fourni.

- Type: bibliothèque
- Identifiant: dicta.event_system
- Créateur: dicta
- URL canonique: https://sbox.watch/fr/libraries/dicta/event_system/
- Markdown: https://sbox.watch/fr/libraries/dicta/event_system/index.md
- sbox.game: https://sbox.game/dicta/event_system/
- Généré: 2026-10-09T13:14:14.632Z

## Statistiques

- dynamique sur 24 h: +0
- Terry Score: --
- Favoris: 0
- Votes positifs: 0
- Votes négatifs: 0
- Mis à jour: 9 nov. 2023
- Créé: 29 juil. 2023
- Taille: 45.2 KB
- Fichiers: 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 | Identifiant | Joueurs | Favoris | Votes positifs | Score | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| PanelRenderTarget | dicta.panelrendertarget | 0 | 0 | 0 | -- | https://sbox.watch/fr/libraries/dicta/panelrendertarget/index.md |
