Skip to content

After Hours: Nightclubs

Bob74 edited this page Oct 20, 2019 · 4 revisions

Getting the main object to interact with the interior:

AfterHoursNightclubs = exports['bob74_ipl']:GetAfterHoursNightclubsObject()

Coordinates

These clubs can be found at:

X Y Z
Interior -1604.664 -3012.583 -78.000
Exterior - Airport -680.0 -2461.0 14.0
Exterior - Cypress Flats 868.0 -2098.0 31.0
Exterior - Del Perro -1287.0 -647.0 27.0
Exterior - Elysian Island 192.0 -3168.0 6.0
Exterior - La Mesa 760.0 -1337.0 27.0
Exterior - Mission Row 348.0 -979.0 30.0
Exterior - Strawberry -118.0 -1260.0 30.0
Exterior - Vespucci -1171.0 -1150.0 6.0
Exterior - Vinewood 373.0 254.0 103.0
Exterior - Vinewood West 9.0 221.0 109.0

Object structure

AfterHoursNightclubs
  +-- interiorId
  +-- Ipl
  |   +-- Interior
  |      +-- ipl
  |      +-- Load()
  |      +-- Remove()
  +-- Interior
  |   +-- Name
  |      +-- galaxy
  |      +-- studio
  |      +-- omega
  |      +-- technologie
  |      +-- gefangnis
  |      +-- maisonette
  |      +-- tony
  |      +-- palace
  |      +-- paradise
  |      +-- Set(name, refresh)
  |      +-- Clear(refresh)
  |   +-- Style
  |      +-- trad
  |      +-- edgy
  |      +-- glam
  |      +-- Set(style, refresh)
  |      +-- Clear(refresh)
  |   +-- Podium
  |      +-- trad
  |      +-- edgy
  |      +-- glam
  |      +-- Set(podium, refresh)
  |      +-- Clear(refresh)
  |   +-- Speakers
  |      +-- none
  |      +-- basic
  |      +-- upgrade
  |      +-- Set(speakers, refresh)
  |      +-- Clear(refresh)
  |   +-- Security
  |      +-- off
  |      +-- on
  |      +-- Set(security, refresh)
  |      +-- Clear(refresh)
  |   +-- Turntables
  |      +-- none
  |      +-- style01
  |      +-- style02
  |      +-- style03
  |      +-- style04
  |      +-- Set(turntables, refresh)
  |      +-- Clear(refresh)
  |   +-- Bar
  |      +-- Enable(state, refresh)
  |   +-- Booze
  |      +-- A
  |      +-- B
  |      +-- C
  |      +-- Enable(booze, state, refresh)
  |   +-- Trophy
  |      +-- Color
  |        +-- bronze
  |        +-- silver
  |        +-- gold
  |      +-- number1
  |      +-- battler
  |      +-- dancer
  |      +-- Enable(trophy, state, color, refresh)
  |   +-- DryIce
  |      +-- Enable
  |   +-- Details
  |      +-- clutter
  |      +-- worklamps
  |      +-- truck
  |      +-- dryIce
  |      +-- lightRigsOff
  |      +-- roofLightsOff
  |      +-- floorTradLights
  |      +-- chest
  |      +-- vaultAmmunations
  |      +-- vaultMeth
  |      +-- vaultFakeID
  |      +-- vaultWeed
  |      +-- vaultCoke
  |      +-- vaultCash
  |      +-- Enable(details, state, refresh)
  |   +-- Lights
  |      +-- Droplets
  |        +-- yellow
  |        +-- green
  |        +-- white
  |        +-- purple
  |        +-- Set(light, refresh)
  |        +-- Clear(refresh)
  |      +-- Neons
  |        +-- yellow
  |        +-- white
  |        +-- purple
  |        +-- cyan
  |        +-- Set(light, refresh)
  |        +-- Clear(refresh)
  |      +-- Bands
  |        +-- yellow
  |        +-- green
  |        +-- white
  |        +-- cyan
  |        +-- Set(light, refresh)
  |        +-- Clear(refresh)
  |      +-- Lasers
  |        +-- yellow
  |        +-- green
  |        +-- white
  |        +-- purple
  |        +-- Set(light, refresh)
  |        +-- Clear(refresh)
  |      +-- Clear()
  +-- Airport
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- Cypress
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- DelPerro
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- Elysian
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- Mesa
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- MissionRow
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- Strawberry
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- Vespucci
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- Vinewood
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
  +-- VinewoodWest
  |   +-- id
  |   +-- Barrier
  |     +-- Enable(state)
  |   +-- Posters
  |     +-- Enable(state)
  |     +-- Clear()
 +-- Barrier
  |   +-- barrier
  |   +-- Enable(clubId, state)
 +-- Posters
  |   +-- forSale
  |   +-- dixon
  |   +-- madonna
  |   +-- solomun
  |   +-- taleOfUs
  |   +-- Enable(clubId, poster, state)
  |   +-- Clear(clubId)
  +-- LoadDefault()

