General
Here you will find all the relevant information and tips you need to get everything running smoothly.
Notification
Client Events
How to trigger the Notification in any of your ressource.
TriggerEvent('hc_notify:notify', message, title, notifyType, time)
Client
TriggerEvent('hc_notify:notify', "You unlocked your car", "Car Systen", "success", 3000)
Server
TriggerClientEvent('hc_notify:notify', source, "You dont have enough permissions!", "Admin System", "error", 3000)
Exports
exports["hc_notify"]:notify(message, title, notifyType, time)
Help Notification
Client Events
How to trigger the Notification in any of your ressource.
TriggerEvent('hc_notify:helpNotify', message, key, time)
Examples
Here you can see, how your Events could look like.
Client
TriggerEvent('hc_notify:helpNotify', "Open Crafting Menu", "E", -1)
Server
TriggerClientEvent('hc_notify:helpNotify', source, "Start Farming", "E", -1)
Exports
exports["hc_notify"]:helpNotify(message, key, time)
Progressbar
Client Events
How to trigger the Progressbar in any of your ressource. The cb option (callback) is not required.
TriggerEvent("hc_notify:progressbar", text, time, cb)
Examples
Here you can see, how your Events could look like.
Client
TriggerEvent("hc_notify:progressbar", "Collecting Apples", 5000)
With Callback
TriggerEvent('hc_notify:progressbar', "Collecting Apples", 3000, function()
print("Progessbar finished")
end)
Server
TriggerClientEvent("hc_notify:progressbar", source, "Collecting Apples", 7000)
Exports
exports["hc_notify"]:drawBar(text, time, cb)
Announcement
Client Events
How to trigger a announcement in any of your ressource.
TriggerEvent("hc_notify:announce", message, title, time)
Examples
Here you can see, how your Events could look like.
Client
TriggerEvent("hc_notify:announce", "Server restarts in 10 minutes", "Server Restart", 5000)
With Callback
TriggerEvent('hc_notify:announce', "Server restarts in 10 minutes", "Server Restart", 3000)
Server
TriggerClientEvent("hc_notify:announce", source, "Server restarts in 10 minutes", "Server Restart", 3000)
Exports
exports["hc_notify"]:announce(text, title, time)
Last updated