Ui::setBlipCategoryGrouped

From RAGE Multiplayer Wiki

Client-Side
Function

 JavaScript



JavaScript Syntax

This method will set a blip into a category.

Required Params

  • category: number
  • placeIn: boolean

Return value

  • void

Syntax

mp.game.ui.setBlipCategoryGrouped(category, placeIn);

Example

//create a blip
let policeBlip = mp.blips.new(60, new mp.Vector3(427.95, -981.05, 0), {
    name: 'Los Santos Police Station',
    color: 3,
    shortRange: true,
});
//set blip category to 60
policeBlip.setCategory(60);
//make sure 60 is a grouped category.
mp.game.ui.setBlipCategoryGrouped(60, true);


See also