bruh aight thanks lmao
how tf do i do that
Did you read the original post, at all? It gives you all the calls you need to show an alert.
It’s released as a dev-resource for a reason
ye but i dont get it, im new to deving
Hello everyone, I’m using mythic_notify with the x-Hotwire script ([Release][ESX][Disc] X-Hotwire, hotwire script with keys and NPC interactions) and have the latest version of both, so I have a similar problem to @Jayrrant I get the same message, after my hotwiring finished and when the engine should start. So I saw that in the latest update of mythic Notify all the DOHudText functions were removed but on top of that I also get the same error message for SendAlert even if this function still should be implemented… so I’m trying to figure this out but can’t get it to run properly and since I get no notification from mythic at all, maybe it is a problem with mythic itself? Can anyone help here?
Tell the authors to update their scripts
Yeah i posted it already a few days ago in his comments, hope he’s gonna react to it…
Could i have some help changing the notifications to mythic one, tried to do it like this:
TriggerClientEvent(‘mythic_notify:client:SendAlert’, xPlayer.source, { type = ‘success’, text = ‘You put your driving suit on’ })
TriggerClientEvent(‘mythic_notify:client:SendAlert’, xPlayer.source, { type = ‘inform’, text = ‘Your oxygen tank is full at 100%’ })
Citizen.Wait(50000)
TriggerClientEvent(‘mythic_notify:client:SendAlert’, xPlayer.source, { type = ‘inform’, text = ‘Your oxygen tank is at 50%’ })
Citizen.Wait(25000)
TriggerClientEvent(‘mythic_notify:client:SendAlert’, xPlayer.source, { type = ‘inform’, text = ‘Your oxygen tank is at 25%’ })
Citizen.Wait(25000)
TriggerClientEvent(‘mythic_notify:client:SendAlert’, xPlayer.source, { type = ‘inform’, text = ‘Your oxygen tank is empty’ })
But doesn’t seems to work
Original:
ESX.ShowNotification(_U('dive_suit_on') .. '%.')
Citizen.Wait(50000)
ESX.ShowNotification(_U('oxygen_notify', '~y~', '50') .. '%.')
Citizen.Wait(25000)
ESX.ShowNotification(_U('oxygen_notify', '~o~', '25') .. '%.')
Citizen.Wait(25000)
ESX.ShowNotification(_U('oxygen_notify', '~r~', '0') .. '%.')
TriggerEvent('mythic_notify:client:SendAlert', { type = 'inform', text = 'You put your driving suit on' })
try like this.
can i know how to move the notification position? I am not able to move up and down. Here is my code
.notif-container {
width: 20%;
position: absolute;
right: 80%;
display: absolute;
flex-flow: row;
flex-wrap: wrap;
}
THanks a lot
how do i change the color of the notifications?
Depends, if you’re using client sided you’d change the value of
['background-color'] = '#ffffff', ['color'] = '#000000'
in the following example, I have changed them values to get the black text and green background colour.
exports['mythic_notify']:SendAlert('inform', 'Hype! Custom Styling!', 2500, { ['background-color'] = '#00e31e', ['color'] = '#000000' })
If you’re using server sided then you’d change the value of
['background-color'] = '#ffffff', ['color'] = '#000000'
in the following example, I have changed them values to get the black text and red background colour
TriggerClientEvent(‘mythic_notify:client:SendAlert’, source, { type = ‘inform’, text = ‘Hype! Custom Styling!’, length = 2500, style = { [‘background-color’] = ‘#e30000’, [‘color’] = ‘#000000’ } })
Simple.
very simple lmao
It is, it’s just copy and pasting stuff and changing it.
TriggerClientEvent('esx:showAdvancedNotification', xPlayer.source, _U('bank'), _U('received_paycheck'), _U('received_help', salary), 'CHAR_BANK_MAZE', 9)
How would I get this to work with mythic notify?
Hello everyone, I made a short tutorial how to setup mythic_notify if you are having issues watch this video!!! If you have any further questions feel free to message me and I will help out as much I can!
ESX.StartPayCheck = function()
function payCheck()
local xPlayers = ESX.GetPlayers()
for i=1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
local job = xPlayer.job.grade_name
local salary = xPlayer.job.grade_salary
if salary > 0 then
if job == 'unemployed' then -- unemployed
xPlayer.addAccountMoney('bank', salary)
TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = _U('received_salary', salary)})
elseif Config.EnableSocietyPayouts then -- possibly a society
TriggerEvent('esx_society:getSociety', xPlayer.job.name, function (society)
if society ~= nil then -- verified society
TriggerEvent('esx_addonaccount:getSharedAccount', society.account, function (account)
if account.money >= salary then -- does the society money to pay its employees?
xPlayer.addAccountMoney('bank', salary)
account.removeMoney(salary)
TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = _U('received_salary', salary)})
else
TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = _U('received_salary', salary)})
end
end)
else -- not a society
xPlayer.addAccountMoney('bank', salary)
TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = _U('received_salary', salary)})
end
end)
else -- generic job
xPlayer.addAccountMoney('bank', salary)
TriggerClientEvent('mythic_notify:client:SendAlert', xPlayer.source, { type = 'inform', text = _U('received_salary', salary)})
end
end
end
SetTimeout(Config.PaycheckInterval, payCheck)
end
SetTimeout(Config.PaycheckInterval, payCheck)
end
Does anyone know how to resolve notifications appearing twice?
Can you share a screenshot?