Interior Ipls

Loading Ipls related files in game:

AfterHoursNightclubs.Ipl.Interior.Load()

Removing Ipls from game:

AfterHoursNightclubs.Ipl.Interior.Remove()

Name

Setting the name of the club:

AfterHoursNightclubs.Interior.Name.Set(name, refresh)
Parameter Description Valid values
name Galaxy AfterHoursNightclubs.Interior.Name.galaxy
Studio Los Santos AfterHoursNightclubs.Interior.Name.studio
Omega AfterHoursNightclubs.Interior.Name.omega
Technologie AfterHoursNightclubs.Interior.Name.technologie
Gefängnis AfterHoursNightclubs.Interior.Name.gefangnis
Maisonette Los Santos AfterHoursNightclubs.Interior.Name.maisonette
Tony's Fun House AfterHoursNightclubs.Interior.Name.tony
The Palace AfterHoursNightclubs.Interior.Name.palace
Paradise AfterHoursNightclubs.Interior.Name.paradise
refresh Refresh the whole interior true or false

Style

Setting the interior's style:

AfterHoursNightclubs.Interior.Style.Set(style, refresh)
Parameter Description Valid values
style Traditional AfterHoursNightclubs.Interior.Style.trad
Edgy AfterHoursNightclubs.Interior.Style.edgy
Glam AfterHoursNightclubs.Interior.Style.glam
refresh Refresh the whole interior true or false

Podium

Setting the podium's style:

AfterHoursNightclubs.Interior.Podium.Set(podium, refresh)
Parameter Description Valid values
podium No podiums AfterHoursNightclubs.Interior.Podium.none
Traditional AfterHoursNightclubs.Interior.Podium.trad
Edgy AfterHoursNightclubs.Interior.Podium.edgy
Glam AfterHoursNightclubs.Interior.Podium.glam
refresh Refresh the whole interior true or false

Speakers

Setting the speakers tier:

AfterHoursNightclubs.Interior.Speakers.Set(speakers, refresh)
Parameter Description Valid values
speakers No speakers AfterHoursNightclubs.Interior.Speakers.none
Basic speakers AfterHoursNightclubs.Interior.Speakers.basic
Upgraded speakers AfterHoursNightclubs.Interior.Speakers.upgrade
refresh Refresh the whole interior true or false

Security

Setting the security screens and digit:

AfterHoursNightclubs.Interior.Security.Set(security, refresh)
Parameter Description Valid values
security No security AfterHoursNightclubs.Interior.Security.off
Enable security AfterHoursNightclubs.Interior.Security.on
refresh Refresh the whole interior true or false

Turntables

Setting the turntables:

AfterHoursNightclubs.Interior.Turntables.Set(turntables, refresh)
Parameter Description Valid values
turntables No DJ turntables AfterHoursNightclubs.Interior.Turntables.none
Style 1 AfterHoursNightclubs.Interior.Turntables.style01
Style 2 AfterHoursNightclubs.Interior.Turntables.style02
Style 3 AfterHoursNightclubs.Interior.Turntables.style03
Style 4 AfterHoursNightclubs.Interior.Turntables.style04
refresh Refresh the whole interior true or false

