Jump to content
RAGE Multiplayer Community

1 Screenshot

About This File

InsecureCompassionateFunnelweaverspider-

Requires RAGE Multiplayer 1.1.0 and above.

If you ever played the missions "Grass Roots - Michael" and "Grass Roots - Trevor", you'll remember these missions had special particle effects. This resource allows you to use those particle effects on your server.

 

Installing

Put BloodVfx.js into your server's client_packages directory, then add require('BloodVfx'); to client_packages/index.js.

 

API (Clientside)

/*
    This resource adds "bloodVfxMode" property to the mp.game.graphics object.
    
    Blood VFX modes:
    - VFX_MODE_DEFAULT = 0
    - VFX_MODE_ALIEN = 1
    - VFX_MODE_CLOWN = 2
    - Invalid modes will be treated as VFX_MODE_DEFAULT.
*/
mp.game.graphics.bloodVfxMode

 

Example

const KEY_F2 = 0x71;
const KEY_F3 = 0x72;
const KEY_F4 = 0x73;

const VFX_MODE_DEFAULT = 0;
const VFX_MODE_ALIEN = 1;
const VFX_MODE_CLOWN = 2;

// Pressing F2 will enable alien blood VFX.
mp.keys.bind(KEY_F2, false, () => {
    mp.game.graphics.bloodVfxMode = VFX_MODE_ALIEN;
});

// Pressing F3 will enable clown blood VFX.
mp.keys.bind(KEY_F3, false, () => {
    mp.game.graphics.bloodVfxMode = VFX_MODE_CLOWN;
});

// Pressing F4 will disable active blood VFX.
mp.keys.bind(KEY_F4, false, () => {
    mp.game.graphics.bloodVfxMode = VFX_MODE_DEFAULT;
});

 

Notes

  • RAGEMP does not disable alien/clown blood VFX between sessions. (might change in the future) Meaning if you're playing on serverA that has clown blood VFX enabled and connect to serverB using the F1 menu, you'll still have clown blood VFX.

 

Source code is available on GitHub Gist in case you don't want to download: https://gist.github.com/root-cause/49e7b1601d531bb4c8ba18489ff6731c


What's New in Version 1.0.0   See changelog

Released

No changelog available for this version.

  • Like 5
  • Mask 1

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

Jaimuzu

   3 of 3 members found this review helpful 3 / 3 members

waoow so epic now my gaming can be in a china

Flag of China - Wikipedia

Link to comment
Jer

   1 of 3 members found this review helpful 1 / 3 members

WOAW ITS AN EPIC ONE,,,,

Link to comment
×
×
  • Create New...