Skip to content

GTA V: Floyd's house

Bob74 edited this page Nov 2, 2018 · 2 revisions

Getting the main object to interact with the interior:

Floyd = exports['bob74_ipl']:GetFloydObject()

Coordinates

This interior can be found at:

X Y Z
-1150.703 -1520.713 10.633

Object structure

Floyd
  +-- interiorId
  +-- Style
  |   +-- normal
  |   +-- messedUp
  |   +-- Set(style, refresh)
  |   +-- Clear(refresh)
  +-- MrJam
  |   +-- normal
  |   +-- jammed
  |   +-- jammedOnTable
  |   +-- Set(mrJam, refresh)
  |   +-- Clear(refresh)
  +-- LoadDefault()

Style

Setting the interior's style:

Floyd.Style.Set(style, refresh)
Parameter Description Valid values
style Clean or messed up by Trevor Floyd.Style.normal or Floyd.Style.messedUp
refresh Refresh the whole interior true or false

Removing the interior's style:

Floyd.Style.Clear(refresh)

Mr. Jam

Setting Mr. Jam state:

Floyd.MrJam.Set(mrJam, refresh)
Parameter Description Valid values
mrJam Clean or messed up or messed up on the table Floyd.MrJam.normal or Floyd.MrJam.jammed or Floyd.MrJam.jammedOnTable
refresh Refresh the whole interior true or false

Default values set by bob74_ipl

LoadDefault = function()
    Floyd.Style.Set(Floyd.Style.normal)
    Floyd.MrJam.Set(Floyd.MrJam.normal)
    RefreshInterior(Floyd.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
    Floyd = exports['bob74_ipl']:GetFloydObject()

    -- Messed up house
    Floyd.Style.Set(Floyd.Style.messedUp)

    -- Messed up Mr Jam
    Floyd.MrJam.Set(Floyd.MrJam.jammed)

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