Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage authored Oct 17, 2024
2 parents 1e7fbdc + 19197a2 commit a747985
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 3 deletions.
56 changes: 56 additions & 0 deletions locales/nl.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
local Translations = {
progress = {
['snowballs'] = 'Sneeuwballen verzamelen..',
},
notify = {
['failed'] = 'Mislukt',
['canceled'] = 'Geannuleerd',
['vlocked'] = 'Voertuig Vergrendeld',
['notowned'] = 'Dit item is niet van jou!',
['missitem'] = 'Je hebt dit item niet!',
['nonb'] = 'Niemand in de buurt!',
['noaccess'] = 'Geen toegang',
['nosell'] = 'Je kunt dit item niet verkopen..',
['itemexist'] = 'Item bestaat niet',
['notencash'] = 'Je hebt niet genoeg geld..',
['noitem'] = 'Je hebt niet de juiste items..',
['gsitem'] = 'Je kunt jezelf geen item geven?',
['tftgitem'] = 'Je bent te ver weg om items te geven!',
['infound'] = 'Het item dat je probeerde te geven is niet gevonden!',
['iifound'] = 'Onjuist item gevonden, probeer opnieuw!',
['gitemrec'] = 'Je hebt ontvangen ',
['gitemfrom'] = ' Van ',
['gitemyg'] = 'Je hebt gegeven ',
['gitinvfull'] = 'De inventaris van de andere speler is vol!',
['giymif'] = 'Jouw inventaris is vol!',
['gitydhei'] = 'Je hebt niet genoeg van het item',
['gitydhitt'] = 'Je hebt niet genoeg items om over te dragen',
['navt'] = 'Geen geldig type..',
['anfoc'] = 'Argumenten niet correct ingevuld..',
['yhg'] = 'Je hebt gegeven ',
['cgitem'] = 'Kan item niet geven!',
['idne'] = 'Item bestaat niet',
['pdne'] = 'Speler is niet online',
},
inf_mapping = {
['opn_inv'] = 'Open Inventaris',
['tog_slots'] = 'Schakelt sleutelbind-slots om',
['use_item'] = 'Gebruikt het item in slot ',
},
menu = {
['vending'] = 'Verkoopautomaat',
['bin'] = 'Open Prullenbak',
['craft'] = 'Maak',
['o_bag'] = 'Open Tas',
},
interaction = {
['craft'] = '~g~E~w~ - Maken',
},
}

if GetConvar('qb_locale', 'en') == 'nl' then
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true,
})
end
12 changes: 9 additions & 3 deletions server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -604,9 +604,9 @@ function OpenInventory(source, identifier, data)
end

if not inventory then inventory = InitializeInventory(identifier, data) end
inventory.maxweight = (inventory and inventory.maxweight) or (data and data.maxweight) or Config.StashSize.maxweight
inventory.slots = (inventory and inventory.slots) or (data and data.slots) or Config.StashSize.slots
inventory.label = (inventory and inventory.label) or (data and data.label) or identifier
inventory.maxweight = (data and data.maxweight) or (inventory and inventory.maxweight) or Config.StashSize.maxweight
inventory.slots = (data and data.slots) or (inventory and inventory.slots) or Config.StashSize.slots
inventory.label = (data and data.label) or (inventory and inventory.label) or identifier
inventory.isOpen = source

local formattedInventory = {
Expand Down Expand Up @@ -833,3 +833,9 @@ function RemoveItem(identifier, item, amount, slot, reason)
end

exports('RemoveItem', RemoveItem)

function GetInventory(identifier)
return Inventories[identifier]
end

exports('GetInventory', GetInventory)

0 comments on commit a747985

Please sign in to comment.