-
Notifications
You must be signed in to change notification settings - Fork 236
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()
This interior can be found at:
X | Y | Z |
---|---|---|
261.4586 | -998.8196 | -99.00863 |
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()
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
|
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
|
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)
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
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)
- 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