⬇️Events
Notify Event
Usage
Client Trigger
TriggerEvent("gfx-notify:Notify", type, title, text, duration, icon)
Server Trigger
TriggerClientEvent("gfx-notify:Notify", source, type, title, text, duration, icon)
You don't need to write the duration and icon. It will get it from the notification type if you don't define them.
Question Export
Usage
Client Trigger
TriggerEvent("gfx-notify:Question", text, duration, success, fail)
Server Trigger
TriggerClientEvent("gfx-notify:Question", playerId, text, duration, success, fail)
The S -> C trigger may not be work as expected. Becuase the callback functions will be created on server which could not be run client natives.
Question Parameters
p1: question string
p2: duration
p3: function will be called when pressed yes
p4: function will be called when pressed no
Last updated