From 75698216e0736065c791d1b68554599ac006cd23 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sun, 11 Dec 2022 13:39:45 +1100 Subject: [PATCH] maybe less confusing callback info --- docs/ox_lib/Callback/Client.md | 6 ++++-- docs/ox_lib/Callback/Server.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/ox_lib/Callback/Client.md b/docs/ox_lib/Callback/Client.md index a6f5c96d..694990e5 100644 --- a/docs/ox_lib/Callback/Client.md +++ b/docs/ox_lib/Callback/Client.md @@ -1,4 +1,4 @@ -## Client -> Server callback +## Trigger Server Callback ### lib.callback @@ -36,10 +36,12 @@ local count = lib.callback.await('ox_inventory:getItemCount', false, 'water', {t print(count) ``` -## Server -> Client callback +## Register Client Callback ### lib.callback.register +Register an event handler for responding to server requests. + ```lua lib.callback.register(name, cb) ``` diff --git a/docs/ox_lib/Callback/Server.md b/docs/ox_lib/Callback/Server.md index c0140c14..4f8bf822 100644 --- a/docs/ox_lib/Callback/Server.md +++ b/docs/ox_lib/Callback/Server.md @@ -1,4 +1,4 @@ -## Server -> Client callback +## Trigger Client Callback ### lib.callback @@ -41,10 +41,12 @@ for i = 1, #vehicles do end ``` -## Client -> Server callback +## Register Server Callback ### lib.callback.register +Register an event handler for responding to client requests. + ```lua lib.callback.register(name, cb) ```