Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.
Open
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
Empty file added .replxx_history
Empty file.
8 changes: 4 additions & 4 deletions resources/[mythic]/mythic-inventory/client/inventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ RegisterNUICallback("MoveSlot", function(data, cb)
data.model = SecondInventory.model
data.inventory = SecondInventory

Callbacks:ServerCallback("Inventory:MoveItem", data, function(success)
if success and success.success then
Callbacks:ServerCallback("Inventory:MoveItem", data, function(returnData)
if returnData and returnData.success then
if SecondInventory.netId then
local veh = NetToVeh(SecondInventory.netId)
if veh then
Expand All @@ -874,8 +874,8 @@ RegisterNUICallback("MoveSlot", function(data, cb)
dropAnim(data.invTypeTo == 10)
end
else
if success and success.reason then
Notification:Error(success.reason, 3600)
if returnData and returnData.reason then
Notification:Error(returnData.reason, 3600)
end
end
end)
Expand Down
Loading