Files
GTA4RP/scripts/native/gtac/client.js
2021-03-16 00:34:45 -05:00

29 lines
1.0 KiB
JavaScript

// ===========================================================================
// Asshat-Gaming Roleplay
// https://github.com/VortrexFTW/gtac_asshat_rp
// Copyright (c) 2021 Asshat-Gaming (https://asshatgaming.com)
// ===========================================================================
// FILE: client.js
// DESC: Provides wrapped client natives for GTAC
// TYPE: Natives (JavaScript)
// ===========================================================================
// ===========================================================================
function getClientGame() {
return gta.game;
}
// ===========================================================================
function sendToServer(eventName, ...args) {
triggerNetworkEvent.call(eventName, args);
}
// ===========================================================================
function receiveFromServer(eventName, handlerFunction) {
addNetworkHandler(eventName, handlerFunction);
}
// ===========================================================================