RedM Natives

Blip styles

Categoryuseful_info_from_rpfs
Rows258

Blip Styles

Usage

local function CreateBlip(style, coords, modifiers, name)
  -- The blip's style is the base styling which can then be overridden by modifiers and natives
  local blip = BlipAddForCoords(style, coords.x, coords.y, coords.z)

  -- The modifier actions are applied in order, with natives respecting that order
  -- In this case, we are applying modifiers in order and then overriding the name below
  for _, modifier in ipairs(modifiers) do
    BlipAddModifier(blip, modifier)
  end

  -- Always override the blip name last after applying modifiers
  SetBlipName(blip, name)
end

-- Don't forget to remove the blip after you're done!
CreateBlip(
  `BLIP_STYLE_SHOP`,
  vector3(2508.1557, -1450.2551, 44.6105),
  { `BLIP_MODIFIER_TOD_DAYTIME_ONLY` },
  "Stables"
)

Details

Conditional/Auto Modifiers

Examples

22 rows
#hashnameactionsNote
1AUTO_ENEMY_ANGRYColor: COLOR_ENEMY · Heading Type: Off
2AUTO_ENEMY_FLEEINGColor: COLOR_WHITE
3AUTO_MODIFIER_AREA_DIM_WHEN_INSIDEAlpha: 0.45 (for area layer)
4AUTO_MODIFIER_AREA_HIDE_WHEN_INSIDEAlpha: 0 (for area layer)
5AUTO_MODIFIER_CENTER_HIDDENColor: COLOR_LOW_PRIORITY
6AUTO_MODIFIER_CENTER_ON_HORSESprite: BLIP_CODE_CENTER_ON_HORSE
7AUTO_MODIFIER_COP_CRIMINAL_KNOWNColor: COLOR_RADAR_POLICE_RED
8AUTO_MODIFIER_COP_CRIMINAL_UNKNOWNConditional Styles: When potential suspect identified: · - Apply AUTO_MODIFIER_COP_POTENTIAL_SUSPECT · - Remove AUTO_MODIFIER_COP_INVESTIGATING · Otherwise: · - Apply AUTO_MODIFIER_COP_INVESTIGATING · - Remove AUTO_MODIFIER_COP_POTENTIAL_SUSPECT
9AUTO_MODIFIER_COP_INVESTIGATINGColor: COLOR_WHITE
10AUTO_MODIFIER_COP_POTENTIAL_SUSPECTColor: COLOR_RADAR_POLICE_LOOKING
11AUTO_MODIFIER_COP_SEARCH_CONEHeading Type: Cone (with color COLOR_WHITE)
12AUTO_MODIFIER_MAP_ONLYVisibility: Hidden on Radar
13AUTO_MODIFIER_MOONSHINE_AREA_DIM_WHEN_INSIDEAlpha: 0.25 (for area layer)
14AUTO_MODIFIER_MP_PLAYER_ATTACKINGScale Pulse: Pulse forever
15AUTO_MODIFIER_MP_PLAYER_ATTACKING_FTBColor: COLOR_ENEMY · Scale Pulse: Pulse forever
16AUTO_MODIFIER_PING_GUNSHOTRange: Always · Sonar Pulse: Pulse 1 time · - Radius: 70m, Duration: 1,200ms
17AUTO_MODIFIER_SAFE_AREA_DIM_WHEN_INSIDEAlpha: 0.3 (for area layer) · Color: COLOR_WHITE
18AUTO_MODIFIER_WANTED_FLASHAlpha: 0.9 (for area layer) · Color: COLOR_WHITE (for area layer) · Sonar Pulse: Pulse 1 time · - Radius: 100m, Duration: 800ms
19AUTO_MODIFIER_WITNESS_IDENTIFIEDColor: COLOR_WITNESS_IDENTIFIED
20AUTO_MODIFIER_WITNESS_INVESTIGATINGColor: COLOR_WITNESS_INVESTIGATING · Scale Pulse: Pulse 4 times
21AUTO_MODIFIER_WITNESS_LAWHeading Type: Cone (with color COLOR_WHITE) · Sprite: BLIP_AMBIENT_LAW
22AUTO_MODIFIER_WITNESS_UNIDENTIFIEDColor: COLOR_WITNESS_UNIDENTIFIED