here’s the script, please have a look, got this error as well;
MAIN.LUA
RegisterNetEvent(‘mythic_notify:client:SendAlert’)
AddEventHandler(‘mythic_notify:client:SendAlert’, function(data)
DoCustomHudText(data.type, data.text, data.length, data.style)
end)
RegisterNetEvent(‘mythic_notify:client:PersistentHudText’)
AddEventHandler(‘mythic_notify:client:PersistentHudText’, function(data)
PersistentHudText(data.action, data.id, data.type, data.text, data.style)
end)
function DoShortHudText(type, text, style)
SendNUIMessage({
type = type,
text = text,
length = 1000,
style = style
})
end
function DoHudText(type, text, style)
SendNUIMessage({
type = type,
text = text,
length = 2500,
style = style
})
end
function DoLongHudText(type, text, style)
SendNUIMessage({
type = type,
text = text,
length = 5000,
style = style
})
end
function DoCustomHudText(type, text, length, style)
SendNUIMessage({
type = type,
text = text,
length = length,
style = style
})
end
function PersistentHudText(action, id, type, text, style)
if action:upper() == ‘START’ then
SendNUIMessage({
persist = action,
id = id,
type = type,
text = text,
style = style
})
elseif action:upper() == ‘END’ then
SendNUIMessage({
persist = action,
id = id
})
end
end
__RESOURCE.LUA
resource_manifest_version ‘44febabe-d386-4d18-afbe-5e627f4af937’
ui_page {
‘html/ui.html’,
}
files {
‘html/ui.html’,
‘html/js/app.js’,
‘html/css/style.css’,
}
client_scripts {
‘client/main.lua’
}
exports {
‘DoShortHudText’,
‘DoHudText’,
‘DoLongHudText’,
‘DoCustomHudText’,
‘PersistentHudText’,
}