-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclient.lua
More file actions
29 lines (27 loc) · 741 Bytes
/
client.lua
File metadata and controls
29 lines (27 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
RegisterNetEvent("taskUI:hideTaskUI")
AddEventHandler("taskUI:hideTaskUI", function()
SendNUIMessage({
key = "closeUI"
})
SetNuiFocus(false, false)
end)
RegisterNetEvent("taskUI:newMessage")
AddEventHandler("taskUI:newMessage", function(title, message)
SendNUIMessage({
key = "newMessage",
title = title,
text = message
})
SetNuiFocus(false, false)
end)
RegisterNetEvent("taskUI:newTimedMessage")
AddEventHandler("taskUI:newTimedMessage", function(title, message, time)
time = time * 1000
SendNUIMessage({
key = "newTimedMessage",
title = title,
text = message,
time = time
})
SetNuiFocus(false, false)
end)