From a05eedd68ef8d9463d3e4cba06903a25599c0738 Mon Sep 17 00:00:00 2001 From: Sardelka9515 <106232474+Sardelka9515@users.noreply.github.com> Date: Tue, 5 Jul 2022 21:58:37 +0800 Subject: [PATCH] Fix NativeResponse --- RageCoop.Client/Scripting/BaseScript.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/RageCoop.Client/Scripting/BaseScript.cs b/RageCoop.Client/Scripting/BaseScript.cs index f2819b9..efb493c 100644 --- a/RageCoop.Client/Scripting/BaseScript.cs +++ b/RageCoop.Client/Scripting/BaseScript.cs @@ -165,60 +165,60 @@ namespace RageCoop.Client.Scripting { case TypeCode.Boolean: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Byte: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Char: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Single: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Double: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Int16: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Int32: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.Int64: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.String: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.UInt16: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.UInt32: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; case TypeCode.UInt64: API.SendCustomEvent(CustomEvents.NativeResponse, - new List { id, Function.Call(hash, arguments.ToArray()) }); + new object[] { id, Function.Call(hash, arguments.ToArray()) }); break; }