Skip to content

GTA Online: High end houses

Bob74 edited this page Nov 2, 2018 · 2 revisions

GTA online high end houses are all handled the same way. There are 8 of them, from GTAOHouseHi1 to GTAOHouseHi8. I will be using GTAOHouseHi1 as an example in this documentation. Replace it with the house you need.

Getting the main object to interact with the interior:

GTAOHouseHi1 = exports['bob74_ipl']:GetGTAOHouseHi1Object()
GTAOHouseHi2 = exports['bob74_ipl']:GetGTAOHouseHi2Object()
GTAOHouseHi3 = exports['bob74_ipl']:GetGTAOHouseHi3Object()
GTAOHouseHi4 = exports['bob74_ipl']:GetGTAOHouseHi4Object()
GTAOHouseHi5 = exports['bob74_ipl']:GetGTAOHouseHi5Object()
GTAOHouseHi6 = exports['bob74_ipl']:GetGTAOHouseHi6Object()
GTAOHouseHi7 = exports['bob74_ipl']:GetGTAOHouseHi7Object()
GTAOHouseHi8 = exports['bob74_ipl']:GetGTAOHouseHi8Object()

Coordinates

These interiors can be found at:

X Y Z
High end house 1 (3655 Wild Oats Drive) -169.286 486.4938 137.4436
High end house 2 (2044 North Conker Avenue) 340.9412 437.1798 149.3925
High end house 3 (2045 North Conker Avenue) 373.023 416.105 145.7006
High end house 4 (2862 Hillcrest Avenue) -676.127 588.612 145.1698
High end house 5 (2868 Hillcrest Avenue) -763.107 615.906 144.1401
High end house 6 (2874 Hillcrest Avenue) -857.798 682.563 152.6529
High end house 7 (2677 Whispymound Drive) 120.5 549.952 184.097
High end house 8 (2133 Mad Wayne Thunder) -1288 440.748 97.69459

Object structure

GTAOHouseHi1
  +-- interiorId
  +-- Strip
  |   +-- A
  |   +-- B
  |   +-- C
  |   +-- Enable(details, state, refresh)
  +-- Booze
  |   +-- A
  |   +-- B
  |   +-- C
  |   +-- Enable(details, state, refresh)
  +-- Smoke
  |   +-- A
  |   +-- B
  |   +-- C
  |   +-- Enable(details, state, refresh)
  +-- LoadDefault()

Strip

Setting the interior's strip-tease clothes:

GTAOHouseHi1.Strip.Enable(details, state, refresh)
Parameter Description Valid values
details Clothes on the ground, furnitures... GTAOHouseHi1.Strip.A
Clothes on the ground, furnitures... GTAOHouseHi1.Strip.B
Clothes on the ground, furnitures... GTAOHouseHi1.Strip.C
state Enabled or disabled true or false
refresh Refresh the whole interior true or false

Booze

Setting the interior's bottles:

GTAOHouseHi1.Booze.Enable(details, state, refresh)
Parameter Description Valid values
details Bottles here and there GTAOHouseHi1.Booze.A
Bottles here and there GTAOHouseHi1.Booze.B
Bottles here and there GTAOHouseHi1.Booze.C
state Enabled or disabled true or false
refresh Refresh the whole interior true or false

Smoke

Setting the interior's bottles:

GTAOHouseHi1.Booze.Enable(details, state, refresh)
Parameter Description Valid values
details Cigarettes and cigarettes packs GTAOHouseHi1.Smoke.A
Cigarettes and cigarettes packs GTAOHouseHi1.Smoke.B
Cigarettes and cigarettes packs GTAOHouseHi1.Smoke.C
state Enabled or disabled true or false
refresh Refresh the whole interior true or false

Default values set by bob74_ipl

LoadDefault = function()
    GTAOHouseHi1.Strip.Enable({GTAOHouseHi1.Strip.A, GTAOHouseHi1.Strip.B, GTAOHouseHi1.Strip.C}, false)
    GTAOHouseHi1.Booze.Enable({GTAOHouseHi1.Booze.A, GTAOHouseHi1.Booze.B, GTAOHouseHi1.Booze.C}, false)
    GTAOHouseHi1.Smoke.Enable({GTAOHouseHi1.Smoke.A, GTAOHouseHi1.Smoke.B, GTAOHouseHi1.Smoke.C}, false)
    RefreshInterior(GTAOHouseHi1.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
    GTAOHouseHi1 = exports['bob74_ipl']:GetGTAOHouseHi1Object()

    -- Enable all strip-tease clothes
    GTAOHouseHi1.Strip.Enable({GTAOHouseHi1.Strip.A, GTAOHouseHi1.Strip.B, GTAOHouseHi1.Strip.C}, true)

    -- Enable a bit of booze bottles
    GTAOHouseHi1.Booze.Enable(GTAOHouseHi1.Booze.A, true)

    -- Enable a bit of cigarettes
    GTAOHouseHi1.Smoke.Enable({GTAOHouseHi1.Smoke.A, GTAOHouseHi1.Smoke.B}, false)

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