Uniqers Scripts Docs
  • Docs
  • uniqers-marriage
  • uniqers-spawn
  • uniqers-multicharacter
  • uniqers-investments
  • uniqers-announces
  • Store
Powered by GitBook
On this page
  • How to install
  • Support & Updates & Questions

uniqers-announces

How to install and all exports infos.

Previousuniqers-investments

Last updated 2 days ago

How to install

First Please import uniqers-investments-database.sql your database. after open your server server.cfg or what u use cfg. add this code

ensure uniqers-announces or start uniqers-announces

save and close.

and select your framework qb or esx or old qb or old esx or standalone then save

if u use command send announce for admin and console or txtadmin console you can set up this and use. open your permission.cfg

add_ace group.admin uniqers allow # allow all commands for uniqers Script admins
add_ace group.moderator uniqers allow # allow all commands for uniqers Script moderators
add_ace group.moderator uniqers.cmds deny # disallow uniqers Script Perms for moderators
add_principal identifier.steam:HEX-ID-HERE group.admin

after this you can send announce big or small or save via txtadmin console or server console with rcon.

/addannrcon AUTHOR HEADER MESSAGE IMAGEURL ICONRUL DIPLAYTIMESECOND TYPEANNOUNCE SAVE /addannrcon lspd discount COMETOHQ www.lpsd.com/logo.png www.lpsd.com/logo.png 5 small yes

or if u have other any script like txtadmin. you can trigger for announce this events.

small announce not saved

TriggerServerEvent("small:announce:server", author, header, message, image, icon, displaytime)

big announce not saved

TriggerServerEvent("big:announce:server", author, header, message, image, icon, displaytime)

saved events

TriggerServerEvent("uniqers-announce:save:ann", dates, author, header, message, image, icon)

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.

done anjoy!

Support & Updates & Questions

https://discord.gg/MyrGhbf9tM