Skip to content

Bikers: Clubhouse 1

Bob74 edited this page Nov 2, 2018 · 4 revisions

Getting the main object to interact with the interior:

BikerClubhouse1 = exports['bob74_ipl']:GetBikerClubhouse1Object()

Coordinates

This interior can be found at:

X Y Z
1107.04 -3157.399 -37.51859

Object structure

BikerClubhouse1
  +-- interiorId
  +-- Ipl
  |   +-- Interior
  |      +-- ipl
  |      +-- Load()
  |      +-- Remove()
  +-- Walls
  |   +-- brick
  |   +-- plain
  |   +-- Color
  |      +-- sable
  |      +-- yellowGray
  |      +-- red
  |      +-- brown
  |      +-- yellow
  |      +-- lightYellow
  |      +-- lightYellowGray
  |      +-- lightGray
  |      +-- orange
  |      +-- gray
  |   +-- Set(walls, color, refresh)
  |   +-- Clear(refresh)
  +-- Furnitures
  |   +-- A
  |   +-- B
  |   +-- Set(furn, color, refresh)
  |   +-- Clear(refresh)
  +-- Decoration
  |   +-- A
  |   +-- B
  |   +-- Set(deco, color, refresh)
  |   +-- Clear(refresh)
  +-- Mural
  |   +-- none
  |   +-- rideFree
  |   +-- mods
  |   +-- mods2
  |   +-- brave
  |   +-- fist
  |   +-- forest
  |   +-- rideForever
  |   +-- heart
  |   +-- route68
  |   +-- Set(mural, refresh)
  |   +-- Clear(refresh)
  +-- GunLocker
  |   +-- none
  |   +-- on
  |   +-- off
  |   +-- Set(locker, refresh)
  |   +-- Clear(refresh)
  +-- ModBooth
  |   +-- none
  |   +-- on
  |   +-- off
  |   +-- Set(mod, refresh)
  |   +-- Clear(refresh)
  +-- Meth
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(stage, refresh)
  |   +-- Clear(refresh)
  +-- Cash
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(stage, refresh)
  |   +-- Clear(refresh)
  +-- Weed
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(stage, refresh)
  |   +-- Clear(refresh)
  +-- Coke
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(stage, refresh)
  |   +-- Clear(refresh)
  +-- Counterfeit
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(stage, refresh)
  |   +-- Clear(refresh)
  +-- Documents
  |   +-- none
  |   +-- stage1
  |   +-- stage2
  |   +-- stage3
  |   +-- Set(stage, refresh)
  |   +-- Clear(refresh)
  +-- LoadDefault()

Walls

Setting the interior's style:

BikerClubhouse1.Walls.Set(walls, color, refresh)
Parameter Description Valid values
wall Bricked wall BikerClubhouse1.Walls.brick
Plain wall BikerClubhouse1.Walls.plain
color Sable BikerClubhouse1.Walls.Color.sable
Yellow/Gray BikerClubhouse1.Walls.Color.yellowGray
Red BikerClubhouse1.Walls.Color.red
Brown BikerClubhouse1.Walls.Color.brown
Yellow BikerClubhouse1.Walls.Color.yellow
Light Yellow BikerClubhouse1.Walls.Color.lightYellow
Light Yellow/Gray BikerClubhouse1.Walls.Color.lightYellowGray
Light Gray BikerClubhouse1.Walls.Color.lightGray
Orange BikerClubhouse1.Walls.Color.orange
Gray BikerClubhouse1.Walls.Color.gray
refresh Refresh the whole interior true or false

Furnitures

Setting the furniture's style:

BikerClubhouse1.Furnitures.Set(furn, color, refresh)
Parameter Description Valid values
furn Leather couch BikerClubhouse1.Furnitures.A
Fabric couch BikerClubhouse1.Furnitures.B
color Not the same color if furniture A or B Number from 0 to 9
refresh Refresh the whole interior true or false

Decoration

Setting the decoration's style:

BikerClubhouse1.Decoration.Set(deco, refresh)
Parameter Description Valid values
deco Decoration style BikerClubhouse1.Decoration.A
Decoration style BikerClubhouse1.Decoration.B
refresh Refresh the whole interior true or false

Mural

Setting the painting on the wall:

BikerClubhouse1.Mural.Set(mural, refresh)
Parameter Description Valid values
mural No painting BikerClubhouse1.Mural.none
Ride free BikerClubhouse1.Mural.rideFree
Mods BikerClubhouse1.Mural.mods
Mods2 BikerClubhouse1.Mural.mods2
Brave BikerClubhouse1.Mural.brave
Fist BikerClubhouse1.Mural.fist
Forest BikerClubhouse1.Mural.forest
Ride forever BikerClubhouse1.Mural.rideForever
Heart BikerClubhouse1.Mural.heart
Route68 BikerClubhouse1.Mural.route68
refresh Refresh the whole interior true or false

GunLocker

Setting the gun locker state:

BikerClubhouse1.GunLocker.Set(locker, refresh)
Parameter Description Valid values
locker No gun locker BikerClubhouse1.GunLocker.none
Clutter BikerClubhouse1.GunLocker.off
Gun locker BikerClubhouse1.GunLocker.on
refresh Refresh the whole interior true or false

ModBooth

Setting the mod booth state:

BikerClubhouse1.ModBooth.Set(mod, refresh)
Parameter Description Valid values
mod No mod booth BikerClubhouse1.ModBooth.none
Clutter BikerClubhouse1.ModBooth.off
Mod booth BikerClubhouse1.ModBooth.on
refresh Refresh the whole interior true or false

