Add net event native utils

This commit is contained in:
Vortrex
2021-03-04 04:43:20 -06:00
parent 6d3de94c3b
commit 51055e99f8

View File

@@ -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);
}
// ---------------------------------------------------------------------------