DK22Pac / plugin-sdk

An SDK for developing ASI/CLEO plugins for GTA San Andreas, GTA Vice City and GTA III
zlib License
431 stars 114 forks source link

events don't work #200

Closed chadmode closed 1 month ago

chadmode commented 1 month ago

EDIT: I did not have the correct version of gta_sa.exe It's basically what the title says, the events are not called for some reason that I don't know, it should be noted that I use xmake to compile the project, for those who don't know xmake it is something like premake or cmake

#include "plugin.h"
using namespace plugin;

class test {
public:
    test() {
        Events::processScriptsEvent += [] {
           //not work :(
           message("test");
        };
    }
} test_;