boba-callbacks
Introduction
Usage Examples
Client
CreateThread(function()
local result = exports["boba-callbacks"]:ExecuteServerCallback("ResourceName:EventName", "Example value sent to the server event")
print(result)
end)Server
AddEventHandler("ResourceName:EventName", function(cb, src, arg)
print(("Event triggered on the server. Value received: %s"):format(arg))
cb("This value is sent to the client")
end)Last updated