Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ps = {}
Config.Inventory = "auto" -- auto, ox_inventory, qb-inventory, ps-inventory, lj-inventory, tgiann-inventory, jpr-inventory
Config.Target = "auto" -- auto, ox_target, qb-target, interact
Config.EmoteMenu = "rpemotes" -- rpemotes, dpemotes, scully, anything else for custom
Config.Notify = "ox" -- qb, ox, ps, esx, mad_thoughts, okok, lation
Config.Notify = "ox" -- qb, ox, ps, esx, mad_thoughts, okok, lation, v42
Config.Menus = "ox" -- qb, ox, ps, lation
Config.DrawText = "ox" -- qb, ox, ps, lation, okok
Config.Banking = "qb" -- qb, okok, Renewed, none
Expand Down
13 changes: 13 additions & 0 deletions bridge/notify/client/v42.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ps.success('Notification Module Loaded: V42 Notify')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably only be output if the V42 notify is present?

function ps.notify(text, type, time)
if not text then return end
if not type then type = 'info' end
if not time then time = 5000 end
exports['v42-notify']:notify(text, type, time)
end

RegisterNetEvent('ps_lib:notify:v42', function(data)
ps.notify(data.message, data.type, data.duration)
end)

exports('notify', ps.notify)
2 changes: 1 addition & 1 deletion bridge/notify/server/lation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function ps.notify(source, text, type, time)
if not type then type = 'info' end
if not time then time = 5000 end
TriggerClientEvent('ps_lib:notify:lation', source, {
description = text,
message = text,
type = type,
duration = time,
})
Expand Down
14 changes: 14 additions & 0 deletions bridge/notify/server/v42.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
function ps.notify(source, text, type, time)
if not source then return end
if not text then return end
if not type then type = 'info' end
if not time then time = 5000 end
TriggerClientEvent('ps_lib:notify:v42', source, {
message = text,
type = type,
duration = time,
})
end

exports('notify', ps.notify)
ps.success('Notification Module Loaded: V42 Notify')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be output in both client and server?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is just ensuring that it actually loads :)