Blackout 1.0.0

   (0 reviews)
Sign in to follow this  

1 Screenshot

About This File

This resource lets you control the blackout feature of GTA V.

 

Installing

  • Put the files you downloaded in their respective places
  • Add require('blackout') to client_packages/index.js
  • All done

 

API

// Serverside (synced to every player)
mp.world.blackout.enabled // get
mp.world.blackout.enabled = true/false // set

// Clientside (only for a client)
mp.game.blackout.enabled // get
mp.game.blackout.enabled = true/false // set

You can also trigger SetBlackoutState event with the first argument being the new state of blackout.

 

Example

// Toggle blackout mode with /toggleblackout (Serverside)
mp.events.addCommand("toggleblackout", (player) => {
    mp.world.blackout.enabled = !mp.world.blackout.enabled;
    player.outputChatBox(`Blackout ${mp.world.blackout.enabled ? `enabled` : `disabled`}.`);
});
// Toggle blackout mode with F8 key (Clientside)
mp.keys.bind(0x77, false, () => {
    mp.game.blackout.enabled = !mp.game.blackout.enabled;
    mp.gui.chat.push(`Blackout ${mp.game.blackout.enabled ? `enabled` : `disabled`}.`);
});

 

CoN02uc.jpg

6nnEo1Z.jpg




User Feedback

Create an account or sign in to leave a review

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

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

There are no reviews to display.