Adding pictures for missing stuff is easy
But how do you change the text for right click options to English?
Adding pictures for missing stuff is easy
But how do you change the text for right click options to English?
Located in HTML locales
There is a config file in the js folder. Where it says CS change it to EN
Anyone know why I have weed in my items png and have it the same as Database and it isn’t working?
Did you add the file location to your resource folder? Are all your other custom item images working for ya? @Presty1
Anyone know what i need to change to get black money?
if Config.IncludeCash then
if money > 0 then
local formattedMoney = ESX.Math.GroupDigits(money)
table.insert(items, {
label = "Money",
count = formattedMoney,
type = 'item_money',
name = 'cash',
usable = false,
rare = false,
limit = -1,
canRemove = true
})
end
end
Oh gotcha I am dumb I forgot a resource file even existed lol.
Just pushed pretty big update to Github. Check it out and let me know, if something does not work.
can you add this to the next update IsInputDisabled(0) so people on controller can use it with out popping up when pressing b or X
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, Config.OpenControl) and IsInputDisabled(0) then
loadPlayerInventory()
SendNUIMessage({
action = "display"
})
SetNuiFocus(true, true)
end
end
end)
Added, thanks!
is there a way to change the background i would assume its the ui.css but nothing happends when i change it?
es_extended
, then find and remove this code in client/main.lua
:-- Menu interactions
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if IsControlJustReleased(0, Keys['F2']) and IsInputDisabled(0) and not isDead and not ESX.UI.Menu.IsOpen('default', 'es_extended', 'inventory') then
ESX.ShowInventory()
end
end
end)
Because minimised version of it is used. So you have to edit ui.min.css file.
ah okay il just try and copy pasta the color code then and try
CSS styles are not loaded. If you uploaded new version, you have to restart your server.
If you want a french translation :
edit __resource.lua
'html/locales/fr.js', -- only server side
'locales/fr.lua', -- server side & client side
add locales\fr.lua
Locales['fr'] = {
['cash'] = 'Éspèces',
['player_nearby'] = 'Le joueur sélectionné n\'est plus près de vous.',
['players_nearby'] = 'Il n\'y a personne près de vous.'
}
add html\locale\fr.js
var locale = new Object();
locale.dropItem = "<span class=\"emoji\">🗑️</span> Jeter";
locale.useItem = "<span class=\"emoji\">🖐️</span> Utiliser";
locale.giveItem = "<span class=\"emoji\">🎁</span> Donner";
locale.getNumber = "Quantité";
locale.getPlayer = "Selectionner joueur";
locale.confirmNumber = "Envoyer";
locale.closeInventory = "Fermer";
locale.searchInventory = "Rechercher";
Why don’t you just make a PR for this?