-
Notifications
You must be signed in to change notification settings - Fork 238
GTA V: Simeon
Bob74 edited this page Nov 2, 2018
·
3 revisions
Getting the main object to interact with the interior:
Simeon = exports['bob74_ipl']:GetSimeonObject()
This interior can be found at:
X | Y | Z |
---|---|---|
-47.16170 | -1115.3327 | 26.5 |
Simeon
+-- interiorId
+-- Ipl
| +-- Interior
| +-- ipl
| +-- Load()
| +-- Remove()
+-- Style
| +-- normal
| +-- noGlass
| +-- destroyed
| +-- fixed
| +-- Set(style, refresh)
| +-- Clear(refresh)
+-- Shutter
| +-- opened
| +-- closed
| +-- Set(shutter, refresh)
| +-- Clear(refresh)
+-- LoadDefault()
Setting the interior's style:
Simeon.Style.Set(style, refresh)
Parameter | Description | Valid values |
---|---|---|
style | Normal with the desk | Simeon.Style.normal |
Normal but no glass near the desk | Simeon.Style.noGlass |
|
Destroyed on the car crash | Simeon.Style.destroyed |
|
Repaired after the car crash | Simeon.Style.fixed |
|
refresh | Refresh the whole interior |
true or false
|
Removing the interior's style:
Simeon.Style.Clear(refresh)
Setting the shutter state:
Simeon.Shutter.Set(shutter, refresh)
Parameter | Description | Valid values |
---|---|---|
shutter | No garage shutter | Simeon.Shutter.none |
shutter | Garage shutter is opened | Simeon.Shutter.opened |
Garage shutter is closed | Simeon.Shutter.closed |
|
refresh | Refresh the whole interior |
true or false
|
LoadDefault = function()
Simeon.Ipl.Interior.Load()
Simeon.Style.Set(Simeon.Style.normal)
Simeon.Shutter.Set(Simeon.Shutter.opened)
RefreshInterior(Simeon.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
Simeon = exports['bob74_ipl']:GetSimeonObject()
-- Destroyed interior
Simeon.Style.Set(Simeon.Style.destoryed)
-- Garage shutter is closed
Simeon.Shutter.Set(Simeon.Shutter.closed)
RefreshInterior(Simeon.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