Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ RegisterCommand('closeinv', function()
closeInventory()
end, false)

RegisterNetEvent("qb-inventory:client:closeinv", function()
RegisterNetEvent("ps-inventory:client:closeinv", function()
closeInventory()
end)

Expand Down Expand Up @@ -839,7 +839,7 @@ for i = 1, 6 do
RegisterKeyMapping('slot' .. i, 'Uses the item in slot ' .. i, 'keyboard', i)
end

RegisterNetEvent('qb-inventory:client:giveAnim', function()
RegisterNetEvent('ps-inventory:client:giveAnim', function()
LoadAnimDict('mp_common')
TaskPlayAnim(PlayerPedId(), 'mp_common', 'givetake1_b', 8.0, 1.0, -1, 16, 0, 0, 0, 0)
end)
Expand Down Expand Up @@ -1104,4 +1104,4 @@ end)
},
},
distance = 1.0
})
})
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fx_version 'cerulean'
game 'gta5'

description 'ps-inventory'
version '1.0.1'
version '1.0.2'

shared_scripts {
'config.lua',
Expand Down
2 changes: 1 addition & 1 deletion html/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ function swap($fromSlot, $toSlot, $fromInv, $toInv, $toAmount) {
if (newData.info.quality !== fromData.info.quality ) {
InventoryError($fromInv, $fromSlot);
$.post(
"https://qb-inventory/Notify",
"https://ps-inventory/Notify",
JSON.stringify({
message: "You can not stack items which are not the same quality.",
type: "error",
Expand Down
8 changes: 4 additions & 4 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ RegisterNetEvent('inventory:server:SetInventoryData', function(fromInventory, to
end
end)

RegisterNetEvent('qb-inventory:server:SaveStashItems', function(stashId, items)
RegisterNetEvent('ps-inventory:server:SaveStashItems', function(stashId, items)
MySQL.Async.insert('INSERT INTO stashitems (stash, items) VALUES (:stash, :items) ON DUPLICATE KEY UPDATE items = :items', {
['stash'] = stashId,
['items'] = json.encode(items)
Expand Down Expand Up @@ -2278,8 +2278,8 @@ RegisterServerEvent("inventory:server:GiveItem", function(target, name, amount,
TriggerClientEvent('inventory:client:ItemBox',src, QBCore.Shared.Items[item.name], "remove")
QBCore.Functions.Notify(src, "You gave " .. OtherPlayer.PlayerData.charinfo.firstname.." "..OtherPlayer.PlayerData.charinfo.lastname.. " " .. amount .. " " .. item.label .."!")
TriggerClientEvent("inventory:client:UpdatePlayerInventory", src, true)
TriggerClientEvent('qb-inventory:client:giveAnim', src)
TriggerClientEvent('qb-inventory:client:giveAnim', target)
TriggerClientEvent('ps-inventory:client:giveAnim', src)
TriggerClientEvent('ps-inventory:client:giveAnim', target)
else
AddItem(src, item.name, amount, item.slot, item.info, item.created)
QBCore.Functions.Notify(src, "The other players inventory is full!", "error")
Expand All @@ -2305,7 +2305,7 @@ end)

-- callback

QBCore.Functions.CreateCallback('qb-inventory:server:GetStashItems', function(source, cb, stashId)
QBCore.Functions.CreateCallback('ps-inventory:server:GetStashItems', function(source, cb, stashId)
cb(GetStashItems(stashId))
end)

Expand Down