Skip to content

Los Santos Drug Wars: Eclipse Boulevard Garage

Indra edited this page Apr 14, 2024 · 3 revisions

Getting the main object to interact with the interior:

DrugWarsGarage = exports['bob74_ipl']:GetDrugWarsGarageObject()

Coordinates

This interior can be found at:

X Y Z
519.2477 -2618.788 -50.000

Object structure

DrugWarsGarage
  +-- interiorId
  +-- Ipl
  |   +-- Exterior
  |      + ipl
  |      + Load()
  |      + Remove()
  +-- Banner
  |   +-- model
  |   +-- position
  |   +-- Hide()
  |   +-- Restore()
  +-- Numbering
  |   +-- none
  |   +-- level1
  |   +-- level2
  |   +-- level3
  |   +-- level4
  |   +-- level5
  |   +-- Set(num, refresh)
  |   +-- Clear(refresh)
  +-- Style
  |   +-- immaculate
  |   +-- industrial
  |   +-- indulgent
  |   +-- Set(style, refresh)
  |   +-- Clear(refresh)
  +-- Tint
  |   +-- white
  |   +-- gray
  |   +-- black
  |   +-- purple
  |   +-- orange
  |   +-- yellow
  |   +-- blue
  |   +-- red
  |   +-- green
  |   +-- lightBlue
  |   +-- lightGreen
  |   +-- SetColor(color, refresh)
  +-- LoadDefault()

Exterior Ipls

Loading Ipls related files in game:

DrugWarsGarage.Ipl.Exterior.Load()

Removing Ipls from game:

DrugWarsGarage.Ipl.Exterior.Remove()

Banner

Setting the "For lease" banner on the exterior.

DrugWarsGarage.Banner.Hide()
DrugWarsGarage.Banner.Restore()

Numbering

Setting the interior level number:

DrugWarsGarage.Numbering.Set(num, refresh)
Parameter Description Valid values
num Level 1 DrugWarsGarage.Numbering.level1
Level 2 DrugWarsGarage.Numbering.level2
Level 3 DrugWarsGarage.Numbering.level3
Level 4 DrugWarsGarage.Numbering.level4
Level 5 DrugWarsGarage.Numbering.level5
refresh Refresh the whole interior true or false

Style

Setting the interior style:

DrugWarsGarage.Style.Set(style, refresh)
Parameter Description Valid values
style Immaculate DrugWarsGarage.Style.immaculate
Industrial DrugWarsGarage.Style.industrial
Indulgent DrugWarsGarage.Style.indulgent
refresh Refresh the whole interior true or false

Tint

Setting the interior tint:

DrugWarsGarage.Tint.SetColor(color, refresh)
Parameter Description Valid values
color White DrugWarsGarage.Tint.white
Gray DrugWarsGarage.Tint.gray
Black DrugWarsGarage.Tint.black
Purple DrugWarsGarage.Tint.purple
Orange DrugWarsGarage.Tint.orange
Yellow DrugWarsGarage.Tint.yellow
Blue DrugWarsGarage.Tint.blue
Red DrugWarsGarage.Tint.red
Green DrugWarsGarage.Tint.green
Light blue DrugWarsGarage.Tint.lightBlue
Light green DrugWarsGarage.Tint.lightGreen
refresh Refresh the whole interior true or false

Default values set by bob74_ipl

LoadDefault = function()
    DrugWarsGarage.Ipl.Exterior.Load()
    DrugWarsGarage.Banner.Hide()

    DrugWarsGarage.Numbering.Set(DrugWarsGarage.Numbering.level1, false)
    DrugWarsGarage.Style.Set(DrugWarsGarage.Style.immaculate, false)
    DrugWarsGarage.Tint.SetColor(DrugWarsGarage.Tint.white, false)

    RefreshInterior(DrugWarsGarage.interiorId)
end

Example: How to use in your own resources

You can handle and customize the interiors in your own resources using the exported functions:

Citizen.CreateThread(function()
    -- Getting the object to interact with
    DrugWarsGarage = exports['bob74_ipl']:GetDrugWarsGarageObject()

    -- Disable the exterior
    DrugWarsGarage.Ipl.Exterior.Remove()

    -- Set the interior style
    DrugWarsGarage.Style.Set(DrugWarsGarage.Style.industrial, false)

    -- Set the color
    DrugWarsGarage.Tint.SetColor(DrugWarsGarage.Tint.purple, false)

    RefreshInterior(DrugWarsGarage.interiorId)
end)
Clone this wiki locally