diff --git a/scripts/native/gtac/server.js b/scripts/native/gtac/server.js index 22f78efd..99f0d4e0 100644 --- a/scripts/native/gtac/server.js +++ b/scripts/native/gtac/server.js @@ -261,4 +261,16 @@ function givePlayerArmour(client, amount) { } } +// --------------------------------------------------------------------------- + +function sendToClient(client, eventName, ...args) { + triggerNetworkEvent.call(client, eventName, args); +} + +// --------------------------------------------------------------------------- + +function receiveFromClient(eventName, handlerFunction) { + addNetworkHandler(eventName, handlerFunction); +} + // --------------------------------------------------------------------------- \ No newline at end of file