0.0.1
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
local moduleType = "notify" -- Module category
|
||||
local moduleName = "default" -- THIS module name
|
||||
|
||||
-- Don't touch, required to appear in in-game settings
|
||||
Integrations.modules = Integrations.modules or {}
|
||||
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
|
||||
Integrations[moduleType] = Integrations[moduleType] or {}
|
||||
Integrations[moduleType][moduleName] = {}
|
||||
table.insert(Integrations.modules[moduleType], moduleName)
|
||||
|
||||
--[[
|
||||
Nothing to edit, the code is internal
|
||||
]]
|
||||
@@ -0,0 +1,14 @@
|
||||
local moduleType = "notify" -- Module category
|
||||
local moduleName = "example" -- THIS module name
|
||||
|
||||
-- Don't touch, required to appear in in-game settings
|
||||
Integrations.modules = Integrations.modules or {}
|
||||
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
|
||||
Integrations[moduleType] = Integrations[moduleType] or {}
|
||||
Integrations[moduleType][moduleName] = {}
|
||||
table.insert(Integrations.modules[moduleType], moduleName)
|
||||
|
||||
Integrations[moduleType][moduleName].showNotification = function(message, coloredMessage)
|
||||
-- ADD YOUR EXPORT HERE, THIS IS JUST AN EXAMPLE
|
||||
exports["notification_script"]:notify(message)
|
||||
end
|
||||
@@ -0,0 +1,14 @@
|
||||
local moduleType = "notify" -- Module category
|
||||
local moduleName = "origen_notify" -- THIS module name
|
||||
|
||||
-- Don't touch, required to appear in in-game settings
|
||||
Integrations.modules = Integrations.modules or {}
|
||||
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
|
||||
Integrations[moduleType] = Integrations[moduleType] or {}
|
||||
Integrations[moduleType][moduleName] = {}
|
||||
table.insert(Integrations.modules[moduleType], moduleName)
|
||||
|
||||
Integrations[moduleType][moduleName].showNotification = function(message, coloredMessage)
|
||||
-- ADD YOUR EXPORT HERE, THIS IS JUST AN EXAMPLE
|
||||
exports["origen_notify"]:ShowNotification(message)
|
||||
end
|
||||
@@ -0,0 +1,18 @@
|
||||
local moduleType = "notify" -- Module category
|
||||
local moduleName = "ox_lib" -- THIS module name
|
||||
|
||||
-- Don't touch, required to appear in in-game settings
|
||||
Integrations.modules = Integrations.modules or {}
|
||||
Integrations.modules[moduleType] = Integrations.modules[moduleType] or {}
|
||||
Integrations[moduleType] = Integrations[moduleType] or {}
|
||||
Integrations[moduleType][moduleName] = {}
|
||||
table.insert(Integrations.modules[moduleType], moduleName)
|
||||
|
||||
--[[
|
||||
You can edit below here
|
||||
]]
|
||||
Integrations[moduleType][moduleName].showNotification = function(uncoloredMessage, message)
|
||||
lib.notify({
|
||||
title = uncoloredMessage,
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user