Exports
Notification exports
Client side exports:
Notify
Types:
success
error
warning
announcement
server
notifyExample = {
type = "success",
message = '<div><span class="text-primary font-[700]">Welcome back</span> in the city!</div>',
duration = 3000,
}
exports['thescriptname']:SendNotify(notifyExample)
Show Task
local policeTasks = {
{
text = '<div><span class="text-primary font-[700]">Go</span> to the <span class="text-primary font-[700]">Police station!</span></div>',
completed = false,
},
{
text = '<div><span class="text-primary font-[700]">Collect</span> all paper!</div>',
completed = false,
},
{
text = '<div><span class="text-primary font-[700]">Go </span> back to <span class="text-primary font-[700]">Legion Square!</span></div>',
completed = false,
},
}
local taskExample = {
title = 'Police Evidance',
tasks = policeTasks,
active = true
}
exports['thescriptname']:ShowTask(taskExample)
Update Task
local policeTasks = {
{
text = '<div><span class="text-primary font-[700]">Go</span> to the <span class="text-primary font-[700]">Police station!</span></div>',
completed = true,
},
{
text = '<div><span class="text-primary font-[700]">Collect</span> all paper!</div>',
completed = true,
},
{
text = '<div><span class="text-primary font-[700]">Go </span> back to <span class="text-primary font-[700]">Legion Square!</span></div>',
completed = false,
},
}
exports['thescriptname']:UpdateTask(policeTasks)
Delete Task
exports['thescriptname']:DeleteTask()
TextUI
local textui3d = {
key = "E",
text = "Collect</span> the evidance!",
active = true,
}
local textui = {
key = "E",
text = "Collect the evidance!",
active = true
}
exports['thescriptname']:Show3DTextUI(vector3(447.2098, -974.4277, 30.5495), textui)
exports['thescriptname']:ShowTextUI(textui)
Progressbar
local progressAction = {
duration = 3000,
label = "Collecting evidance!",
useWhileDead = false,
canCancel = true,
controlDisables = {
disableMovement = false,
disableCarMovement = false,
disableMouse = false,
disableCombat = false,
},
animation = {
animdict = 'anim@gangops@facility@servers@bodysearch@',
anim = 'device_search'
},
}
exports['thescriptname']:CreateProgress(progressAction, function()
-- do something if progress finished
end)
Last updated
Was this helpful?