function OpenMotelInventory() kısmını aşağıdaki ile değiştir
--client
function OpenMotelInventory()
ESX.TriggerServerCallback('m3:motel:server:getIdentifier', function(identifier, lastdigit)
TriggerServerEvent("inventory:server:OpenInventory", "stash", "Motel_" .. identifier, {slots = 50,maxweight = 2500})
TriggerEvent("inventory:client:SetCurrentStash", "Motel_" .. identifier)
end)
end
--Server
ESX.RegisterServerCallback('m3:motel:server:getIdentifier', function(source, cb, num)
cb(GetPlayerIdentifiers(source)[1])
end)