Skip to content

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()

Coordinates

This interior can be found at:

X Y Z
1093.6 -3196.6 -38.99841

Object structure

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()

Interior Ipls

Loading Ipls related files in game:

BikerCocaine.Ipl.Interior.Load()

Removing Ipls from game:

BikerCocaine.Ipl.Interior.Remove()

Style

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

Security

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

Details

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

Default values set by bob74_ipl

LoadDefault = function()
    BikerCocaine.Ipl.Interior.Load()
    BikerCocaine.Style.Set(BikerCocaine.Style.basic)
    BikerCocaine.Security.Set(BikerCocaine.Security.none)
    RefreshInterior(BikerCocaine.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
    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)
Clone this wiki locally