Cristi
Cristi
CC#
Created by Cristi on 11/2/2024 in #help
Passing an array as a parameter to an event
hello, i have these arrays, which needs to get passed towards the clientside
string[] names = new string[] { "Darius Campbell", "Andreea Gonzalez", "Michael Black" };
int[] money = new int[] { 100, 500, 200 };
player.TriggerEvent("SERVER:CLIENT:showCharInterface");
player.TriggerEvent("SERVER:CLIENT:displayAccountInfo", username, names, money);
string[] names = new string[] { "Darius Campbell", "Andreea Gonzalez", "Michael Black" };
int[] money = new int[] { 100, 500, 200 };
player.TriggerEvent("SERVER:CLIENT:showCharInterface");
player.TriggerEvent("SERVER:CLIENT:displayAccountInfo", username, names, money);
problem is that when they get passed, they are received as object[] args the username remains a string type, but the arrays become newtonsoft.json.linq.jarray, and i can't find a version of this plugin which is compatible with .net core 3.1 If you can help me either find a version for the newtonsoft which works, or help me get my arrays into my clientside handler, thank you!
45 replies