- Run commands
cmake . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- Builded module will be in the
./bin
directory
- Run commands
# For x86
cmake -A Win32 . -B build
cmake --build build --config ${{ matrix.build_type }}
# For x64
cmake -A x64 . -B build
cmake --build build --config ${{ matrix.build_type }}
- Builded DLL will be in the
.\bin
directory
- 32 bit: Copy 32 bit
ml_package.dll
into theMTA San Andreas\server\mods\deathmatch\modules\
directory. - 64 bit: Copy 64 bit
ml_package.dll
into theMTA San Andreas\server\x64\modules\
directory.
Then, add the following line in mtaserver.conf
:
<module src="ml_package.dll" />
- 32 bit: Copy 32 bit ml_package.so into the
mods/deathmatch/modules/
directory. - 64 bit: Copy 64 bit ml_package.so into the
x64/modules/
directory.
Then, add the following line in mtaserver.conf
:
<module src="ml_package.so" />