Qbcore ps-inventory how to edit translate it!

Hello! guys , i install ps-inventory at qbcore and removed qb-inventory, so i wanna to edit translate for ps-inventory, but i don’t know where is translate file .

To change the language of the “Use” and “Give” buttons in the ps-inventory script on your FiveM server, you will need to update the localization files or the relevant part of the code. Here’s how you can do it:

  1. Locate the Language File:

    • Navigate to the ps-inventory resource folder in your server files.
    • Check for a folder or file named something like locales, translations, or config.lua.
  2. Edit the Translation File:

    • If there is a dedicated language file, open it and look for keys like "use" and "give".
    • Modify their values to the language you want. For example:
      ["use"] = "Usar",
      ["give"] = "Dar",
      
      Save the file after editing.
  3. Edit the UI Code (If No Translation File Exists):

    • Open the HTML/JS files for the inventory UI. These are usually located in the html folder within the ps-inventory resource.
    • Look for the text “Use” and “Give” in the HTML code and replace it with your desired translation.
  4. Restart the Resource:

    • Restart the ps-inventory resource or the entire server for the changes to take effect.
    • Use the command: /restart ps-inventory in your server console or in-game (if you have permissions).
  5. Test the Changes:

    • Open the inventory in-game and verify that the buttons display the translated text.

Let me know if this helps

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.