Skip to content

San Andreas Mercenaries: Vinewood Car Club

Indra edited this page Apr 27, 2024 · 1 revision

Getting the main object to interact with the interior:

MercenariesClub = exports['bob74_ipl']:GetMercenariesClubObject()

Coordinates

This interior can be found at:

X Y Z
1202.407 -3251.251 -50.000

Object structure

MercenariesClub
  +-- interiorId
  +-- Style
  |   +-- empty
  |   +-- club
  |   +-- Set(style, refresh)
  |   +-- Clear(refresh)
  +-- Stairs
  |   +-- stairs
  |   +-- Enable(state, refresh)
  +-- LoadDefault()

Style

Setting the style:

MercenariesClub.Style.Set(style, refresh)
Parameter Description Valid values
style Empty warehouse MercenariesClub.Style.empty
Car club MercenariesClub.Style.club
refresh Refresh the whole interior true or false

Stairs

Enable or disable the stairs:

MercenariesClub.Stairs.Enable(state, refresh)
Parameter Description Valid values
state Enabled or disabled true or false
refresh Refresh the whole interior true or false

Default values set by bob74_ipl

LoadDefault = function()
	MercenariesClub.Style.Set(MercenariesClub.Style.club, false)
	MercenariesClub.Stairs.Enable(true, false)

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

    -- Set the interior to the empty warehouse
    MercenariesClub.Style.Set(MercenariesClub.Style.empty, true)

    -- Remove the stairs
    MercenariesClub.Stairs.Enable(false, true)
end)
Clone this wiki locally