I have no idea why there is no TriggerClientEvent on my Server-Side script! 
Please help

Looks like you have referenced the client side
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CitizenFX.Core;
using Newtonsoft.Json;
using static CitizenFX.Core.Native.API;
namespace stasiek_phone_server
{
public class Main : BaseScript
{
Config config;
public class Key
{
public string input { get; set; }
public int key { get; set; }
}
public class Config
{
public List<Key> keys { get; set; }
}
public Main()
{
EventHandlers["onClientResourceStart"] += new Action<string>(OnClientResourceStart);
EventHandlers.Add("stasiek_phone:GetConfig", new Action(GetConfig));
LoadJson();
}
private void OnClientResourceStart(string resourceName)
{
if (GetCurrentResourceName() != resourceName) return;
LoadJson();
}
private void GetConfig()
{
TriggerClientEvent("asd", "asd"); --not exist!!!!
}
public void LoadJson()
{
string json = File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "/config.json");
config = JsonConvert.DeserializeObject<Config>(json);
Debug.WriteLine("__________________" + config.keys[0].key);
}
}
}
Ok solution is there.
The server project dependency is very similar to the client one. One major change is the location where you get the dependency from. Instead of getting it from your client files, you actually need to grab it from your server files.
Go to the following folder in your server files:
citizen\clr2\lib\mono\4.5\
Once you’re in there, copy the CitizenFX.Core.dll file and paste it in your C# server project folder.
Now, go back into Visual Studio and go to your project in the Solution Explorer on the right. Right click on your (server) project, and click “Add > Reference”. The same window shown in the above section should appear.
In that window, click on “Browse…” and go to your server project folder. Find the CitizenFX.Core.dll file, select it, and press Add. You should now see that the DLL has been added to the “Browse > Recent” list. Make sure that the checkbox in front of the reference is checked, and click “OK” in the bottom right.```
d0p3t
7
Right after that guide was written Nuget packages were made to not have to do these steps manually. So if you want, or for future projects, you can add the respective package
‘CitizenFx.Core.Client’ or ‘CitizenFx.Core.Server’