SammyD86 Posted July 14, 2019 Share Posted July 14, 2019 Hey i have a question. Can i use the server on C# and Clientside on JS without a C# on Clientside? I want to trigger a Clientevent from Server with : Serverside C# [RemoteEvent("MyEventName")] public void MyEventName(Client player, object[] arguments) { player.SendChatMessage($"heyho"); } [Command("hello")] public void SayHi(Client player) { NAPI.ClientEvent.TriggerClientEvent(player, "TEST"); } and CLientside JS mp.events.add('TEST',(test)=>{ mp.events.callRemote("MyEventName","huhu"); }); can someone help me? Link to comment Share on other sites More sharing options...
SammyD86 Posted July 14, 2019 Author Share Posted July 14, 2019 it can be deleted i have found my failure. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now