πhow to install
How can i use the notify in my scripts?
TriggerClientEvent('mdev-notify:SendNotify', source, 'title', 'message', time, 'type')exports['mdev-notify']:SendNotify('title', 'message', time, 'type')How to make our notify your framework default?ESXfunction ESX.ShowNotification(message, type, length) exports['mdev-notify']:SendNotify('M Development', message, length, type) endQBCOREfunction QBCore.Functions.Notify(text, texttype, length) if type(text) == "table" then local mdev-text = text.text or 'Placeholder' local caption = text.caption or 'Placeholder' texttype = texttype or 'primary' length = length or 5000 exports['mdev-notify']:SendNotify(caption, mdev-text, length, texttype) else texttype = texttype or 'primary' length = length or 5000 exports['mdev-notify']:SendNotify('M Development', text, length, texttype) end end
Last updated