π οΈINSTALLATION
CREATE TABLE IF NOT EXISTS notify_settings (
id INT AUTO_INCREMENT PRIMARY KEY,
identifier VARCHAR(50) NOT NULL UNIQUE,
position TEXT NOT NULL
);π Override QBCore Notifications
function QBCore.Functions.Notify(text, texttype, length)
exports['janiel-notify']:Notify(text, texttype, length)
end
--function QBCore.Functions.Notify(text, texttype, length)
-- if type(text) == "table" then
-- local ttext = text.text or 'Placeholder'
-- local caption = text.caption or 'Placeholder'
-- texttype = texttype or 'primary'
-- length = length or 5000
-- SendNUIMessage({
-- action = 'notify',
-- type = texttype,
-- length = length,
-- text = ttext,
-- caption = caption
-- })
-- else
-- texttype = texttype or 'primary'
-- length = length or 5000
-- SendNUIMessage({
-- action = 'notify',
-- type = texttype,
-- length = length,
-- text = text
-- })
-- end
--endπ Usage Examples
π ESX Integration
π Override ESX Notifications
π Usage Examples
Last updated