Skip to content

Los Santos Drug Wars: Freakshop

Indra edited this page Apr 14, 2024 · 4 revisions

Getting the main object to interact with the interior:

DrugWarsFreakshop = exports['bob74_ipl']:GetDrugWarsFreakshopObject()

Coordinates

This interior can be found at:

X Y Z
570.9713 -420.0727 -70.000

Object structure

DrugWarsFreakshop
  +-- interiorId
  +-- Ipl
  |   +-- Exterior
  |      + ipl
  |      + Load()
  |      + Remove()
  +-- Door
  |   +-- opened
  |   +-- closed
  |   +-- Set(door, refresh)
  |   +-- Clear(refresh)
  +-- LoadDefault()

Exterior Ipls

Loading Ipls related files in game:

DrugWarsFreakshop.Ipl.Exterior.Load()

Removing Ipls from game:

DrugWarsFreakshop.Ipl.Exterior.Remove()

Door

Setting the garage door:

DrugWarsFreakshop.Door.Set(door, refresh)
Parameter Description Valid values
door Opened DrugWarsFreakshop.Door.opened
Closed DrugWarsFreakshop.Door.closed
refresh Refresh the whole interior true or false

Default values set by bob74_ipl

LoadDefault = function()
	DrugWarsFreakshop.Ipl.Exterior.Load()

	DrugWarsFreakshop.Door.Set(DrugWarsFreakshop.Door.closed, false)

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

    -- Disable the exterior
    DrugWarsFreakshop.Ipl.Exterior.Remove()

    -- Open the door garage inside
    DrugWarsFreakshop.Door.Set(DrugWarsFreakshop.Door.opened, true)
end)
Clone this wiki locally