Bar

Enabling the bar stuff (bottles on the shelves):

AfterHoursNightclubs.Interior.Bar.Enable(state, refresh)
Parameter Description Valid values
state Show or hide bottles true or false
refresh Refresh the whole interior true or false

Booze

Setting the interior's bottles:

AfterHoursNightclubs.Interior.Booze.Enable(booze, state, refresh)
Parameter Description Valid values
booze Bottles here and there AfterHoursNightclubs.Interior.Booze.A
Bottles here and there AfterHoursNightclubs.Interior.Booze.B
Bottles here and there AfterHoursNightclubs.Interior.Booze.C
refresh Refresh the whole interior true or false

Trophy

Adding trophies on the desk:

AfterHoursNightclubs.Interior.Trophy.Enable(trophy, state, color, refresh)
Parameter Description Valid values
trophy Number One Nightclub AfterHoursNightclubs.Interior.Trophy.number1
Battler Trophy AfterHoursNightclubs.Interior.Trophy.battler
Dancer Trophy AfterHoursNightclubs.Interior.Trophy.dancer
state Enabled or disabled true or false
color Bronze, Silver or Gold AfterHoursNightclubs.Interior.Trophy.Color.bronze or AfterHoursNightclubs.Interior.Trophy.Color.silver or AfterHoursNightclubs.Interior.Trophy.Color.gold
refresh Refresh the whole interior true or false

Dry ice

Enable or disable the dry ice emitters:

AfterHoursNightclubs.Interior.DryIce.Enable(state)
Parameter Description Valid values
state Enabled or disabled true or false

Details

Setting the interior's details:

AfterHoursNightclubs.Interior.Details.Enable(details, state, refresh)
Parameter Description Valid values
details Clutter and graffitis AfterHoursNightclubs.Interior.Details.clutter
Work lamps + trash AfterHoursNightclubs.Interior.Details.worklamps
Truck parked in the garage AfterHoursNightclubs.Interior.Details.truck
Dry ice machines (no effects) AfterHoursNightclubs.Interior.Details.dryIce
All light rigs at once but turned off AfterHoursNightclubs.Interior.Details.lightRigsOff
Fake lights AfterHoursNightclubs.Interior.Details.roofLightsOff
Floor lights meant to go with the trad style AfterHoursNightclubs.Interior.Details.floorTradLights
Chest on the VIP desk AfterHoursNightclubs.Interior.Details.chest
(inside vault) Ammunations AfterHoursNightclubs.Interior.Details.vaultAmmunations
(inside vault) Meth bag AfterHoursNightclubs.Interior.Details.vaultMeth
(inside vault) Fake ID AfterHoursNightclubs.Interior.Details.vaultFakeID
(inside vault) Opened weed bag AfterHoursNightclubs.Interior.Details.vaultWeed
(inside vault) Coke doll AfterHoursNightclubs.Interior.Details.vaultCoke
(inside vault) Scrunched fake money AfterHoursNightclubs.Interior.Details.vaultCash
state Enabled or disabled true or false
refresh Refresh the whole interior true or false

Lights

Clear all lights:

AfterHoursNightclubs.Interior.Lights.Clear()

Droplets

Setting the interior's light:

AfterHoursNightclubs.Interior.Lights.Droplets.Set(light, refresh)
Parameter Description Valid values
light Yellow droplets AfterHoursNightclubs.Interior.Lights.Droplets.yellow
Green droplets AfterHoursNightclubs.Interior.Lights.Droplets.green
White droplets AfterHoursNightclubs.Interior.Lights.Droplets.white
Purple droplets AfterHoursNightclubs.Interior.Lights.Droplets.purple
refresh Refresh the whole interior true or false

Clear the lights:

AfterHoursNightclubs.Interior.Lights.Droplets.Clear()

Neons

Setting the interior's light:

