Jump to content

Kopra

Members
  • Posts

    534
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by Kopra

  1. Most of the users don't have issue, almost always problem is very specific to user and his hardware and software. You can check #troubleshooting channel on discord and also browse and read through #support channels to see what other people with similar issue have tried. 

  2. What do you mean where do they get it, you either make it yourself or you pay someone to do the job for you, there isn't public resource like this for RAGEMP that I know of.

    This script in total with server and clientside code has max 100 lines.

    EDIT: @Xabiwas faster 😴

  3. None of above examples worked so I share my:

    const REQUEST_ADDITIONAL_COLLISION_AT_COORD = "0xC9156DC11411A9EA";
    
    export const getGroundCoords = (vector, tries) => {
        let groundZ;
        for (let i = 0; i < tries; ++i) {
    
            groundZ = mp.game.gameplay.getGroundZFor3DCoord(vector.x, vector.y, 1000, false, false);
            if (groundZ) {
                return new mp.Vector3(vector.x, vector.y, groundZ + 1);
            } else {
    
                for (let z = 1500; z >= 0; z -= 100) {
                    mp.game.streaming.setFocusArea(vector.x, vector.y, z, 0, 0, 0);
                    mp.game.streaming.requestCollisionAtCoord(vector.x, vector.y, z);
                    mp.game.invoke(REQUEST_ADDITIONAL_COLLISION_AT_COORD, vector.x, vector.y, z);
                    mp.game.wait(0);
                }
    
                groundZ = mp.game.gameplay.getGroundZFor3DCoord(vector.x, vector.y, 1000, false, false);
                if (groundZ) {
                    mp.game.streaming.clearFocus();
                    return new mp.Vector3(vector.x, vector.y, groundZ + 1);
                } else {
                    mp.game.streaming.setFocusArea(mp.players.local.position.x, mp.players.local.position.y, mp.players.local.position.z, 0, 0, 0);
                    mp.game.streaming.clearFocus();
                }
            }
        }
        return null;
    }
    
    const teleportToWp = () => {
        const waypoint = mp.game.ui.getFirstBlipInfoId(8);
        if (!mp.game.ui.doesBlipExist(waypoint)) return;
    
        const waypointPos = mp.game.ui.getBlipInfoIdCoord(waypoint);
        if (!waypointPos) return;
    
        const groundPos = getGroundCoords(waypointPos, 10);
        if (groundPos) {
            mp.players.local.position = groundPos;
            return;
        }
    
        mp.gui.chat.push("Ground Z could not be found, try another position.");
    };
    
    mp.keys.bind(114/* F3 keycode */, false, () => {
        teleportToWp();
    })
  4. Integration is not yet fully complete that is true, but most if not almost all issues are on user side, not EAC. Join ragemp discord and see what others have tried to do. One of the easiest fixes could be just updating your windows. Also you can try to contact EAC to get some help.

    Easy Anti-Cheat

  5. You can use System.Linq to simplify this check:

    public static Vehicle GetClosestVehicle(Player player, float distance = 15f)
    {
        return NAPI.Pools.GetAllVehicles().Where(X => X.Position.DistanceToSquared(player.Position) <= distance).OrderBy(v => v.Position.DistanceToSquared(player.Position)).FirstOrDefault();
    }

     

  6. There are more than 1 type of objects in GTA. Props and objects with embedded things like collision and LODs can be removed, if they have anything static then your best bet is to move it underground instead of deleting because deletion is not simple. You will need to give this process some time to learn tricks, there are many tutorials on youtube, it is same for all the MP clients difference is only in import method. 

  7. Blips - RAGE Multiplayer Wiki

    // Without options
    const FirstWay = mp.blips.new(11, mp.players.local.position);
     
    // With options, all options are optional
    const SecondWay = mp.blips.new(11, mp.players.local.position, {
        name: 'Your Blip',
        color: 1,
        shortRange: true,
        scale: 0.7,
        alpha: 255,
        dimension: mp.players.local.dimension,
    });
×
×
  • Create New...