RegisterNetEvent("v-mine:givestone")
AddEventHandler("v-mine:givestone", function(item, count)
local _source = source
local xPlayer = ESX.GetPlayerFromId(_source)
if xPlayer ~= nil then
if xPlayer.getInventoryItem('stones').count > 40 then ---BURAYA ENVANTERİN TASIMASINI İSTEDİĞİN RAKAMI YAZ
TriggerClientEvent('esx:showNotification', source, 'Üzerinde en fazla 40 adet taş taşıyabilirsin.')
else
xPlayer.addInventoryItem('stones', math.random(1,5))
end
end
end)