GTA V: Simeon - Bob74/bob74_ipl GitHub Wiki
Getting the main object to interact with the interior:
Simeon = exports['bob74_ipl']:GetSimeonObject()
Coordinates
This interior can be found at:
X | Y | Z |
---|---|---|
-47.16170 | -1115.3327 | 26.5 |
Object structure
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()
Style
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)
Shutter
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 |
bob74_ipl
Default values set by LoadDefault = function()
Simeon.Ipl.Interior.Load()
Simeon.Style.Set(Simeon.Style.normal)
Simeon.Shutter.Set(Simeon.Shutter.opened)
RefreshInterior(Simeon.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
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)