Callbacks
callback.lua
These functions wrap the native callback handling of the selected framework (e.g., OX, QBCore, ESX) instead of implementing a standalone callback system, ensuring full compatibility.
createCallback(callbackName, funct)
Registers a callback function with the appropriate framework.
It adapts the callback function to match the expected signature for the framework.
Example:
triggerCallback(callbackName, ...)
Triggers a server callback and returns the result.
Example:
Last updated