Kvetaq Posted February 22, 2023 Posted February 22, 2023 Dobrý den. Potřeboval bych pomoct se scriptem okokNotify v es_Extended. Zkoušel jsem to několikrát, ale marně. Děkuji za pomoc. Quote
0 Isigar Posted February 22, 2023 Posted February 22, 2023 A s čím přesně chceš pomoci? Prosím specifikuj svůj požadavek. Quote
0 Isigar Posted February 22, 2023 Posted February 22, 2023 Například uprava ESX.ShowNotification function ESX.ShowNotification(message, type, length) if Config.NativeNotify then BeginTextCommandThefeedPost('STRING') AddTextComponentSubstringPlayerName(message) EndTextCommandThefeedPostTicker(0, 1) else exports["esx_notify"]:Notify(type, length, message) end end S použitím okokNotify function ESX.ShowNotification(message, type, length) exports['okokNotify']:Alert('Upozornění', message, length or 3000, type or 'info') end Tady dokumentace okokNotify https://docs.okokscripts.io/scripts/okoknotify Quote
0 Kvetaq Posted February 22, 2023 Author Posted February 22, 2023 Děkuji. Potřeboval bych spíše poradit, jak to aplikuji do server.lua Quote
0 Isigar Posted February 23, 2023 Posted February 23, 2023 20 hours ago, Kvetaq said: Děkuji. Potřeboval bych spíše poradit, jak to aplikuji do server.lua Myslíš třeba pro výplaty? Můžeme tím pádem změnit ve stejném souboru ještě esx:showAdvancedNotification Před function ESX.ShowAdvancedNotification(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex) if saveToBrief == nil then saveToBrief = true end AddTextEntry('esxAdvancedNotification', msg) BeginTextCommandThefeedPost('esxAdvancedNotification') if hudColorIndex then ThefeedSetNextPostBackgroundColor(hudColorIndex) end EndTextCommandThefeedPostMessagetext(textureDict, textureDict, false, iconType, sender, subject) EndTextCommandThefeedPostTicker(flash or false, saveToBrief) end Na function ESX.ShowHelpNotification(msg, thisFrame, beep, duration) exports['okokNotify']:Alert('Upozornění', msg, duration or 3000, type or 'info') end Quote
Question
Kvetaq
Dobrý den. Potřeboval bych pomoct se scriptem okokNotify v es_Extended. Zkoušel jsem to několikrát, ale marně.
Děkuji za pomoc.
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.