🏳️Installation
Here you will find out, how you can install the script!
Requierements: ESX V1/V1.2+, mysql-async & (esx_society)
Step 2: Drag the script in the [resources] folder.
Step 2: Drag the script in the [resources] folder.Step 3: Add "start ZZZ_HudV1" to your server.cfg.
Step 3: Add "start ZZZ_HudV1" to your server.cfg.Step 4: Restart the server.
Step 4: Restart the server.Here's how to replace the default Tx-Admin announcement with the one from our HUD.
Go to fx-server/alpine/opt/cfx-server/citizen/system_resources/monitor/resource and open the file sv_main.lua.
Replace the following functions in this file with this code:
TX_EVENT_HANDLERS.announcement = function(eventData)
TriggerClientEvent('ZZZ_HudV1:receiveAnnouncement', -1, eventData.message, 10*1000) -- The last value is the duration in millisecon
TriggerEvent('txsv:logger:addChatMessage', 'tx', '(Broadcast) '..eventData.author, eventData.message)
end
TX_EVENT_HANDLERS.scheduledRestart = function(eventData)
TriggerClientEvent('ZZZ_HudV1:receiveAnnouncement', -1, eventData.translatedMessage, 5*1000) -- The last value is the duration in millisecon
TriggerEvent('txsv:logger:addChatMessage', 'tx', '(Broadcast) txAdmin', eventData.translatedMessage)
endLast updated