TxglsScripting
  • 🔊txgls-loadscreen
    • Index.html
  • 🍖txgls-butcherjob
    • config.lua
    • ox_inventory
    • qb-inventory
    • okokNotify
  • 🧑‍🌾txgls-farmingjob
    • config.lua
    • ox_inventory
    • qb-inventory
    • farming_data.sql
Powered by GitBook
On this page
  1. txgls-butcherjob

okokNotify

Previousqb-inventoryNexttxgls-farmingjob

Last updated 15 days ago

If you are using okokNotify, you can change the code from QBCore to have the notifications come through the okok script.

Page credit:

On qb-core/client/functions.lua replace the function QBCore.Functions.Notify with the following one:

function QBCore.Functions.Notify(text, textype, length)
    if textype == 'primary' then textype = 'info' end 
    local ttype = textype ~= nil and textype or "info"
    local length = length ~= nil and length or 5000
    exports['okokNotify']:Alert("", text, length, ttype)
end
🍖
https://docs.okokscripts.io/scripts/okoknotify/snippets