Jump to content

1 Screenshot

About This File

Features

  • Sync
  • Streamer
  • Events
  • Easy to use


API

    + Added mp.particleFx.addLoopedAtCoord (Synced!)
    + Added mp.particleFx.addLoopedOnEntity (Synced!)
    + Added mp.particleFx.destroy (Synced!)

    + Added player.startParticleFxLoopedAtCoord (Not synced!)
    + Added player.startParticleFxLoopedOnEntity (Not synced!)
    + Added player.stopParticleFx (Not synced!)


Examples

mp.events.add({
    'onPlayerParticleFxStreamIn' : (player, particleId) => {
        console.log(`[onPlayerParticleFxStreamIn] => ${player.name} - ${particleId}`);
    },
    'onPlayerParticleFxStreamOut' : (player, particleId) => {
        console.log(`[onPlayerParticleFxStreamOut] => ${player.name} - ${particleId}`);
    },
    'onParticleFxEntityDisconnect' : (player, particleId) => {
        console.log(`[onParticleFxEntityDisconnect] => ${player.name} - ${particleId}`);
    }
});
mp.events.addCommand({
    'fx_carwash2_stop' : (player) => player.stopParticleFx('car.wash2'),
    'fx_carwash2' : (player) => {
        const  
            id = 'car.wash2', 
            fxName = 'scr_carwash', 
            effectName = 'ent_amb_car_wash_jet',
            position = { x: player.position.x, y: player.position.y, z: player.position.z + 3.0 },
            rotation = { x: 0, y: 0, z: 0 },
            scale = 15.0,
            xAxis = true, 
            yAxis = true, 
            zAxis = true
        ;

        player.startParticleFxLoopedAtCoord(id, fxName, effectName, position, rotation, scale, xAxis, yAxis, zAxis);
    }
})
mp.events.addCommand({
    'fx_carwash_stop' : () => mp.particleFx.destroy('car.wash'),
    'fx_carwash' : (player) => {
        const  
            id = 'car.wash', 
            fxName = 'scr_carwash', 
            effectName = 'ent_amb_car_wash_jet',
            position = { x: player.position.x, y: player.position.y, z: player.position.z + 3.0 },
            rotation = { x: 0, y: 0, z: 0 },
            scale = 15.0,
            xAxis = true, 
            yAxis = true, 
            zAxis = true
        ;

        mp.particleFx.addLoopedAtCoord(id, fxName, effectName, position, rotation, scale, xAxis, yAxis, zAxis);
    }
});
mp.events.addCommand({
    'fx_moneyrain' : (player) => {
        const  
            id = 'moneyrain', 
            fxName = 'scr_xs_celebration', 
            effectName = 'scr_xs_money_rain_celeb',
            offset = { x: 0.0, y: 0.0, z: 1.25 },
            rotation = { x: 0, y: 0, z: 0 },
            scale = 1.25,
            xAxis = true, 
            yAxis = true, 
            zAxis = true
        ;

        const fx = mp.particleFx.addLoopedOnEntity(id, player, fxName, effectName, offset, rotation, scale, xAxis, yAxis, zAxis);
        setTimeout(() => fx.destroy(), 9000);
    }
});
mp.events.addCommand({
    'fx_barber' : (player) => {
        const  
            id = 'barber', 
            fxName = 'scr_barbershop', 
            effectName = 'scr_barbers_haircut',
            offset = { x: 0.0, y: 0.0, z: 0.75 },
            rotation = { x: 0, y: 0, z: 0 },
            scale = 1.0,
            xAxis = true, 
            yAxis = true, 
            zAxis = true
        ;

        const fx = mp.particleFx.addLoopedOnEntity(id, player, fxName, effectName, offset, rotation, scale, xAxis, yAxis, zAxis);
        setTimeout(() => {
            fx.destroy();
            player.setClothes(2, Math.floor(Math.random() * 74), 0, 2);
        }, 900);
    }
});


Introduction

 

  • Like 4
  • Mask 1

User Feedback

Recommended Comments

IDONTSUDO

Posted

how did you run gta twice?

Tampa

Posted

8 hours ago, Vapex said:

Because you didnt mention, is this for 1.1?

I think it's not matter, but tested with branch 10_mNwuchuQ4ktWbR8d2N5jUzRt

 

3 hours ago, IDONTSUDO said:

how did you run gta twice?

create empty "enable-sc-multi-instancing.txt" file at root directory where you installed ragemp, also you need social club game version if I'm not mistake, probably doesn't work with steam version. Just open Updater.exe twice and play. Easy.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...