-
Notifications
You must be signed in to change notification settings - Fork 238
Import Export: Vehicle warehouse
Bob74 edited this page Apr 18, 2022
·
2 revisions
Getting the main object to interact with the interior:
ImportVehicleWarehouse = exports['bob74_ipl']:GetImportVehicleWarehouseObject()
This interior can be found at:
X | Y | Z | |
---|---|---|---|
Upper level | 994.5925 | -3002.594 | -39.64699 |
Lower level | 969.5376 | -3000.411 | -48.64689 |
ImportVehicleWarehouse
+-- Upper
| +-- interiorId
| +-- Ipl
| +-- Interior
| +-- ipl
| +-- Load()
| +-- Remove()
| +-- Style
| +-- basic
| +-- branded
| +-- urban
| +-- Set(style, refresh)
| +-- Clear(refresh)
| +-- Details
| +-- floorHatch
| +-- doorBlocker
| +-- Enable(details, state, refresh)
+-- Lower
| +-- interiorId
| +-- Ipl
| +-- Interior
| +-- ipl
| +-- Load()
| +-- Remove()
| +-- Details
| +-- Pumps
| +-- pump1
| +-- pump2
| +-- pump3
| +-- pump4
| +-- pump5
| +-- pump6
| +-- pump7
| +-- pump8
| +-- Enable(details, state, refresh)
+-- LoadDefault()
Enabling the upper level of the vehicle warehouse:
ImportVehicleWarehouse.Upper.Ipl.Interior.Load()
Removing the upper level:
ImportVehicleWarehouse.Upper.Ipl.Interior.Remove()
Setting the interior's style:
ImportVehicleWarehouse.Upper.Style.Set(style, refresh)
Parameter | Description | Valid values |
---|---|---|
style | Default | ImportVehicleWarehouse.Upper.Style.basic |
Graffitis | ImportVehicleWarehouse.Upper.Style.urban |
|
Cleaner with car brands flags | ImportVehicleWarehouse.Upper.Style.branded |
|
refresh | Refresh the whole interior |
true or false
|
Enable or disable some interior related details:
ImportVehicleWarehouse.Upper.Details.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | Metallic hatch on the floor | ImportVehicleWarehouse.Upper.Details.floorHatch |
Invisible wall blocking access to the lower floor | ImportVehicleWarehouse.Upper.Details.doorBlocker |
|
state | Enabled or disabled |
true or false
|
refresh | Refresh the whole interior |
true or false
|
Enabling the lower level of the vehicle warehouse:
ImportVehicleWarehouse.Lower.Ipl.Interior.Load()
Removing the lower level:
ImportVehicleWarehouse.Lower.Ipl.Interior.Remove()
Enable or disable some interior related details:
ImportVehicleWarehouse.Lower.Details.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | Pumps | ImportVehicleWarehouse.Lower.Details.Pumps |
Pump n°1 | ImportVehicleWarehouse.Lower.Details.Pumps.pump1 |
|
Pump n°2 | ImportVehicleWarehouse.Lower.Details.Pumps.pump2 |
|
Pump n°3 | ImportVehicleWarehouse.Lower.Details.Pumps.pump3 |
|
Pump n°4 | ImportVehicleWarehouse.Lower.Details.Pumps.pump4 |
|
Pump n°5 | ImportVehicleWarehouse.Lower.Details.Pumps.pump5 |
|
Pump n°6 | ImportVehicleWarehouse.Lower.Details.Pumps.pump6 |
|
Pump n°7 | ImportVehicleWarehouse.Lower.Details.Pumps.pump7 |
|
Pump n°8 | ImportVehicleWarehouse.Lower.Details.Pumps.pump8 |
|
state | Enabled or disabled |
true or false
|
refresh | Refresh the whole interior |
true or false
|
LoadDefault = function()
ImportVehicleWarehouse.Upper.Ipl.Interior.Load()
ImportVehicleWarehouse.Upper.Style.Set(ImportVehicleWarehouse.Upper.Style.basic)
ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.floorHatch, true)
ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.doorBlocker, false)
RefreshInterior(ImportVehicleWarehouse.Upper.interiorId)
ImportVehicleWarehouse.Lower.Ipl.Interior.Load()
ImportVehicleWarehouse.Lower.Details.Enable(ImportVehicleWarehouse.Lower.Details.Pumps, true)
RefreshInterior(ImportVehicleWarehouse.Lower.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
ImportVehicleWarehouse = exports['bob74_ipl']:GetImportVehicleWarehouseObject()
-- Branded interior
ImportVehicleWarehouse.Upper.Style.Set(ImportVehicleWarehouse.Upper.Style.branded)
-- No hatch on the floor
ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.floorHatch, false)
-- No invisible wall blocking the door to the staircase
ImportVehicleWarehouse.Upper.Details.Enable(ImportVehicleWarehouse.Upper.Details.doorBlocker, false)
RefreshInterior(ImportVehicleWarehouse.Upper.interiorId)
-- Enabling all pumps
ImportVehicleWarehouse.Lower.Details.Enable(ImportVehicleWarehouse.Lower.Details.Pumps, true)
-- Disabling pumps 3 and 5
ImportVehicleWarehouse.Lower.Details.Enable(ImportVehicleWarehouse.Lower.Details.Pumps.pump3, false)
ImportVehicleWarehouse.Lower.Details.Enable(ImportVehicleWarehouse.Lower.Details.Pumps.pump5, false)
RefreshInterior(ImportVehicleWarehouse.Lower.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