AfterHoursNightclubs.Interior.Lights.Neons.Set(light, refresh)
Parameter Description Valid values
light Yellow neons AfterHoursNightclubs.Interior.Lights.Neons.yellow
White neons AfterHoursNightclubs.Interior.Lights.Neons.white
Purple neons AfterHoursNightclubs.Interior.Lights.Neons.purple
Cyan neons AfterHoursNightclubs.Interior.Lights.Neons.cyan
refresh Refresh the whole interior true or false

Clear the lights:

AfterHoursNightclubs.Interior.Lights.Neons.Clear()

Bands

Setting the interior's light:

AfterHoursNightclubs.Interior.Lights.Bands.Set(light, refresh)
Parameter Description Valid values
light Yellow bands AfterHoursNightclubs.Interior.Lights.Bands.yellow
Green bands AfterHoursNightclubs.Interior.Lights.Bands.green
White bands AfterHoursNightclubs.Interior.Lights.Bands.white
Cyan bands AfterHoursNightclubs.Interior.Lights.Bands.cyan
refresh Refresh the whole interior true or false

Clear the lights:

AfterHoursNightclubs.Interior.Lights.Bands.Clear()

Lasers

Setting the interior's light:

AfterHoursNightclubs.Interior.Lights.Lasers.Set(light, refresh)
Parameter Description Valid values
light Yellow lasers AfterHoursNightclubs.Interior.Lights.Lasers.yellow
Green lasers AfterHoursNightclubs.Interior.Lights.Lasers.green
White lasers AfterHoursNightclubs.Interior.Lights.Lasers.white
Purple lasers AfterHoursNightclubs.Interior.Lights.Lasers.purple
refresh Refresh the whole interior true or false

Clear the lights:

AfterHoursNightclubs.Interior.Lights.Lasers.Clear()

Default values set by bob74_ipl

