Dear Community,
I am working on modifying the scoreboard to disable it when inside a menu for example a mod menu.
I have this code on the server side (which i can call with out any issue):
RegisterServerEvent('lockScoreBoardS')
AddEventHandler('lockScoreBoardS', function()
print(source)
TriggerClientEvent("lockScoreBoardC")
print('just called lockScoreBoardC')
end)
and this code in the Scoreboard file:
RegisterNetEvent("lockScoreBoardC")
AddEventHandler("lockScoreBoardC", function()
print('client side of scoreboard')
if listDisable then
listDisable = false
drawNotification("Scoreboard Enabled")
elseif not listDisable then
listDisable = true
drawNotification("Scoreboard Disabled")
end
end)
The Server side code is inside a trainer folder and the scoreboard files are in the usual [system]/Scoreboard folder.
Any help gratefully appreciated