Skip to content

FiveLAPD/FivePD-2.0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPMDS' FivePD

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.

Prerequisites

  • Before making changes to FivePD.Nui, run npm install in the FivePD.Nui directory

  • Make sure you have created a .env.production file in FivePD.Nui and it contains the following value(s):

    VITE_OUTDIR=<your_path_to_the_fivem_server>\resources\fivepd\Libraries\FivePD.Nui

Running Migrations

  • Use the syntax dotnet ef migrations add <MigrationName> --project .\FivePD.Gamemode.Server\FivePD.Gamemode.Server.csproj --startup-project .\FivePD.StartupProject\FivePD.StartupProject.csproj from the root folder. Migrations require a startup project to run properly.

Developing

  1. Insert the latest recommended build of FXServer into the FXServer directory
  2. Select the Debug solution configuration
  3. Start the "Run FXServer" run configuration
  4. If you want to make changes to FivePD.Nui, change the ui_page value to http://localhost:3000 in your fxmanifest.lua. You might need to restart the resource sometimes, because the old UI and events could be cached.
  5. If you've made changes to the localization or other configs that have a JSON file, you can run the Generate JSON files configuration to create those files with the correct default values.

Building for Production

  1. Select the Release solution configuration
  2. Build the solution (will output to build-public)
  3. Run the Generate JSON files configuration (will output to FivePD.Gamemode.Statics/*)
  4. Run npm run build in FivePD.Nui (will output to VITE_OUTDIR).
  5. In the fxmanifest.lua change the ui_page value to Libraries/FivePD.Nui/index.html
  6. Obfuscate and do your magic, Daniel

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.0%
  • C# 5.9%
  • Lua 2.2%
  • Vue 0.8%
  • TypeScript 0.6%
  • HTML 0.4%
  • Other 0.1%