SCode Software
Tebex StoreSiberWin StudiosCFX.REDiscord
  • Welcome to SCode!
  • General Information
  • Common Questions
  • SCRIPTS
  • ⭐SCode Home
    • 1️⃣Installation
    • 2️⃣SQL - Database Installation
    • ⚙️Configuration
  • ⭐SCode Caravan
    • 💻Installation
    • ⚙️Configuration
  • ⭐SCode Police Callsign
    • 💻Installation
    • ⚙️Configuration
  • ⭐SCode Drawtext UI
    • 💻Installation
    • ⚙️Configuration
    • 💻Usage Examples
    • 💻Practical Examples
  • ⭐SCode Freecam
    • 💻Installation
    • ⚙️Configuration
  • MAP - MLO
    • 🧩Lake Houses
    • 🧩Mirror Park GangHouse
    • 🧩South Side HOOD
Powered by GitBook
On this page
  • Config Settings
  • Pricing and Fees
  • Inventory and Items
  • Blip and Command Settings
  • Events and Timing
  • Stash Settings
  • Rent Settings
  • Locations and Rendering
  • Controls
  • Wardrobe Settings
  • House Details
  1. SCode Home

Configuration

Configuration of SCode Home Resource

Config Settings

Language Setting

  • Config.Locale: 'en'

    • Language setting for the configuration.

QB-Target Setting

  • Config.UseQBTarget: false

    • Set to true to use QB-Target, or false for normal text UI.

UI Settings

  • Config.UIDrawText: true

    • Determines if UI text should be drawn.

Metadata Usage

  • Config.MetaData: true

    • Enables or disables metadata usage.

Billing Label

  • Config.BillingLabel: 'HomeBill'

    • Label used for billing purposes.


Pricing and Fees

Price Ratio

  • Config.PriceRatio: 2

    • Ratio used for price calculations.

Replacement Key Removal Fee

  • Config.ReplacementKeyRemovalFee: 2250 (in dollars).

    • Fee for removing a replacement key.

  • Config.ReplacementKeyRemovalFeePaymentMethod: 'bank'

    • Payment method for the key removal fee (bank or cash).


Inventory and Items

Save Inventory Stash Name

  • Config.SaveInventoryStashName: 'HouseStash'

    • Name of the inventory stash for saving.

House Key Item

  • Config.HouseKeyItem: 'housekeys'

    • Item name for house keys.


Blip and Command Settings

Create Blip Command

  • Config.MyHouseCreateBlipCommand: 'myhouse'

    • Command to create a blip for the house.

House Blip Settings

  • Config.HouseBlip:

    • BlipId: 492

    • Color: 2

    • Scale: 0.65

    • BlipText: 'My House'


Events and Timing

QB-Phone Mail Event

  • Config.QBPhoneMailEvent: 'qb-phone:server:sendNewMailToOffline'

    • Event for sending mail via QB-Phone.

Billing Period

  • Config.BillingPeriod: 50 seconds.

    • Billing period in seconds.

Invoice Control Date

  • Config.InvoiceControlDate:

    • Hour: 12

    • Minute: 00


Stash Settings

Inventory Version

  • Config.UseNewInventory: true

    • Set to true if using the new QB-inventory; otherwise, false.

Stash Configuration

  • Config.StashSettings:

    • maxweight: 2000000 (maximum weight for the stash).

    • slots: 100 (number of stash slots).


Rent Settings

Rent Time

  • Config.RentTime:

    • type: 'hours' (can be 'days' or 'hours').

    • value: 1 (number of days or hours).

Rent Payment Method

  • Config.RentPayMethod: 'bank'

    • Payment method for rent (bank or cash).


Locations and Rendering

NPC Location

  • Config.Locations.npc:

    • coords: vector4(794.66, 4143.68, 32.74, 269.0) (coordinates for the NPC).

    • model: 'mp_m_securoguard_01' (NPC model).

Exit Location

  • Config.Locations.exit:

    • coords: vector4(796.55, 4143.65, 33.74, 89)

    • Note: Do not change this setting.

Render Distance

  • Config.RenderDistance: 500.0

    • Distance for rendering textures.

Marker Color

  • Config.MarkerColor:

    • r: 57

    • g: 125

    • b: 199

    • a: 0.9 (color settings for markers).


Controls

Key Bindings

  • Config.Controls:

    • OpenHouseBuyMenuControl: 38 (key for opening the house buy menu).

    • OpenStashControl: 38 (key for opening the stash).

    • OpenWardrobeControl: 38 (key for opening the wardrobe).

    • ManagementMenuOpenControl: 38 (key for opening the management menu).

    • DoorLockControlKey: 38 (key for locking the door).

    • OpenStashLockControl: 182 (key for opening the stash lock).

UI Controls

  • Config.UIControls:

    • OpenHouseBuyMenuControl: '[E]' (UI prompt for opening the house buy menu).

    • OpenWardrobeControl: '[E]' (UI prompt for opening the wardrobe).

    • ManagementMenuOpenControl: '[E]' (UI prompt for opening the management menu).

    • OpenStashLockControl: '[L]' (UI prompt for opening the stash lock).

    • OpenDoorLockControl: '[E]' (UI prompt for locking the door).


Wardrobe Settings

Wardrobe Event

  • Config.Wardrobe:

    • EventType: 'client' (type of event for the wardrobe).

    • EventName: 'qb-clothing:client:openOutfitMenu' (event name for opening the outfit menu).


House Details

House Example

  • Config.Houses[1]:

    • Street: 'Home 1 / Lake House' (street name for the house).

    • Owner: nil (owner of the house).

    • KeyData: nil (key data for the house).

    • CameraView: vector4(793.97, 4144.61, 37.19, 144) (camera view coordinates).

    • Rentable: true (house is rentable).

    • Purchasable: true (house is purchasable).

    • AutoLock: true (door automatically locks).

    • HouseCenterCoord: vector3(787.04, 4135.05, 31.45) (center coordinates of the house).

    • HouseManagementMenuCoord: vector3(775.85, 4113.48, 34.23) (management menu coordinates).

    • RentPrice: 100 (rental price of the house).

    • HousePrice: 1002000 (sale price of the house).

    • Wardrobe: vector3(772.43, 4126.91, 33.23) (wardrobe coordinates).

    • HouseDoors:

      • DoorHash: -2041685008

      • DoorCoord: vector3(783.02, 4125.22, 34.36) (door hash and coordinates).

      • DoorHash: -2041685008

      • DoorCoord: vector3(782.27, 4112.68, 34.35) (door hash and coordinates).

    • HouseStash:

      • StashCoord: vector3(772.82, 4118.91, 34.23) (stash coordinates).

      • StashLock: true (stash lock status).

PreviousSQL - Database InstallationNextSCode Caravan

Last updated 3 months ago

⭐
⚙️
Page cover image