C
C#8mo ago
Zurky

✅ Access internal class from 3rd party assemby

Hi, I've been trying to access a static internal class from a 3rd party assembly to then access a private list inside it. The problem is that after loading the assembly, most of its symbols don't get detected. this is my current code:
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using CitizenFX.FiveM.Native;
using CitizenFX.Core;
using System.Reflection;
using System.Linq;
using Mono.CSharp;

namespace Client
{
public class ClientMain : BaseScript
{
public ClientMain()
{
var assembly = Assembly.Load("CitizenFX.Core");
var types = assembly.GetModules();
foreach (var type in types)
{
Debug.WriteLine(type);
}
}
}
}
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using CitizenFX.FiveM.Native;
using CitizenFX.Core;
using System.Reflection;
using System.Linq;
using Mono.CSharp;

namespace Client
{
public class ClientMain : BaseScript
{
public ClientMain()
{
var assembly = Assembly.Load("CitizenFX.Core");
var types = assembly.GetModules();
foreach (var type in types)
{
Debug.WriteLine(type);
}
}
}
}
3 Replies
MODiX
MODiX8mo ago
Please don't upload any potentially harmful files @Zurky, your message has been removed
Buddy
Buddy8mo ago
I believe we don't help with FiveM or similar because it technically breaks the ToS.
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View