Jump to content
  • 0

okokNotify


Kvetaq

Question

4 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0
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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...