---
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/ru/libraries/dicta/event_system/"
generated_at: "2026-10-09T12:59:14.901Z"
---

# Event System

Описание не предоставлено.

- Тип: библиотека
- Идентификатор: dicta.event_system
- Автор: dicta
- Канонический URL: https://sbox.watch/ru/libraries/dicta/event_system/
- Markdown: https://sbox.watch/ru/libraries/dicta/event_system/index.md
- sbox.game: https://sbox.game/dicta/event_system/
- Создано: 2026-10-09T12:59:14.901Z

## Статистика

- динамика за 24 ч: +0
- Terry Score: --
- Избранное: 0
- Положительные оценки: 0
- Отрицательные оценки: 0
- Обновлено: 9 нояб. 2023 г.
- Создано: 29 июл. 2023 г.
- Размер: 45.2 KB
- Файлы: 3
- Теги: 

## Описание

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 | Идентификатор | Игроки | Избранное | Положительные оценки | Оценка | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| PanelRenderTarget | dicta.panelrendertarget | 0 | 0 | 0 | -- | https://sbox.watch/ru/libraries/dicta/panelrendertarget/index.md |
