-
Notifications
You must be signed in to change notification settings - Fork 237
Bikers: Cocaine lockup
Bob74 edited this page Nov 2, 2018
·
4 revisions
Getting the main object to interact with the interior:
BikerCocaine = exports['bob74_ipl']:GetBikerCocaineObject()
This interior can be found at:
X | Y | Z |
---|---|---|
1093.6 | -3196.6 | -38.99841 |
BikerCocaine
+-- interiorId
+-- Ipl
| +-- Interior
| +-- ipl
| +-- Load()
| +-- Remove()
+-- Style
| +-- none
| +-- basic
| +-- upgrade
| +-- Set(style, refresh)
| +-- Clear(refresh)
+-- Security
| +-- none
| +-- basic
| +-- upgrade
| +-- Set(security, refresh)
| +-- Clear(refresh)
+-- Details
| +-- cokeBasic1
| +-- cokeBasic2
| +-- cokeBasic3
| +-- cokeUpgrade1
| +-- cokeUpgrade2
| +-- Enable(details, state, refresh)
+-- LoadDefault()
Loading Ipls related files in game:
BikerCocaine.Ipl.Interior.Load()
Removing Ipls from game:
BikerCocaine.Ipl.Interior.Remove()
Setting the interior's style:
BikerCocaine.Style.Set(style, refresh)
Parameter | Description | Valid values |
---|---|---|
style | No tables | BikerCocaine.Style.none |
Basic tables | BikerCocaine.Style.basic |
|
Upgraded tables | BikerCocaine.Style.upgrade |
|
refresh | Refresh the whole interior |
true or false
|
Setting the security:
BikerCocaine.Security.Set(security, refresh)
Parameter | Description | Valid values |
---|---|---|
security | None | BikerCocaine.Security.none |
Basic | BikerCocaine.Security.basic |
|
Upgraded | BikerCocaine.Security.upgrade |
|
refresh | Refresh the whole interior |
true or false
|
Enable or disable some interior related details:
BikerCocaine.Details.Enable(details, state, refresh)
Parameter | Description | Valid values |
---|---|---|
details | Stuff on the basic table 1 | BikerCocaine.Details.cokeBasic1 |
Stuff on the basic table 2 | BikerCocaine.Details.cokeBasic2 |
|
Stuff on the basic table 3 | BikerCocaine.Details.cokeBasic3 |
|
Stuff on the upgraded table 1 | BikerCocaine.Details.cokeUpgrade1 |
|
Stuff on the upgraded table 2 | BikerCocaine.Details.cokeUpgrade2 |
|
refresh | Refresh the whole interior |
true or false
|
LoadDefault = function()
BikerCocaine.Ipl.Interior.Load()
BikerCocaine.Style.Set(BikerCocaine.Style.basic)
BikerCocaine.Security.Set(BikerCocaine.Security.none)
RefreshInterior(BikerCocaine.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
BikerCocaine = exports['bob74_ipl']:GetBikerCocaineObject()
-- Setting the style
BikerCocaine.Style.Set(BikerCocaine.Style.basic)
-- Setting the security
BikerCocaine.Security.Set(BikerCocaine.Security.basic)
-- Enabling details
BikerCocaine.Details.Enable({BikerCocaine.Details.cokeBasic1, BikerCocaine.Details.cokeBasic2, BikerCocaine.Details.cokeBasic3}, true)
-- Refreshing the interior to the see the result
RefreshInterior(BikerCocaine.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