A Simple Mod Template For UE4SS C++ Mods
- Rust With Target
x86_64-pc-windows-msvc - CMake
- Ninja Or MSVC (Windows Only)
- Access To UE Repo On Github
- Clone The Repository
git clone git@github.com:LabrynthKing/UE4SS-CPP-ModTemplate.git
cd UE4SS-CPP-ModTemplate- Update Submodules
git submodule update --init --recursive- IF ON LINUX Make Sure Xwin Is Setup And Set
XWIN_DIREnvironment Variable As The~/.xwin-cacheDirectory
xwin --accept-license splat --output ~/.xwin-cache- Depending On Your Platform, Generate CMake Build Files
# Windows
cmake -G "Visual Studio 19 2026" -DCMAKE_BUILD_TYPE=Game__Shipping__Win64 -S . -B ./cmake_shipping
# Linux
cmake -G Ninja -DCMAKE_BUILD_TYPE=Game__Shipping__Win64 -DCMAKE_MAKE_PROGRAM="$NINJA_PATH" -S . -B ./cmake_shipping- Build Using CMake
# Windows (Adjust Processor Cores According To Your Choice)
cmake --build ./cmake_shipping --config Game__Shipping__Win64 -j 8
# Linux
cmake --build ./cmake_shipping -j (nproc)- Your Mod File Should Be Named
main.dllAnd Available In Thecmake_shippingDirectory
- Make Sure UE4SS Is Installed
- Your File Tree Should Look Like This:-
ue4ss/
|_Mods/
|_MyMod/
|_enabled.txt (optional)
|_dlls/
|_main.dll
- You Can Either Add This Line To
ue4ss/Mods/mods.txt
MyMod : 1
- Or You Can Use
enabled.txtIf Your Mod Doesn't Care About Load Order