> For the complete documentation index, see [llms.txt](https://infiniti-scripts.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infiniti-scripts.gitbook.io/home/scripts/infin_multijob/customizable-client-code.md).

# Customizable Client code

```
local QBCore = exports[Config.Core]:GetCoreObject()

-- Notify
RegisterNetEvent("Infiniti_Multijob:notify", function(title, desc, notiftype)
    if Config.Notify == "ox" then
        lib.notify({
            title = title,
            description = desc,
            type = notiftype
        })
    elseif Config.Notify == "qb" then
        QBCore.Functions.Notify(title, notiftype, 5000)
    elseif Config.Notify == "okok" then
        exports['okokNotify']:Alert(title, desc, 5000, 'notiftype', true) -- can set true to false to stop playing notif sound
    elseif Config.Notify == "custom" then
        -- Add in Custom Notify here

        -- title = The title of the notification
        -- desc = The description of the notification
        -- notiftype = The type of the notification (success/error)

    end

end)

-- Keybind
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        if IsControlJustPressed(1, Config.OpenKey) then
            if Config.Debug then
                print("Triggered Open Menu")
            end
            TriggerEvent("Infiniti_Multijob:openhtmlmenu")
        end
    end
end)
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infiniti-scripts.gitbook.io/home/scripts/infin_multijob/customizable-client-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
