kokenya Posted April 19, 2019 Share Posted April 19, 2019 [RemoteEvent("getPlayerFactions")] public List<NewFactionModel> getPlayerFactionsEvent(Client player) { int pid = player.GetSharedData(EntityData.PLAYER_SQL_ID); var Lista = factionList.Where(x => x.members.Any(y => y.Key == pid)).ToList(); return Lista; } I want to use this list in my clientsided c# code. How can I trigger it? Link to comment Share on other sites More sharing options...
TimoW Posted April 20, 2019 Share Posted April 20, 2019 (edited) player.TriggerEvent("eventname", NAPI.Util.ToJson(Lista)); Edited April 20, 2019 by TimoW 1 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