Bikers: Counterfeit cash factory - Bob74/bob74_ipl GitHub Wiki
Getting the main object to interact with the interior:
BikerCounterfeit = exports['bob74_ipl']:GetBikerCounterfeitObject()
Coordinates
This interior can be found at:
| X | Y | Z |
|---|---|---|
| 1121.897 | -3195.338 | -40.4025 |
Object structure
BikerCounterfeit
+-- interiorId
+-- Ipl
| +-- Interior
| +-- ipl
| +-- Load()
| +-- Remove()
+-- Printer
| +-- none
| +-- basic
| +-- upgrade
| +-- Set(printer, refresh)
| +-- Clear(refresh)
+-- Security
| +-- basic
| +-- upgrade
| +-- Set(security, refresh)
| +-- Clear(refresh)
+-- Dryer1
| +-- none
| +-- on
| +-- off
| +-- Set(dryer, refresh)
| +-- Clear(refresh)
+-- Dryer2
| +-- none
| +-- on
| +-- off
| +-- Set(dryer, refresh)
| +-- Clear(refresh)
+-- Dryer3
| +-- none
| +-- on
| +-- off
| +-- Set(dryer, refresh)
| +-- Clear(refresh)
+-- Dryer4
| +-- none
| +-- on
| +-- off
| +-- Set(dryer, refresh)
| +-- Clear(refresh)
+-- Details
| +-- Cash10
| +-- A
| +-- B
| +-- C
| +-- D
| +-- Cash20
| +-- A
| +-- B
| +-- C
| +-- D
| +-- Cash100
| +-- A
| +-- B
| +-- C
| +-- D
| +-- chairs
| +-- cutter
| +-- furnitures
| +-- Enable(details, state, refresh)
+-- LoadDefault()
Interior Ipls
Loading Ipls related files in game:
BikerCounterfeit.Ipl.Interior.Load()
Removing Ipls from game:
BikerCounterfeit.Ipl.Interior.Remove()
Printer
Setting the printers:
BikerCounterfeit.Printer.Set(printer, refresh)
| Parameter | Description | Valid values |
|---|---|---|
| printer | No printers | BikerCounterfeit.Printer.none |
| Basic printers (stopped) | BikerCounterfeit.Printer.basic |
|
| Basic printers (working) | BikerCounterfeit.Printer.basicProd |
|
| Upgraded printers (stopped) | BikerCounterfeit.Printer.upgrade |
|
| Upgraded printers (working) | BikerCounterfeit.Printer.upgradeProd |
|
| refresh | Refresh the whole interior | true or false |
Removing the printers:
BikerCounterfeit.Style.Clear()
Security
Setting the security:
BikerCounterfeit.Security.Set(security, refresh)
| Parameter | Description | Valid values |
|---|---|---|
| security | Basic | BikerCounterfeit.Security.basic |
| Upgraded | BikerCounterfeit.Security.upgrade |
|
| refresh | Refresh the whole interior | true or false |
Dryers from 1 to 4
This documentation uses Dryer1 as example. Replace Dryer1 with Dryer2, Dryer3 or Dryer4 to set another dryer.
Setting up a dryer:
BikerCounterfeit.Dryer1.Set(dryer, refresh)
| Parameter | Description | Valid values |
|---|---|---|
| dryer | None | BikerCounterfeit.Dryer1.none |
| Working | BikerCounterfeit.Dryer1.on |
|
| Stopped | BikerCounterfeit.Dryer1.off |
|
| Opened | BikerCounterfeit.Dryer1.open |
|
| refresh | Refresh the whole interior | true or false |
Details
Enable or disable some interior related details:
BikerCounterfeit.Details.Enable(details, state, refresh)
| Parameter | Description | Valid values |
|---|---|---|
| details | Brown chairs at the end of the room | BikerCounterfeit.Details.chairs |
| Money cutting machine | BikerCounterfeit.Details.cutter |
|
| Paper, counting machines | BikerCounterfeit.Details.furnitures |
|
| Piles of 10$ bills behing counting machine (right) | BikerCounterfeit.Details.Cash10.A |
|
| Piles of 10$ bills behing counting machine (middle) | BikerCounterfeit.Details.Cash10.B |
|
| Piles of 10$ bills behind counting machine(left) | BikerCounterfeit.Details.Cash10.C |
|
| 10$ bills being processed on the tables | BikerCounterfeit.Details.Cash10.D |
|
| Piles of 20$ bills behing counting machine (right) | BikerCounterfeit.Details.Cash20.A |
|
| Piles of 20$ bills behing counting machine (middle) | BikerCounterfeit.Details.Cash20.B |
|
| Piles of 20$ bills behind counting machine(left) | BikerCounterfeit.Details.Cash20.C |
|
| 20$ bills being processed on the tables | BikerCounterfeit.Details.Cash20.D |
|
| Piles of 100$ bills behing counting machine (right) | BikerCounterfeit.Details.Cash100.A |
|
| Piles of 100$ bills behing counting machine (middle) | BikerCounterfeit.Details.Cash100.B |
|
| Piles of 100$ bills behind counting machine(left) | BikerCounterfeit.Details.Cash100.C |
|
| 100$ bills being processed on the tables | BikerCounterfeit.Details.Cash100.D |
|
| state | Enabled or disabled | true or false |
| refresh | Refresh the whole interior | true or false |
Default values set by bob74_ipl
LoadDefault = function()
BikerCounterfeit.Ipl.Interior.Load()
BikerCounterfeit.Printer.Set(BikerCounterfeit.Printer.none)
BikerCounterfeit.Security.Set(BikerCounterfeit.Security.basic)
BikerCounterfeit.Dryer1.Set(BikerCounterfeit.Dryer1.none)
BikerCounterfeit.Dryer2.Set(BikerCounterfeit.Dryer2.none)
BikerCounterfeit.Dryer3.Set(BikerCounterfeit.Dryer3.none)
BikerCounterfeit.Dryer4.Set(BikerCounterfeit.Dryer4.none)
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.chairs, false)
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.furnitures, true)
RefreshInterior(BikerCounterfeit.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
BikerCounterfeit = exports['bob74_ipl']:GetBikerCounterfeitObject()
-- Loading Ipls
BikerCounterfeit.Ipl.Interior.Load()
-- Setting the printers
BikerCounterfeit.Printer.Set(BikerCounterfeit.Printer.basicProd)
-- Setting the security
BikerCounterfeit.Security.Set(BikerCounterfeit.Security.basic)
-- Setting the dryers
BikerCounterfeit.Dryer1.Set(BikerCounterfeit.Dryer1.on)
BikerCounterfeit.Dryer2.Set(BikerCounterfeit.Dryer2.off)
BikerCounterfeit.Dryer3.Set(BikerCounterfeit.Dryer3.open)
BikerCounterfeit.Dryer4.Set(BikerCounterfeit.Dryer4.on)
-- Enabling details
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.chairs, true)
BikerCounterfeit.Details.Enable(BikerCounterfeit.Details.furnitures, true)
-- Refreshing the interior to the see the result
RefreshInterior(BikerCounterfeit.interiorId)
end)