LoadDefault = function()
    -- Interior setup
    AfterHoursNightclubs.Ipl.Interior.Load()
    
    AfterHoursNightclubs.Interior.Name.Set(AfterHoursNightclubs.Interior.Name.galaxy)
    AfterHoursNightclubs.Interior.Style.Set(AfterHoursNightclubs.Interior.Style.edgy)

    AfterHoursNightclubs.Interior.Podium.Set(AfterHoursNightclubs.Interior.Podium.edgy)
    AfterHoursNightclubs.Interior.Speakers.Set(AfterHoursNightclubs.Interior.Speakers.upgrade)

    AfterHoursNightclubs.Interior.Security.Set(AfterHoursNightclubs.Interior.Security.on)
    
    AfterHoursNightclubs.Interior.Turntables.Set(AfterHoursNightclubs.Interior.Turntables.style01)
    AfterHoursNightclubs.Interior.Lights.Bands.Set(AfterHoursNightclubs.Interior.Lights.Bands.cyan)

    AfterHoursNightclubs.Interior.Bar.Enable(true)

    AfterHoursNightclubs.Interior.Booze.Enable(AfterHoursNightclubs.Interior.Booze, true)

    AfterHoursNightclubs.Interior.Trophy.Enable(AfterHoursNightclubs.Interior.Trophy.number1, true, AfterHoursNightclubs.Interior.Trophy.Color.gold)

    RefreshInterior(AfterHoursNightclubs.interiorId)


    -- Exterior IPL
    AfterHoursNightclubs.Mesa.Barrier.Enable(true)
    AfterHoursNightclubs.Mesa.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Mesa.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)
    
    AfterHoursNightclubs.MissionRow.Barrier.Enable(true)
    AfterHoursNightclubs.MissionRow.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.MissionRow.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.Strawberry.Barrier.Enable(true)
    AfterHoursNightclubs.Strawberry.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Strawberry.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.VinewoodWest.Barrier.Enable(true)
    AfterHoursNightclubs.VinewoodWest.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.VinewoodWest.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.Cypress.Barrier.Enable(true)
    AfterHoursNightclubs.Cypress.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Cypress.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.DelPerro.Barrier.Enable(true)
    AfterHoursNightclubs.DelPerro.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.DelPerro.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.Airport.Barrier.Enable(true)
    AfterHoursNightclubs.Airport.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Airport.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.Elysian.Barrier.Enable(true)
    AfterHoursNightclubs.Elysian.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Elysian.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)

    AfterHoursNightclubs.Vinewood.Barrier.Enable(true)
    AfterHoursNightclubs.Vinewood.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Vinewood.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)
    
    AfterHoursNightclubs.Vespucci.Barrier.Enable(true)
    AfterHoursNightclubs.Vespucci.Posters.Enable(AfterHoursNightclubs.Posters, true)
    AfterHoursNightclubs.Vespucci.Posters.Enable(AfterHoursNightclubs.Posters.forSale, false)
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
    AfterHoursNightclubs = exports['bob74_ipl']:GetAfterHoursNightclubsObject()

    -------------------------------------------
    -- Interior part


    -- Interior setup
    AfterHoursNightclubs.Ipl.Interior.Load()
    
    -- Setting the name of the club to The Palace
    AfterHoursNightclubs.Interior.Name.Set(AfterHoursNightclubs.Interior.Name.palace)

    -- Glamorous style
    AfterHoursNightclubs.Interior.Style.Set(AfterHoursNightclubs.Interior.Style.glam)

    -- No podiums
    AfterHoursNightclubs.Interior.Podium.Set(AfterHoursNightclubs.Interior.Podium.none)

    -- Basic speakers
    AfterHoursNightclubs.Interior.Speakers.Set(AfterHoursNightclubs.Interior.Speakers.basic)

    -- No security
    AfterHoursNightclubs.Interior.Security.Set(AfterHoursNightclubs.Interior.Security.off)
    
    -- Setting turntables
    AfterHoursNightclubs.Interior.Turntables.Set(AfterHoursNightclubs.Interior.Turntables.style03)

    -- Lights
    AfterHoursNightclubs.Interior.Lights.Bands.Set(AfterHoursNightclubs.Interior.Lights.Lasers.cyan)
    AfterHoursNightclubs.Interior.Lights.Lasers.Set(AfterHoursNightclubs.Interior.Lights.Lasers.yellow)
    
    -- Enabling bottles behind the bar
    AfterHoursNightclubs.Interior.Bar.Enable(true)

    -- Enabling all booze bottles
    AfterHoursNightclubs.Interior.Booze.Enable(AfterHoursNightclubs.Interior.Booze, true)

    -- Adding trophies on the desk
    AfterHoursNightclubs.Interior.Trophy.Enable(AfterHoursNightclubs.Interior.Trophy.number1, true, AfterHoursNightclubs.Interior.Trophy.Color.bronze)
    AfterHoursNightclubs.Interior.Trophy.Enable(AfterHoursNightclubs.Interior.Trophy.battler, true, AfterHoursNightclubs.Interior.Trophy.Color.silver)
    AfterHoursNightclubs.Interior.Trophy.Enable(AfterHoursNightclubs.Interior.Trophy.dancer, true, AfterHoursNightclubs.Interior.Trophy.Color.gold)
    
    -- Refreshing interior to apply changes
    RefreshInterior(AfterHoursNightclubs.interiorId)


    -------------------------------------------
    -- Exterior part


    -- La Mesa - Exterior
    -- No barriers
    AfterHoursNightclubs.Mesa.Barrier.Enable(false)

    -- Only "For sale" poster
    AfterHoursNightclubs.Mesa.Posters.Enable(AfterHoursNightclubs.Posters.forSale, true)


    -- Mission Row - Exterior
    -- Barriers
    AfterHoursNightclubs.Mesa.Barrier.Enable(true)

    -- Posters for Dixon and Madonna only
    AfterHoursNightclubs.Mesa.Posters.Enable({AfterHoursNightclubs.Posters.dixon, AfterHoursNightclubs.Posters.madonna}, true)
end)
Clone this wiki locally