Add script init functions
This commit is contained in:
@@ -8,6 +8,13 @@
|
|||||||
// TYPE: Client (JavaScript)
|
// TYPE: Client (JavaScript)
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function initAnimationScript() {
|
||||||
|
logToConsole(LOG_DEBUG, "[AGRP.Animation]: Initializing animation script ...");
|
||||||
|
logToConsole(LOG_DEBUG, "[AGRP.Animation]: Animation script initialized!");
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function makePedPlayAnimation(pedId, animationSlot, positionOffset) {
|
function makePedPlayAnimation(pedId, animationSlot, positionOffset) {
|
||||||
let ped = getElementFromId(pedId);
|
let ped = getElementFromId(pedId);
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,13 @@ class BusinessData {
|
|||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function initBusinessScript() {
|
||||||
|
logToConsole(LOG_DEBUG, "[AGRP.Business]: Initializing business script ...");
|
||||||
|
logToConsole(LOG_INFO, "[AGRP.Business]: Business script initialized!");
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
function receiveBusinessFromServer(businessId, name, entrancePosition, blipModel, pickupModel, buyPrice, rentPrice, hasInterior, hasItems) {
|
function receiveBusinessFromServer(businessId, name, entrancePosition, blipModel, pickupModel, buyPrice, rentPrice, hasInterior, hasItems) {
|
||||||
logToConsole(LOG_DEBUG, `[AGRP.Business] Received business ${businessId} (${name}) from server`);
|
logToConsole(LOG_DEBUG, `[AGRP.Business] Received business ${businessId} (${name}) from server`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user