MTDOJRP / docs

KCDOJRP Official Documentation | https://docs.kcdojrp.com
https://docs.KCDOJRP.com
2 stars 9 forks source link

[BUG] False Flag KCAC `/postal` #106

Open BurnhamR opened 2 months ago

BurnhamR commented 2 months ago

In-Game Bug Report

Description

MindVoid ran /postal and had somehow triggered the KCAC for updating blip. He had CAD open then opened the chat and ran the command.

Steps to Reproduce

Unk

Expected Behavior

This should not ever flag the AC

Screenshots

image

Additional Context

I was unable to replicate, Mindvoid is the user who ran this.

Your Environment

Paneedah commented 2 months ago

Unable to replicate. MindVoid states that he never even managed to enter the command (only started typing it). I've got no idea what could be causing this. Reference code for blip check:

setTick(() => {
    if (!IsWaypointActive()) {
        lastWaypoint = null;
        return;
    }
    const waypointBlip = ClientUtils.getCurrentWaypointCoords();
    if (waypointBlip === null) {
        lastWaypoint = null;
        return;
    }
    const [x, y, z] = waypointBlip;
    const [lastX, lastY, lastZ] = lastWaypoint || [0.0, 0.0, 0.0];
    if (lastWaypoint && x === lastX && y === lastY && z === lastZ) return;
    if (!IsPauseMenuActive()) {
        const playerPedId = PlayerPedId();
        const vehicle = GetVehiclePedIsIn(playerPedId, false);
        let hasPassenger = false;
        if (vehicle !== 0) {
            for (let i = -1; i < GetVehicleMaxNumberOfPassengers(vehicle); i++) {
                const ped = GetPedInVehicleSeat(vehicle, i);
                if (ped !== 0 && ped !== playerPedId && IsPedAPlayer(ped)) { hasPassenger = true; break; }
            }
            if (!hasPassenger) ClientUtils.flagPlayer('waypoint', 'CT16', { new_coords: `${x}, ${y}, ${z}` });
        }
    }
    lastWaypoint = waypointBlip;

If you've got any ideas, let me know.

Paneedah commented 2 months ago

Still unable to replicate - mindvoid has given no useful additional information.