TriggerServerEvent does not exist in the current context

Did you properly add in the .dll references? Follow this: [How-to] Setting up C# and creating a basic resource