thank you i have one more question for you. How can i change these with your lovely notifications.
if(xPlayer.getMoney() >= 2000) then
xPlayer.removeMoney(2000)
xPlayer.addInventoryItem('fixkit', 1)
notification("Du köpte en ~g~Reparationslåda")
else
notification("Du har inte tillräckligt med ~r~pengar")
end
end)
if(xPlayer.getMoney() >= 2000) then
xPlayer.removeMoney(2000)
xPlayer.addInventoryItem('fixkit', 1)
exports['mythic_notify']:DoHudText('success', 'Du köpte en Reparationslåda')
else
exports['mythic_notify']:DoHudText('error', 'Du har inte tillräckligt med pengar')
end
end)
No? Chances are it’s either implementation that’s not correct, or an error elsewhere in your code. When I said this was a stupidly basic resource I wasn’t joking. It’s like 20 lines all together lol
Nope, not by default. I have no reason for it. Folks are more than welcome to make contributions to it and make PR’s though.
Just a way I have setup so I can send alerts from server-side. Using this when dealing with using items etc
TriggerClientEvent('mythic_notify:client:SendAlert', self.source, { type = 'success', text = data.item.label .. ' x' .. data.item.qty .. ' Added'})
Honestly not sure, not used ESX. But if it’s a client script should work as long as that code is being executed.
CSS, change the positional stuff for notif-container class.
Same thing, in the CSS. If you’re wanting to change opacity for all, can change notification class and add it. Or for each types you can add it onto their respective css classes.
Hi again, i wanna know how do you use the DoCustomHudText - Displays For Set Time (In Milliseconds)
where you set the milliseconds at ? Any example would really appreciated.