Add net event native utils
This commit is contained in:
@@ -262,3 +262,15 @@ function givePlayerArmour(client, amount) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
function sendToClient(client, eventName, ...args) {
|
||||||
|
triggerNetworkEvent.call(client, eventName, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
function receiveFromClient(eventName, handlerFunction) {
|
||||||
|
addNetworkHandler(eventName, handlerFunction);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------
|
||||||
Reference in New Issue
Block a user