RegisterCommand('envkontrol', function(source)
local owner = ESX.GetPlayerFromId(source)
MySQL.Async.fetchAll('DELETE FROM disc_inventory WHERE data = @data AND owner = @owner', { ['@data'] = "null", ['@owner'] = owner.identifier }) -- "Null" Fix
TriggerClientEvent('mythic_notify:client:SendAlert', owner.source, { type = 'inform', text = "Envanteriniz yenilendi." })
ensureInventories(source)
end)
function ensureInventories(source)
local player = ESX.GetPlayerFromId(source)
ensurePlayerInventory(player)
TriggerClientEvent('disc-inventoryhud:refreshInventory', source)
end