How to use the alt.log function in alt

To help you get started, we’ve selected a few alt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github FabianTerhorst / coreclr-module / api / AltV.Net.NetworkingEntity / Client / client.js View on Github external
export function onRangeChange(callback) {
    if (networkingEntityClient == null) {
        log("call create(webview) first");
        return;
    }
    networkingEntityClient.onRangeChange = (entity, oldRange, newRange) => {
        callback(entity, oldRange, newRange);
    };
}
github Stuyk / altV-Open-Roleplay-altLife-Official / resources / orp / client / systems / combat.js View on Github external
function startInterval(key, value) {
    if (key !== 'pedflags') return;
    alt.off('meta:Changed', startInterval);

    const intervalID = alt.setInterval(disableCombat, 0);
    alt.log(`combat.js ${intervalID}`);
}
github Stuyk / altV-Open-Roleplay-altLife-Official / resources / orp / server / events / consoleCommand.js View on Github external
function kick(args) {
    const player = alt.Player.all.find(player => player.data.name.includes(args[0]));
    if (!player) {
        alt.log('Player was not found.');
        return;
    }
    player.kick();
}
github FabianTerhorst / coreclr-module / api / AltV.Net.NetworkingEntity / Client / client.js View on Github external
export function onPositionChange(callback) {
    if (networkingEntityClient == null) {
        log("call create(webview) first");
        return;
    }
    networkingEntityClient.onPositionChange = (entity, oldPosition, newPosition) => {
        callback(entity, oldPosition, newPosition);
    };
}
github FabianTerhorst / coreclr-module / api / AltV.Net.NetworkingEntity / Client / client.js View on Github external
export function onDataChange(callback) {
    if (networkingEntityClient == null) {
        log("call create(webview) first");
        return;
    }
    networkingEntityClient.onDataChange = (entity, newData) => {
        callback(entity, newData);
    };
}

alt

A flux implementation

MIT
Latest version published 8 years ago

Package Health Score

52 / 100
Full package analysis

Popular alt functions