Event's not listening or triggering

Hey, triggering events doesn’t work for me…

Im trying to Trigger and Server Event TriggerServerEvent("ini:session", GetPlayerServerId(PlayerId())).
But that doesn’t seem to work…

Im Listening for the Event on the Server like that:

            EventHandlers["ini:session"] += new Action<Player, int>(IniSession);

Nothing happens.

Thanks for help.

You’ll need to show more of your code. In theory what you posted should be fine.

it was not my problem, it was that the fxdk didn’t update my code, do you know how i make it that fxdk always updates the code when i build the project?