All code and assets contained in this repository are STRICTLY the intellectual property of GTAPoliceMods unless otherwise noted by a license provided. Do not copy or redistribute.
-
Before making changes to FivePD.Nui, run
npm installin theFivePD.Nuidirectory -
Make sure you have created a
.env.productionfile in FivePD.Nui and it contains the following value(s):VITE_OUTDIR=<your_path_to_the_fivem_server>\resources\fivepd\Libraries\FivePD.Nui
- Use the syntax
dotnet ef migrations add <MigrationName> --project .\FivePD.Gamemode.Server\FivePD.Gamemode.Server.csproj --startup-project .\FivePD.StartupProject\FivePD.StartupProject.csprojfrom the root folder. Migrations require a startup project to run properly.
- Insert the latest recommended build of FXServer into the
FXServerdirectory - Select the Debug solution configuration
- Start the "Run FXServer" run configuration
- If you want to make changes to FivePD.Nui, change the
ui_pagevalue tohttp://localhost:3000in yourfxmanifest.lua. You might need to restart the resource sometimes, because the old UI and events could be cached. - If you've made changes to the localization or other configs that have a JSON file, you can run the
Generate JSON filesconfiguration to create those files with the correct default values.
- Select the Release solution configuration
- Build the solution (will output to
build-public) - Run the
Generate JSON filesconfiguration (will output toFivePD.Gamemode.Statics/*) - Run
npm run buildin FivePD.Nui (will output toVITE_OUTDIR). - In the
fxmanifest.luachange theui_pagevalue toLibraries/FivePD.Nui/index.html - Obfuscate and do your magic, Daniel