Reorganize some utils, change dividing lines

This commit is contained in:
Vortrex
2021-03-16 00:34:45 -05:00
parent dc145f92b9
commit deaf0b34a5
98 changed files with 1765 additions and 1849 deletions

View File

@@ -2,28 +2,28 @@
// 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 RAGEMP
// TYPE: Natives (JavaScript)
// ===========================================================================
// ---------------------------------------------------------------------------
// ===========================================================================
function getClientGame() {
return AG_GAME_GTA_V;
}
// ---------------------------------------------------------------------------
// ===========================================================================
function sendToServer(eventName, ...args) {
mp.events.call(eventName, args);
}
// ---------------------------------------------------------------------------
// ===========================================================================
function receiveFromServer(eventName, handlerFunction) {
mp.events.add(eventName, handlerFunction);
}
// ---------------------------------------------------------------------------
// ===========================================================================