JG Scripts Docs
DiscordSupportStore
  • Welcome!
  • Claim Purchase
  • FiveM Escrow Errors
  • Permissions Troubleshooting
  • Translations
  • 🛠️Mechanic
    • Introduction
    • Installation & Configuration
      • ox_inventory
      • qb-inventory
      • esx_inventory
      • Setup New Mechanic Location
    • Job Setup
      • ESX Framework Jobs
    • Inventory Items
    • Props
    • Tuning
    • Manual Transmissions & Smooth First Gear
    • Integrations
    • Commands, Events & Exports
      • Commands
      • Events
      • Exports
    • Changelog
      • v1.3.0
      • v1.2.0
      • v1.1.3
      • v1.1.2
      • v1.1.1
      • v1.1
      • v1.0.12
      • v1.0.11
      • v1.0.10
      • v1.0.9
      • v1.0.8
      • v1.0.7
      • v1.0.6
      • v1.0.5 - hotfix
      • v1.0.5
      • v1.0.4
      • v1.0.3
      • v1.0.2
      • v1.0.1
  • 🚘Dealerships
    • Introduction
    • Installation & Configuration
    • Advanced Configuration
    • Job Dealership Setup
    • License Check
    • Importing Vehicles
    • Dealership Locations
    • Employees
    • Custom Payment Options
    • Plate Format
    • Vehicle Images
    • Languages
    • Commands, Events & Exports
      • Commands
      • Events
    • Integrations
      • Quasar Garages
      • Pickle Mods Documents
      • okokContract
      • qb-vehiclesales
    • Changelog
      • v1.4.0
      • v1.3.1
      • v1.3.0
      • v1.2.6
      • v1.2.5
      • v1.2.4
      • v1.2.3
      • v1.2.2
      • v1.2.1
      • v1.2
      • v1.1.9
      • v1.1.8
      • v1.1.7
      • v1.1.6
      • v1.1.5
      • v1.1.4
      • v1.1.3
      • v1.1.2
      • v1.1.1
      • v1.1
      • v1.0.3
      • v1.0.2
      • v1.0.1
  • 🚗Advanced Garages v3
    • Introduction
    • Installation & Configuration
    • Migration from v1
    • Public, Private & Impound Garages
    • Job & Gang Garages
    • Transferring Vehicles
    • Vehicle Duplication Prevention
    • Vehicle Images
    • Languages
    • Commands, Events & Exports
      • Commands
      • Events
      • Exports
    • Misc
      • Spawn Vehicles with ServerSetter
      • Why are you not using CreateVehicleServerSetter by default?
    • Troubleshooting
      • Execution of native... SetDriftTyresEnabled error
      • ucrtbase.dll!strcmp crash
      • SQL error: foreign key constraint fails
    • Integrations
      • qb-phone
      • npwd
      • RoadPhone
      • Quasar Smartphone
      • Quasar Housing
      • okokDeleteVehicles
      • ps-housing
      • nolag_properties
      • Brazzers-FakePlate
      • Custom Fuel System
      • Custom Key System
    • Guides
      • ESX Guides
        • Vehicle Labels
      • QBCore Guides
        • Why isn't /admincar working?!
        • Liveries not saving
    • Changelog
      • v3.2.1
      • v3.2.0
      • v3.1.6
      • v3.1.5
      • v3.1.4
      • v3.1.3
      • v3.1.2
      • v3.1.1
      • v3.1.0
      • v3.0.8
      • v3.0.7
      • v3.0.6
      • v3.0.5
      • v3.0.4
      • v3.0.3
      • v3.0.2
      • v3.0.1
      • v3
      • v2.2.9
      • v2.2.8
      • v2.2.7
      • v2.2.6
      • v2.2.5
      • v2.2.4
      • v2.2.3
      • v.2.2.2
      • v2.2.1
      • v2.2.0
      • v2.1.2
      • v2.1.1
      • v2.1
      • v2.0.7
      • v2.0.6
      • v2.0.5
      • v2.0.4
      • v2.0.3
      • v2.0.2
      • v2.0.1
  • ✨HUD
    • Introduction
    • Installation
    • Default Settings
  • 📊Handling
    • Introduction
    • Installation
    • Exports
  • 🎮Pro Scoreboard
    • Introduction
    • Installation
    • Config & Customisation
  • Advanced Garages v1
    • QB Installation & Config
    • ESX Installation & Config
Powered by GitBook
On this page
  • 1. Creating & exporting a default settings profile
  • 2. Making the settings profile your server default
  • 3. Important additional info and settings

Was this helpful?

Edit on GitHub
  1. HUD

Default Settings

Last updated 8 hours ago

Was this helpful?

It's best to do this before you launch JG HUD within your server; as if you have allowed users to edit their own settings in the past, this will take precedent over your new default settings profile.

JG HUD allows you to set default settings for all users. These default settings can include anything that users are able to adjust usually, including colours, visibility of components, size, position and more.

1. Creating & exporting a default settings profile

To create a default settings profile, simply go into /settings in game as you usually would to adjust your own HUD.

Once you're happy with the settings you've adjusted, you need to export them to JSON. You can do this by clicking the "Import & Export" tab on the left hand side.

Once in this tab, you need to click "Copy to Clipboard" to copy the configuration JSON to your clipboard.

2. Making the settings profile your server default

Now that you've got the JSON copied to your clipboard, we are going to need to add this to a file within the resource's code. We've created one by default for you, inside of the data folder, called default-settings.json (full path: jg-hud/data/default-settings.json).

You can also make your own file wherever you'd like (within the jg-hud resource folder), and point to it's location using the config option Config.DefaultSettingsData.

Once you've got the correct file, open it in a text editor and paste the JSON in your clipboard. Like this:

3. Important additional info and settings

This will now be the default profile for all new users of JG HUD in your server. For existing users, their current settings/layout will take precedence.

It's therefore best to set this up before players join your server and use JG HUD for the first time.

If you want players to always use the exact configuration you've made for them, simply set both the following config options to false, which will mean players will always see whatever is in the default settings JSON file. Please note that preventing users from changing their settings, especially the layout of the HUD, is not recommended. This is because some people are on a larger screen and may want to make certain components larger and easier to see.

Config.AllowPlayersToEditSettings = false
Config.AllowUsersToEditLayout = false

If you are allowing users to change their settings/layout, and they want to set their HUD to the new default settings you've created, they can go to the "Reset to Default" tab on the left of the settings panel, and reset their settings/layout to default. The defaults will come from the file you've set up.

You're good to go! Have fun configuring!

✨
🧡