Forum adresimize hoş geldin FiveMTürk olarak amacımız siz değerli kullanıcılarımıza en aktif fikir ve paylaşım platformu sunmak bir yana en güvenilir şekilde alışveriş yapabileceğiniz bir platform sunmaktır.
Çok eski bir web tarayıcısı kullanıyorsunuz. Bu veya diğer siteleri görüntülemekte sorunlar yaşayabilirsiniz.. Tarayıcınızı güncellemeli veya alternatif bir tarayıcı kullanmalısınız.
bu telefonda gelen uyarıları felan nasıl mythic notify e ayarlıyacam bendeki kod şu:
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
function hasPhone (cb)
if (ESX == nil) then return cb(0) end
ESX.TriggerServerCallback('gcphone:getItemAmount', function(qtty)
cb(qtty > 0)
end, 'phone')
end
function ShowNoPhoneWarning ()
if (ESX == nil) then return end
ESX.ShowNotification("Bir ~r~Telefona~s~ Sahip Değilsin")
end
function hasPhone (cb)
cb(true)
end
function ShowNoPhoneWarning ()
end
--[[
Ouverture du téphone lié a un item
Un solution ESC basé sur la solution donnée par HalCroves
--]]
ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
end)
function hasPhone (cb)
if (ESX == nil) then return cb(0) end
ESX.TriggerServerCallback('gcphone:getItemAmount', function(qtty)
cb(qtty > 0)
end, 'phone')
end
function ShowNoPhoneWarning ()
if (ESX == nil) then return end
TriggerClientEvent('mythic_notify:client:SendAlert', source, { type = 'error', text = 'Telefona sahip değilsin!'})
end