Los Santos Drug Wars: Acid lab - Bob74/bob74_ipl GitHub Wiki
Getting the main object to interact with the interior:
DrugWarsLab = exports['bob74_ipl']:GetDrugWarsLabObject()
Coordinates
This interior can be found at:
X | Y | Z |
---|---|---|
483.4252 | -2625.071 | -50.000 |
Object structure
DrugWarsLab
+-- interiorId
+-- Details
| +-- products
| +-- supplies
| +-- equipment
| +-- Enable(details, state, refresh)
+-- LoadDefault()
Details
Enabling or disabling details:
DrugWarsLab.Details.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | Products | DrugWarsLab.Details.products |
Supplies | DrugWarsLab.Details.supplies |
|
The upgraded equipment | DrugWarsLab.Details.equipment |
|
refresh | Enabled or disabled | true or false |
refresh | Refresh the whole interior | true or false |
bob74_ipl
Default values set by LoadDefault = function()
DrugWarsLab.Details.Enable(DrugWarsLab.Details.products, true, false)
DrugWarsLab.Details.Enable(DrugWarsLab.Details.supplies, true, false)
DrugWarsLab.Details.Enable(DrugWarsLab.Details.equipment, true, false)
RefreshInterior(DrugWarsLab.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
DrugWarsLab = exports['bob74_ipl']:GetDrugWarsLabObject()
-- Remove the products
DrugWarsLab.Details.Enable(DrugWarsLab.Details.products, false, false)
RefreshInterior(DrugWarsLab.interiorId)
end)