Callbacks
Server Callback Functions
Killstore Core makes it easy to handle server callbacks across various frameworks by providing unified functions. These are implemented in the Ks_Core/custom/*.lua
directory, allowing flexibility and compatibility with ESX, QB-Core, and standalone setups.
Obtaining Server Callbacks
Server-Side (custom/server.lua):
The Ks_ServerCallback
function is used to register server callbacks for your scripts. Depending on the framework defined in Server.Framework
, it selects the appropriate method automatically:
Client-Side (custom/client.lua
):
The Ks_TriggerCallback
function allows client-side scripts to trigger server callbacks in a framework-agnostic way. It also adapts based on the framework specified:
Last updated