Add net event native utils
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user