and this is for txtadmin this is just an example we dont support for this.
100 mean 10 seconds
For TXADMIN FUCTIONS SIMPLE
-- Data will be an object with a message attribute
RegisterSecureNuiCallback('sendAnnouncement', function(data, cb)
--TriggerServerEvent('txsv:req:sendAnnouncement', data.message)
TriggerServerEvent("big:announce:server", 'STAFFS', 'ANNOUNCE', data.message, 'https://media.rockstargames.com/rockstargames/img/global/news/upload/actual_1356731868.jpg', 'https://media.rockstargames.com/rockstargames/img/global/news/upload/actual_1356731868.jpg', 100)
cb({})
end)
RegisterNetEvent('txsv:req:sendAnnouncement', function(message)
local src = source
if type(message) ~= 'string' then
return
end
local allow = PlayerHasTxPermission(src, 'players.message')
TriggerEvent('txsv:logger:menuEvent', src, 'announcement', allow, message)
if allow then
PrintStructuredTrace(json.encode({
type = 'txAdminCommandBridge',
command = 'announcement',
author = TX_ADMINS[tostring(src)].username,
message = message,
}))
end
end)
and start your server and login your character then use open command for script.