Ui::setBlipCategoryGrouped

From RAGE Multiplayer Wiki
Revision as of 20:00, 4 August 2024 by Shr0x (talk | contribs) (Created page with " {{ClientsideJsFunction}} {{JSContainer| This method will set a blip into a category. ===Required Params=== *'''category:''' {{RageType|number}} *'''placeIn:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.ui.setBlipCategoryGrouped(category, placeIn); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //create a blip let policeBlip = mp.blips.new(60, new mp.Vector3(427.95, -98...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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