-
Notifications
You must be signed in to change notification settings - Fork 237
Smugler's Run: Hangars
Bob74 edited this page Nov 4, 2018
·
2 revisions
Getting the main object to interact with the interior:
SmugglerHangar = exports['bob74_ipl']:GetSmugglerHangarObject()
This interior can be found at:
X | Y | Z |
---|---|---|
-1267.0 | -3013.135 | -49.5 |
SmugglerHangar
+-- interiorId
+-- Ipl
| +-- Interior
| +-- ipl
| +-- Load()
| +-- Remove()
+-- Colors
| +-- colorSet1
| +-- colorSet2
| +-- colorSet3
| +-- colorSet4
| +-- colorSet5
| +-- colorSet6
| +-- colorSet7
| +-- colorSet8
| +-- colorSet9
+-- Walls
| +-- default
| +-- SetColor(color, refresh)
+-- Floor
| +-- Style
| +-- raw
| +-- plain
| +-- Set(floor, refresh)
| +-- Clear(refresh)
| +-- Decals
| +-- decal1
| +-- decal2
| +-- decal3
| +-- decal1
| +-- decal5
| +-- decal6
| +-- decal7
| +-- decal8
| +-- decal9
| +-- Set(decal, color, refresh)
| +-- Clear(refresh)
+-- Cranes
| +-- on
| +-- off
| +-- Set(crane, color, refresh)
| +-- Clear(refresh)
+-- ModArea
| +-- on
| +-- off
| +-- Set(mod, color, refresh)
| +-- Clear(refresh)
+-- Office
| +-- basic
| +-- modern
| +-- traditional
| +-- Set(office, refresh)
| +-- Clear(refresh)
+-- Bedroom
| +-- Style
| +-- none
| +-- modern
| +-- traditional
| +-- Set(bed, color, refresh)
| +-- Clear(refresh)
| +-- Blinds
| +-- none
| +-- opened
| +-- closed
| +-- Set(blinds, color, refresh)
| +-- Clear(refresh)
+-- Lighting
| +-- FakeLights
| +-- none
| +-- yellow
| +-- blue
| +-- white
| +-- Set(light, refresh)
| +-- Clear(refresh)
| +-- Ceiling
| +-- none
| +-- yellow
| +-- blue
| +-- white
| +-- Set(light, refresh)
| +-- Clear(refresh)
| +-- Walls
| +-- none
| +-- neutral
| +-- orange
| +-- lightYellow
| +-- lightYellow2
| +-- dimmed
| +-- strongYellow
| +-- white
| +-- lightGreen
| +-- yellow
| +-- Set(light, refresh)
| +-- Clear(refresh)
+-- Details
| +-- bedroomClutter
| +-- Enable(details, state, refresh)
+-- LoadDefault()
Loading Ipls related files in game:
SmugglerHangar.Ipl.Interior.Load()
Removing Ipls from game:
SmugglerHangar.Ipl.Interior.Remove()
Setting the walls color:
SmugglerHangar.Walls.SetColor(color, refresh)
Parameter | Description | Valid values |
---|---|---|
color | Sable, red, gray | SmugglerHangar.Colors.colorSet1 |
White, blue, gray | SmugglerHangar.Colors.colorSet2 |
|
Gray, orange, blue | SmugglerHangar.Colors.colorSet3 |
|
Gray, blue, orange | SmugglerHangar.Colors.colorSet4 |
|
Gray, light gray, red | SmugglerHangar.Colors.colorSet5 |
|
Yellow, gray, light gray | SmugglerHangar.Colors.colorSet6 |
|
(Light) Black and white | SmugglerHangar.Colors.colorSet7 |
|
(Dark) Black and white | SmugglerHangar.Colors.colorSet8 |
|
Sable and gray | SmugglerHangar.Colors.colorSet9 |
|
refresh | Refresh the whole interior |
true or false
|
Setting the floor's style:
SmugglerHangar.Floor.Style.Set(floor, refresh)
Parameter | Description | Valid values |
---|---|---|
floor | Raw concrete ground | SmugglerHangar.Floor.Style.raw |
Plain concrete ground | SmugglerHangar.Floor.Style.plain |
|
refresh | Refresh the whole interior |
true or false
|
Setting the floor's center decal:
SmugglerHangar.Floor.Decals.Set(decal, color, refresh)
Parameter | Description | Valid values |
---|---|---|
decal | Decal on the ground | from SmugglerHangar.Floor.Style.Decals.decal1 to SmugglerHangar.Floor.Style.Decals.decal9
|
color | Sable, red, gray | SmugglerHangar.Colors.colorSet1 |
White, blue, gray | SmugglerHangar.Colors.colorSet2 |
|
Gray, orange, blue | SmugglerHangar.Colors.colorSet3 |
|
Gray, blue, orange | SmugglerHangar.Colors.colorSet4 |
|
Gray, light gray, red | SmugglerHangar.Colors.colorSet5 |
|
Yellow, gray, light gray | SmugglerHangar.Colors.colorSet6 |
|
(Light) Black and white | SmugglerHangar.Colors.colorSet7 |
|
(Dark) Black and white | SmugglerHangar.Colors.colorSet8 |
|
Sable and gray | SmugglerHangar.Colors.colorSet9 |
|
refresh | Refresh the whole interior |
true or false
|
Setting the cranes:
SmugglerHangar.Cranes.Set(crane, color, refresh)
Parameter | Description | Valid values |
---|---|---|
crane | No cranes | SmugglerHangar.Cranes.off |
Default cranes | SmugglerHangar.Cranes.on |
|
color | Sable, red, gray | SmugglerHangar.Colors.colorSet1 |
White, blue, gray | SmugglerHangar.Colors.colorSet2 |
|
Gray, orange, blue | SmugglerHangar.Colors.colorSet3 |
|
Gray, blue, orange | SmugglerHangar.Colors.colorSet4 |
|
Gray, light gray, red | SmugglerHangar.Colors.colorSet5 |
|
Yellow, gray, light gray | SmugglerHangar.Colors.colorSet6 |
|
(Light) Black and white | SmugglerHangar.Colors.colorSet7 |
|
(Dark) Black and white | SmugglerHangar.Colors.colorSet8 |
|
Sable and gray | SmugglerHangar.Colors.colorSet9 |
|
refresh | Refresh the whole interior |
true or false
|
Setting the mod area:
SmugglerHangar.ModArea.Set(mod, color, refresh)
Parameter | Description | Valid values |
---|---|---|
mod | No mod area | SmugglerHangar.ModArea.off |
Default mod area | SmugglerHangar.ModArea.on |
|
color | Sable, red, gray | SmugglerHangar.Colors.colorSet1 |
White, blue, gray | SmugglerHangar.Colors.colorSet2 |
|
Gray, orange, blue | SmugglerHangar.Colors.colorSet3 |
|
Gray, blue, orange | SmugglerHangar.Colors.colorSet4 |
|
Gray, light gray, red | SmugglerHangar.Colors.colorSet5 |
|
Yellow, gray, light gray | SmugglerHangar.Colors.colorSet6 |
|
(Light) Black and white | SmugglerHangar.Colors.colorSet7 |
|
(Dark) Black and white | SmugglerHangar.Colors.colorSet8 |
|
Sable and gray | SmugglerHangar.Colors.colorSet9 |
|
refresh | Refresh the whole interior |
true or false
|
Setting the office:
SmugglerHangar.Office.Set(office, refresh)
Parameter | Description | Valid values |
---|---|---|
office | Basic office | SmugglerHangar.Office.basic |
Modern | SmugglerHangar.Office.modern |
|
Traditional | SmugglerHangar.Office.traditional |
|
refresh | Refresh the whole interior |
true or false
|
Setting the bedroom's style:
SmugglerHangar.Bedroom.Style.Set(bed, color, refresh)
Parameter | Description | Valid values |
---|---|---|
none | No bedroom | SmugglerHangar.Bedroom.Style.none |
Modern bedroom | SmugglerHangar.Bedroom.Style.modern |
|
Traditional bedroom | SmugglerHangar.Bedroom.Style.traditional |
|
color | Sable, red, gray | SmugglerHangar.Colors.colorSet1 |
White, blue, gray | SmugglerHangar.Colors.colorSet2 |
|
Gray, orange, blue | SmugglerHangar.Colors.colorSet3 |
|
Gray, blue, orange | SmugglerHangar.Colors.colorSet4 |
|
Gray, light gray, red | SmugglerHangar.Colors.colorSet5 |
|
Yellow, gray, light gray | SmugglerHangar.Colors.colorSet6 |
|
(Light) Black and white | SmugglerHangar.Colors.colorSet7 |
|
(Dark) Black and white | SmugglerHangar.Colors.colorSet8 |
|
Sable and gray | SmugglerHangar.Colors.colorSet9 |
|
refresh | Refresh the whole interior |
true or false
|
Setting the bedroom's blinds state:
SmugglerHangar.Bedroom.Blinds.Set(blinds, refresh)
Parameter | Description | Valid values |
---|---|---|
blinds | No blinds | SmugglerHangar.Bedroom.Blinds.none |
Opened blinds | SmugglerHangar.Bedroom.Blinds.opened |
|
Closed blinds | SmugglerHangar.Bedroom.Blinds.closed |
|
refresh | Refresh the whole interior |
true or false
|
The fake lights are placed on the ceiling and doesn't emit light.
Setting the fake light's color:
SmugglerHangar.Lighting.FakeLights.Set(light, refresh)
Parameter | Description | Valid values |
---|---|---|
light | No lights | SmugglerHangar.Lighting.FakeLights.none |
Yellow lights | SmugglerHangar.Lighting.FakeLights.yellow |
|
Blue lights | SmugglerHangar.Lighting.FakeLights.blue |
|
White lights | SmugglerHangar.Lighting.FakeLights.white |
|
refresh | Refresh the whole interior |
true or false
|
Setting the ceiling's lights color:
SmugglerHangar.Lighting.Ceiling.Set(light, refresh)
Parameter | Description | Valid values |
---|---|---|
light | No lights | SmugglerHangar.Lighting.Ceiling.none |
Yellow lights | SmugglerHangar.Lighting.Ceiling.yellow |
|
Blue lights | SmugglerHangar.Lighting.Ceiling.blue |
|
White lights | SmugglerHangar.Lighting.Ceiling.white |
|
refresh | Refresh the whole interior |
true or false
|
Setting the walls lights color:
SmugglerHangar.Lighting.Walls.Set(light, refresh)
Parameter | Description | Valid values |
---|---|---|
light | No lights | SmugglerHangar.Lighting.Walls.none |
Neutral | SmugglerHangar.Lighting.Walls.neutral |
|
Blue | SmugglerHangar.Lighting.Walls.blue |
|
Orange | SmugglerHangar.Lighting.Walls.orange |
|
Light yellow | SmugglerHangar.Lighting.Walls.lightYellow |
|
Light yellow 2 | SmugglerHangar.Lighting.Walls.lightYellow2 |
|
Dimmed | SmugglerHangar.Lighting.Walls.dimmed |
|
Strong yellow | SmugglerHangar.Lighting.Walls.strongYellow |
|
White | SmugglerHangar.Lighting.Walls.white |
|
Light green | SmugglerHangar.Lighting.Walls.lightGreen |
|
Yellow | SmugglerHangar.Lighting.Walls.yellow |
|
refresh | Refresh the whole interior |
true or false
|
Enable or disable some interior related details:
SmugglerHangar.Details.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | Messy bedroom | SmugglerHangar.Details.bedroomClutter |
state | Enabled or disabled |
true or false
|
refresh | Refresh the whole interior |
true or false
|
LoadDefault = function()
SmugglerHangar.Ipl.Interior.Load()
SmugglerHangar.Walls.SetColor(SmugglerHangar.Colors.colorSet1)
SmugglerHangar.Cranes.Set(SmugglerHangar.Cranes.on, SmugglerHangar.Colors.colorSet1)
SmugglerHangar.Floor.Style.Set(SmugglerHangar.Floor.Style.plain)
SmugglerHangar.Floor.Decals.Set(SmugglerHangar.Floor.Decals.decal1, SmugglerHangar.Colors.colorSet1)
SmugglerHangar.Lighting.Ceiling.Set(SmugglerHangar.Lighting.Ceiling.yellow)
SmugglerHangar.Lighting.Walls.Set(SmugglerHangar.Lighting.Walls.neutral)
SmugglerHangar.Lighting.FakeLights.Set(SmugglerHangar.Lighting.FakeLights.yellow)
SmugglerHangar.ModArea.Set(SmugglerHangar.ModArea.on, SmugglerHangar.Colors.colorSet1)
SmugglerHangar.Office.Set(SmugglerHangar.Office.basic)
SmugglerHangar.Bedroom.Style.Set(SmugglerHangar.Bedroom.Style.modern, SmugglerHangar.Colors.colorSet1)
SmugglerHangar.Bedroom.Blinds.Set(SmugglerHangar.Bedroom.Blinds.opened)
SmugglerHangar.Details.Enable(SmugglerHangar.Details.bedroomClutter, false)
RefreshInterior(SmugglerHangar.interiorId)
end
You can handle and customize the interiors in your own resources using the exported functions:
Citizen.CreateThread(function()
-- Getting the object to interact with
SmugglerHangar = exports['bob74_ipl']:GetSmugglerHangarObject()
-- Setting walls color
SmugglerHangar.Walls.SetColor(SmugglerHangar.Colors.colorSet3)
-- Removing the cranes
SmugglerHangar.Cranes.Set(SmugglerHangar.Cranes.off, 1) -- color is optional here since we remove the cranes
-- Setting the floor
SmugglerHangar.Floor.Style.Set(SmugglerHangar.Floor.Style.raw)
SmugglerHangar.Floor.Decals.Set(SmugglerHangar.Floor.Decals.decal2, SmugglerHangar.Colors.colorSet3)
-- Settings the lights to blue
SmugglerHangar.Lighting.Ceiling.Set(SmugglerHangar.Lighting.Ceiling.blue)
SmugglerHangar.Lighting.Walls.Set(SmugglerHangar.Lighting.Walls.blue)
SmugglerHangar.Lighting.FakeLights.Set(SmugglerHangar.Lighting.FakeLights.blue)
-- No mod area
SmugglerHangar.ModArea.Set(SmugglerHangar.ModArea.off, 1) -- again, color is optional since wse remove the mod area
-- Setting the office style to "Traditional"
SmugglerHangar.Office.Set(SmugglerHangar.Office.traditional)
-- Setting the bedroom according to the office
SmugglerHangar.Bedroom.Style.Set(SmugglerHangar.Bedroom.Style.traditional, SmugglerHangar.Colors.colorSet3)
SmugglerHangar.Bedroom.Blinds.Set(SmugglerHangar.Bedroom.Blinds.opened)
-- No clutters in the bedroom
SmugglerHangar.Details.Enable(SmugglerHangar.Details.bedroomClutter, false)
RefreshInterior(SmugglerHangar.interiorId)
end)
- Home
- GTA V
- GTA Online
- DLC: High life
- DLC: Heists
- DLC: Executives & Other Criminals
- DLC: Finance & Felony
- DLC: Bikers
- DLC: Import/Export
- DLC: Gunrunning
- DLC: Smuggler's Run
- DLC: The Doomsday Heist
- DLC: After Hours
- DLC: Los Santos Drug Wars
- DLC: San Andreas Mercenaries
- DLC: The Chop Shop
- DLC: Bottom Dollar Bounties