Yemek İçin
ESX.RegisterUsableItem('**yemekismi**', function(source) local xPlayer = ESX.GetPlayerFromId(source) xPlayer.removeInventoryItem('**yemekismi**', 1) TriggerClientEvent('esx_status:add', source, 'hunger', 2000) TriggerClientEvent('esx_basicneeds
nEat', source, 'prop_cs_burger_01') TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = '**Yemek İsmi **yiyorsun.'}) end)
İçicek İçin
ESX.RegisterUsableItem('içecekismi', function(source) local xPlayer = ESX.GetPlayerFromId(source) xPlayer.removeInventoryItem('**içecekismi**', 1) TriggerClientEvent('esx_status:add', source, 'thirst', 2000) TriggerClientEvent('esx_basicneeds
nDrink', source, 'prop_ld_flow_bottle') TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = '**İçecek İsmi **içiyorsun.'}) end)