Skip to content

GTA Online: Low end house

Bob74 edited this page Nov 2, 2018 · 2 revisions

Getting the main object to interact with the interior:

GTAOHouseLow1 = exports['bob74_ipl']:GetGTAOHouseLow1Object()

Coordinates

This interior can be found at:

X Y Z
261.4586 -998.8196 -99.00863

Object structure

GTAOHouseLow1
  +-- interiorId
  +-- Strip
  |   +-- A
  |   +-- B
  |   +-- C
  |   +-- Enable(details, state, refresh)
  +-- Booze
  |   +-- A
  |   +-- B
  |   +-- C
  |   +-- Enable(details, state, refresh)
  +-- Smoke
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(smoke, refresh)
  |   +-- Clear(refresh)
  +-- LoadDefault()

Strip

Setting the interior's strip-tease clothes:

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

Booze

Setting the interior's bottles:

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

Smoke

Setting the smoking state:

GTAOHouseLow1.Smoke.Set(smoke, refresh)
Parameter Description Valid values
smoke No cigarettes added GTAOHouseLow1.Smoke.none
A bit of cigarettes and empty ashtrays GTAOHouseLow1.Smoke.stage1
More cigarettes and used ashtrays GTAOHouseLow1.Smoke.stage2
Lot of cigarettes and full ashtrays GTAOHouseLow1.Smoke.stage3
refresh Refresh the whole interior true or false

Removing the smoking state:

GTAOHouseLow1.Smoke.Clear(refresh)

Default values set by bob74_ipl

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

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

    -- Enable a bit of booze bottles
    GTAOHouseLow1.Booze.Enable(GTAOHouseLow1.Booze.A, false)

    -- Maximum amount of cigarettes
    GTAOHouseLow1.Smoke.Set(GTAOHouseLow1.Smoke.stage3, false)
    RefreshInterior(GTAOHouseLow1.interiorId)
end)
Clone this wiki locally