Meth

Adding meth to the interior:

BikerClubhouse1.Meth.Set(stage, refresh)
Parameter Description Valid values
stage No meth BikerClubhouse1.Meth.none
Stage 1 BikerClubhouse1.Meth.stage1
Stage 2 BikerClubhouse1.Meth.stage2
Stage 3 BikerClubhouse1.Meth.stage3
refresh Refresh the whole interior true or false

Cash

Adding cash to the interior:

BikerClubhouse1.Cash.Set(stage, refresh)
Parameter Description Valid values
stage No cash BikerClubhouse1.Cash.none
Stage 1 BikerClubhouse1.Cash.stage1
Stage 2 BikerClubhouse1.Cash.stage2
Stage 3 BikerClubhouse1.Cash.stage3
refresh Refresh the whole interior true or false

Weed

Adding weed to the interior:

BikerClubhouse1.Weed.Set(stage, refresh)
Parameter Description Valid values
stage No weed BikerClubhouse1.Weed.none
Stage 1 BikerClubhouse1.Weed.stage1
Stage 2 BikerClubhouse1.Weed.stage2
Stage 3 BikerClubhouse1.Weed.stage3
refresh Refresh the whole interior true or false

Coke

Adding coke to the interior:

BikerClubhouse1.Coke.Set(stage, refresh)
Parameter Description Valid values
stage No coke BikerClubhouse1.Coke.none
Stage 1 BikerClubhouse1.Coke.stage1
Stage 2 BikerClubhouse1.Coke.stage2
Stage 3 BikerClubhouse1.Coke.stage3
refresh Refresh the whole interior true or false

Counterfeit

Adding counterfeit cash to the interior:

BikerClubhouse1.Counterfeit.Set(stage, refresh)
Parameter Description Valid values
stage No counterfeit cash BikerClubhouse1.Counterfeit.none
Stage 1 BikerClubhouse1.Counterfeit.stage1
Stage 2 BikerClubhouse1.Counterfeit.stage2
Stage 3 BikerClubhouse1.Counterfeit.stage3
refresh Refresh the whole interior true or false

Documents

Adding documents to the interior:

BikerClubhouse1.Documents.Set(stage, refresh)
Parameter Description Valid values
stage No documents BikerClubhouse1.Documents.none
Stage 1 BikerClubhouse1.Documents.stage1
Stage 2 BikerClubhouse1.Documents.stage2
Stage 3 BikerClubhouse1.Documents.stage3
refresh Refresh the whole interior true or false

Default values set by bob74_ipl

LoadDefault = function()
    BikerClubhouse1.Ipl.Interior.Load()
    
    BikerClubhouse1.Walls.Set(BikerClubhouse1.Walls.plain, BikerClubhouse1.Walls.Color.brown)

    BikerClubhouse1.Furnitures.Set(BikerClubhouse1.Furnitures.A, 3)
    BikerClubhouse1.Decoration.Set(BikerClubhouse1.Decoration.A)
    BikerClubhouse1.Mural.Set(BikerClubhouse1.Mural.rideFree)

    BikerClubhouse1.GunLocker.Set(BikerClubhouse1.GunLocker.none)
    BikerClubhouse1.ModBooth.Set(BikerClubhouse1.ModBooth.none)

    BikerClubhouse1.Meth.Set(BikerClubhouse1.Meth.none)
    BikerClubhouse1.Cash.Set(BikerClubhouse1.Cash.none)
    BikerClubhouse1.Coke.Set(BikerClubhouse1.Coke.none)
    BikerClubhouse1.Weed.Set(BikerClubhouse1.Weed.none)
    BikerClubhouse1.Counterfeit.Set(BikerClubhouse1.Counterfeit.none)
    BikerClubhouse1.Documents.Set(BikerClubhouse1.Documents.none)

    RefreshInterior(BikerClubhouse1.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
    BikerClubhouse1 = exports['bob74_ipl']:GetBikerClubhouse1Object()

    -- Setting red bricked walls
    BikerClubhouse1.Walls.Set(BikerClubhouse1.Walls.brick, BikerClubhouse1.Walls.Color.red)

    -- Setting furnitures B (fabric couch and chairs)
    BikerClubhouse1.Furnitures.Set(BikerClubhouse1.Furnitures.B, 1)

    -- Setting the decoration
    BikerClubhouse1.Decoration.Set(BikerClubhouse1.Decoration.A)

    -- Setting the big painting on the wall
    BikerClubhouse1.Mural.Set(BikerClubhouse1.Mural.brave)

    -- Enabling gun locker
    BikerClubhouse1.GunLocker.Set(BikerClubhouse1.GunLocker.on)

    -- Enabling mod booth
    BikerClubhouse1.ModBooth.Set(BikerClubhouse1.ModBooth.on)

    -- Let's go a bit crazy and enable all drugs and fake documents on stage 3! (wouuh)
    BikerClubhouse1.Meth.Set(BikerClubhouse1.Meth.stage3)
    BikerClubhouse1.Cash.Set(BikerClubhouse1.Cash.stage3)
    BikerClubhouse1.Coke.Set(BikerClubhouse1.Coke.stage3)
    BikerClubhouse1.Weed.Set(BikerClubhouse1.Weed.stage3)
    BikerClubhouse1.Counterfeit.Set(BikerClubhouse1.Counterfeit.stage3)
    BikerClubhouse1.Documents.Set(BikerClubhouse1.Documents.stage3)

    RefreshInterior(BikerClubhouse1.interiorId)
end)
Clone this wiki locally