Zurky
Zurky
CC#
Created by Zurky on 10/19/2023 in #help
✅ 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);
}
}
}
}
4 replies