izzyshop
  • UIKIT
    • setup
    • config
    • Client
      • textui
      • Interaction
      • Context Menu
      • Notification
Powered by GitBook
On this page
  1. UIKIT

setup

  • Remove esx_notify resource.

  • Replace es_extended/client/functions.lua ESX.ShowNotification function with the code below;

function ESX.ShowNotification(message, notifyType, length, title)
	exports['izzy-uikit']:sendNotification(notifyType, title, message, length)
end
  • Remove qb-menu resource.

  • Remove progressbar resource

  • Replace qb-core/client/functions.lua QBCore.Functions.Progressbar function with the code below;

qb-core/client/functions.lua
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, animation, prop, propTwo, onFinish, onCancel)
	exports['izzy-uikit']:Progress({
		name = name:lower(),
		duration = duration,
		label = label,
		useWhileDead = useWhileDead,
		canCancel = canCancel,
		controlDisables = disableControls,
		animation = animation,
		prop = prop,
		propTwo = propTwo,
	}, function(cancelled)
		if not cancelled then
			if onFinish then
				onFinish()
			end
		else
			if onCancel then
				onCancel()
			end
		end
	end)
end
  • Replace qb-core/client/functions.lua QBCore.Functions.Notify function with the code below;

qb-core/client/functions.lua
function QBCore.Functions.Notify(text, texttype, length)
	texttype = texttype or 'inform' -- success / info / error
	length = length or 5000
	if type(text) == 'table' then
		local ttext = text.text or 'Placeholder'
		local caption = text.caption or 'Placeholder'
		exports['izzy-uikit']:sendNotification(type, title, description, duration)
	else
		exports['izzy-uikit']:sendNotification(type, title, description, duration)
	end
end
  • Move izzy-uikit folder to your resources folder.

  • Make sure you have started the resource in server.cfg.

PreviousUIKITNextconfig

Last updated 8 months ago