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:
-
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
, orconfig.lua
.
- Navigate to the
-
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:
Save the file after editing.["use"] = "Usar", ["give"] = "Dar",
- If there is a dedicated language file, open it and look for keys like
-
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 theps-inventory
resource. - Look for the text “Use” and “Give” in the HTML code and replace it with your desired translation.
- Open the HTML/JS files for the inventory UI. These are usually located in the
-
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).
- Restart the
-
Test the Changes:
- Open the inventory in-game and verify that the buttons display the translated text.
Let me know if this helps