TGIANN
YoutubeDiscordTebexFivem
  • Main
    • Welcome
    • How to Find My Transaction ID
    • How can i download my script
    • How can i transfer my script
    • Whats escrow system?
    • Switching from MySQL Async to oxmysql
    • Basic Aces & Principals overview/guide
    • Using QB scripts in QBOX
    • How can i use Fivemanage
  • Common errors
    • SCRIPT ERROR: ?:-1: attempt to call a nil value
    • TGIANN-Core script is not in my keymaster account
    • You lack the required entitlement to use tgiann-*
    • Error parsing script / Failed to load script
    • Error: syntax error near '<\1>'
    • When I buy something, the money goes negative
    • Failed to verify protected resource
  • Map
    • lumi-delperropier
      • Setup
      • Conflicts
      • Disable NPC
      • Rcore Funfair Cords
      • CS-Hall Config
  • Scripts
    • tgiann-animpos-photo-cam
      • Editable Files
      • Config File
      • Exports
    • tgiann-self-storage-v2
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Config File
    • tgiann-radio
      • Guides
        • Recommended settings for PMA Voice
        • How to change the animation
      • Installation
      • Config file
      • Editable Files
        • Language File
        • Client Editable
        • Server Editable
      • Exports
    • tgiann-core
      • Config file
      • Exports
      • Integration
        • QB
          • DrawText
    • tgiann-lumihud
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • playerStatus.lua
          • qbclient.lua
          • editable.lua
          • moneyEditable.lua
          • harnessBeltEditable.lua
        • Server
          • qbserver.lua
          • editable.lua
      • Config Files
        • config.lua
        • configHudSettings
        • configWeaponList.lua
        • qbStressConfig
      • Integration
        • Notify
        • Progressbar
    • tgiann-realparking
      • Events / Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
      • Config Files
        • blipsConfig.lua
        • config.lua
        • impoundConfig.lua
        • insuranceConfig.lua
    • tgiann-vehicleshop
      • Exports
      • Editable Files
        • Language File
        • Client
          • editable.lua
        • Server
          • editable.lua
          • commands.lua
      • Config Files
    • tgiann-gps
      • Client Exports
      • Editable Files
        • config.lua
        • client/editable.lua
        • Language File
    • tgiann-clothing
      • Guides
        • Installation
          • ESX
          • QB
          • QBX
          • tgiann-inventory clothe items
        • Migration
        • How to take clothes images
      • Comman Proplems
      • Events / Exports
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • server/editable.lua
      • Configs
        • blacklist
          • famale.lua
          • male.lua
        • clotheList
          • global
            • female.lua
            • male.lua
        • clothingPrice
          • female.lua
          • male.lua
        • tattoo
          • customTattoo.lua
          • tattoo.lua
        • clothingRoomsOutfits.lua
        • config.lua
        • hairOverlays.lua
        • pedList.lua
    • tgiann-inventory
      • Guides
        • Installation
          • ESX
          • QB
          • QBOX
        • How to adapt your script
        • How do money as item
          • QB
          • QBOX
          • ESX
            • ESX V11
            • ESX V12
        • Creating Items
        • Item İmages
        • Item Metadata
        • Migration
      • Common Problems
      • Exports
        • Server
        • Client
      • Hooks
      • Events
        • Server
        • Client
      • Admin Commands
      • Editable Files
        • client/editable.lua
        • client/topheader.lua
        • server/editable.lua
        • server/commands.lua
        • server/convert.lua
      • Configs
        • config.lua
        • configAmmo.lua
        • configAntiSwimingItems
        • configAttachment.lua
        • configAttachmentName.lua
        • configBlockItems.lua
        • configCarryItems.lua
        • configClotheBackpack.lua
        • configCommands.lua
        • configCraft.lua
        • configDecayableItems.lua
        • configDrop.lua
        • configEditableItems.lua
        • configFilter.lua
        • configItemStash.lua
        • configMaxStack.lua
        • configMaxUseAmount.lua
        • configMetadata.lua
        • configMetadataAdvance.js
        • configRealisticArmor.lua
        • configShop.lua
        • configStashes.lua
        • configThrowableItems.lua
        • configVendingMachine.lua
        • configWeapon.lua
    • lumi-delperropier-texonstone
      • Setup
    • tgiann-antirpf
      • Editable files
    • tgiann-secondhand
      • Editable files
      • config.lua
    • tgiann-multicharacter + spawn selector
      • Guides
        • Installation
        • Discord Permmission integration
        • Tebex integration
      • Common Problems
      • Configs
        • config.lua
        • multicharConfig.lua
        • photocamConfig.lua
        • spawnSelectorConfig.lua
      • Editable Files
        • Language File
        • client/editable.lua
        • server/editable.lua
        • server/commands.lua
    • tgiann-attachment
      • Config file
      • Event List
    • tgiann-bank
      • Migration
      • Exports
      • Config files
        • config.lua
        • configGangAccounts.lua
        • configHacking.lua
        • configJob.lua
        • configJobAccounts.lua
      • Editable Files
    • tgiann-bettercombat
      • Config file
      • Event List
    • tgiann-bobcat
      • Config file
    • tgiann-boombox
      • Config file
    • tgiann-vehiclecontrol
      • Exports
      • Config file
      • Editable Files
    • tgiann-card
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-carhud
      • Config file
    • tgiann-carmod
      • Config file
      • Sql File
    • tgiann-chair
      • Config file
      • QB Core Item
    • tgiann-chopshop
      • Config file
      • QB Core Item
    • tgiann-damage-indicator
      • Config file
      • Editable files
    • tgiann-dna
      • Sql File
    • tgiann-document
      • Config file
      • QB Core Item
      • Ox Inventory Item
      • Sql File
    • tgiann-doorlock-v2
      • How can i find door model and other details
      • Config file
    • tgiann-dropweaponwhendie
      • Config file
    • tgiann-drugsell
      • Config file
    • tgiann-erpv2
      • Config file
    • tgiann-fallouthacker
      • Usage
    • tgiann-garage
      • Config file
      • Event List
      • Exports List
      • QB Sql File
      • ESX Sql File
    • tgiann-hotwire
      • Item List
      • Editable Files
        • Language File
        • Client/editable.lua
        • Client/migrate.lua
        • Server/commands.lua
      • Config file
      • Exports
    • tgiann-house
      • Stash Function
      • Common errors
      • Config file
      • Event List
      • Sql File
      • Editable Files
    • tgiann-hud
      • Config file
    • tgiann-hudv2
      • Config file
      • Event List
    • tgiann-job
      • Config file
      • Sql File
    • tgiann-market
      • Editable Files
      • Config file
      • Sql File
    • tgiann-mdt
      • Config file
      • ESX Sql File
      • QB Sql File
    • tgiann-megaphone
      • Setup
        • QB Core Item
        • Ox Inventory Item
      • Language File
      • Config file
      • Event List
      • Exports List
      • Recommended PMA Voice Settings
      • Common Problems
    • tgiann-moder-hud
      • Config file
      • Editable files
      • Event list
    • tgiann-naked
      • Config file
      • Editable Files
      • Sql File
      • Wrong Clothes
    • tgiann-platechanger
      • Config file
    • tgiann-policealert
      • Config file
      • Event List
    • tgiann-postcard
      • Editable Files
      • Config file
      • QB Core Item
      • Ox Inventory Item
    • tgiann-radio (Old)
      • Common errors
      • Config file
      • Event List
      • Exports List
      • Recommended settings for PMA Voice
    • tgiann-rentscooter
      • Config file
    • tgiann-sblauncher
      • Config file
      • QB Core Item
    • tgiann-self-storage
      • Config file
      • Editable files
      • Sql File
    • tgiann-exit-log
      • Config file
      • Editable files
    • tgiann-weapons-on-back
      • Config file
      • Editable files
    • tgiann-sellnpc
      • Config file
    • tgiann-smokegrenade
      • Config file
    • tgiann-sounds
      • Example Usage
    • tgiann-stashhouse
      • Config file
      • Sql File
    • tgiann-statushud
    • tgiann-vehicleoutfit
      • Config file
      • Sql File
    • tgiann-vehicleradio
      • Config file
      • Event list
    • tgiann-vehicleshop
      • Config file
      • Sql File
    • tgiann-trade
      • Config file
      • Server editable.lua
      • Client editable.lua
    • tgiann-zombie
      • Config file
      • Client editable.lua
      • Server editable.lua
      • Common errors
    • tgiann-planting
      • Config file
      • Editable Files
    • tgiann-realistic-car-crash
      • Config file
      • Editable Files
    • tgiann-graphic-menu
      • Config file
      • Editable Files
    • tgiann-firefighterjob
      • Installation
      • Config file
      • Editable Files
    • tgiann-coinshop
      • Config file
      • Editable Files
    • tgiann-vehiclepaint
      • Config file
      • Setup
    • tgiann-drone
      • Config file
      • Editable Files
    • tgiann-musical-chairs
      • Config file
      • Editable Files
    • tgiann-pursuitmode
      • Config file
      • Editable Files
    • tgiann-food-jobs
      • Config file
      • Editable Files
      • Example Location Config
Powered by GitBook
On this page
  1. Scripts
  2. tgiann-house

Config file

The number of houses in the original config file is much higher

--[[ 
    - this script needs tgiann-core script to work, you can download the script from your keymaster account
      Start tgiann-core script after es_extented/qb-core script and before tgiann-* scripts
      Adjust the tgiann-core config file according to the framework you are using
    
      Client Event List
        "tgiann-house:firstLoginControl" | loads player's houses | teleports the player back to the house if the player left the game inside the house
            TriggerEvent("tgiann-house:firstLoginControl")
]]

-- if you want to add extra mlo please check interiorData.lua

tgiCoreExports = exports["tgiann-core"]
Config = tgiCoreExports:getConfig()
Config.test = true -- activates some test features(dev fatures invite yourself into your own home)
Config.command = "house" -- Open blips command
Config.raidCommandEnable = false -- can polices use raid command
Config.lockVehicleInGarage = false -- locks the doors of vehicle in the garage

--If set to true the player can only put own vehicle in the garage
--If it is false, players can put NPC cars and their own cars in the garage
Config.justStoreOwnVehicle = false 

Config.policeJobs = {"police", "police2"}
Config.autoSpawnHouseWhenJoiningGame = true -- if the player was last inside the house, when he enters the game, the player is teleported into the house
Config.useOxInventory = false -- https://github.com/overextended/ox_inventory
Config.Realestate = {
    active = false,
    jobs = {
        "realestate",
    }
}
Config.disableQbApartments = false --if you are not using qb-apartments set this to true
Config.useTgiannGarage = false --https://forum.cfx.re/t/tgiann-garage-car-heli-boat-impound-job/4963338

Config.PlayerMaxHouse = { -- maximum number of houses the player can buy
    active = false,
    number = 3,
}

if Config.framework == "esx" then
    Config.vehicleTableName = "owned_vehicles"
elseif Config.framework == "qb" then
    Config.vehicleTableName = "player_vehicles"
end
Config.blackListVehicles = {
    `police`,
    `police2`,
    `police3`,
}
Config.blackListVehiclesClass = { -- https://docs.fivem.net/natives/?_0x29439776AAA00A62
    10, --Industrial  
    14, --Boats  
    15, --Helicopters  
    16, --Planes  
    17, --Service  
    18, --Emergency  
    19, --Military 
    21, --Trains  
}

Config.text = {
    ["house"] = "House",
    ["apartment"] = "Apartment",
    ["myHouse"] = "My House",
    ["doorKey"] = "[E]",
    ["garage"] = "Garage",
    ["settings"] = "House Settings",
    ["alreadyBuyed"] = "The house has already been bought by someone else",
    ["boughtHouse"] = "You bought the house",
    ["dontHaveKey"] =  "You don't have the key to the house",
    ["noMoney"] = "You don't have enough money",
    ["noBodyOutside"] = "There is no one outside",
    ["farToDoor"] = "You're too far from the door",
    ["inviteTimeOut"] = "Invite timed out",
    ["invitedHouse"] = "You are invited to the house press ~INPUT_PICKUP~ to accept",
    ["noOneNear"] = " There is no one near",
    ["alreadyHasKey"] = "The player already has the key",
    ["takenHouseKey"] = "You got the house key",
    ["giveHouseKey"] = "You gave the key to the house",
    ["resetHouseKey"] = "House key renewed",
    ["transferHouse"] = "You transfered the house",
    ["handoverHouse"] = "You took handover of the house",
    ["garageFull"] = "Garage is full",
    ["garageExit"] = "Exit the garage",
    ["garageBlacklist"] = "You can't park this car in the garage",
    ["garageError"] = "This vehicle belongs to someone else",
    ["storage"] = "Storage",
    ["wardrobe"] = "Wardrobe",
    ["needApertName"] = "You have to write the name of the apartment room",
    ["apertNotFound"] = "Apartment not found",
    ["notFoundDoor"] = "There is no house door near",
    ["noMoreBuy"] = "You can't buy more houses",

    --ESX Wardrobe
    ["pclot"] = "Player Clothing",
    ["playerClothes"] = "Clothes",
    ["removeCloth"] = "Remove Clothes"
}
Config.UItext = {
    ["houseBuyButtonMenuLeftText"] = "İLANLAR ARASINDA KAYBOLMAYIN!<br />ED EMLAK İŞİNİZİ KOLAYLAŞTIRMAK İÇİN VAR!",
    ["carSlots"] = "Car Slots",
    ["redBoxFeatureshtml"] = "Features",
    ["areyousure"] = "Are You Sure?",
    ["areyousureyes"] = "Yes",
    ["areyousureno"] = "No",
    ["inspectGarageText"] = "Inspect the Garage",
    ["inspectHouseText"] = "Inspect the House",
    ["buyHouseText"] = "BUY",
    ["houseInviteText"] = "INVITE IN",
    ["houseGarageText"] = "GARAGE",
    ["houseHouseText"] = "HOUSE",
    ["houseLeaveText"] = "LEAVE",
    ["houseRaidText"] = "RAID",
    ["housekeyshtml"] = "House Keys",
    ["houseGiveKeyText"] = "GIVE KEY",
    ["houseResetKeyText"] = "RESET KEYS",
    ["houseTransferText"] = "TRANSFER HOUSE",
    ["pricehtml"] = "Price",
    ["houseSellText"] = "Sell",
    ["viewhtml"] = "View",
    ["buyhtml"] = "Buy",
    ["Strip"] = "Strip",
    ["Booze"] = "Booze",
    ["Smoke"] = "Smoke",
    ["Style"] = "Style",
    ["none"] = "none",
    ["stage1"] = "stage1",
    ["stage2"] = "stage2",
    ["stage3"] = "stage3",
    ["modern"] = "modern",
    ["moody"] = "moody",
    ["vibrant"] = "vibrant",
    ["monochrome"] = "monochrome",
    ["seductive"] = "seductive",
    ["regal"] = "regal",
    ["aqua"] = "aqua",
    ["B"] = "B",
    ["A"] = "A",
    ["C"] = "C",
    ["dollar"] = "$"
}
Config.key = {
    door = 38 --If you don't know what it's for, don't change it.
}
-- Stash size by house star(only works in qb and ox inventory)
Config.QBStorageData = {
    [1] = {maxweight = 150000, slots = 50},
    [2] = {maxweight = 150000, slots = 50},
    [3] = {maxweight = 150000, slots = 50},
    [4] = {maxweight = 150000, slots = 50},
    [5] = {maxweight = 150000, slots = 50},
}
--selling price of the house
Config.sellPercent = 0.5 -- max 1.0 (0.5 = %50)
--prices for home settings menu
Config.settingsPrice = {
    ["GetGTAOHouseLow1Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseMid1Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi8Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi7Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi6Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi5Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi4Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi3Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi2Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOHouseHi1Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOApartmentHi2Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetGTAOApartmentHi1Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetHLApartment1Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetHLApartment2Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetHLApartment3Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetHLApartment4Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetHLApartment5Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetHLApartment6Object"] = { Strip = 100, Booze = 100, Smoke = 100},
    ["GetExecApartment1Object"] = { Strip = 100, Booze = 100, Smoke = 100, Style = 100},
    ["GetExecApartment2Object"] = { Strip = 100, Booze = 100, Smoke = 100, Style = 100},
    ["GetExecApartment3Object"] = { Strip = 100, Booze = 100, Smoke = 100, Style = 100},
}

--[[ 
House List
    GetGTAOHouseLow1Object
    GetGTAOHouseMid1Object
    GetGTAOHouseHi8Object
    GetGTAOHouseHi7Object
    GetGTAOHouseHi6Object
    GetGTAOHouseHi5Object
    GetGTAOHouseHi4Object
    GetGTAOHouseHi3Object
    GetGTAOHouseHi2Object
    GetGTAOHouseHi1Object
    GetGTAOApartmentHi2Object
    GetGTAOApartmentHi1Object
    GetHLApartment1Object
    GetHLApartment2Object
    GetHLApartment3Object
    GetHLApartment4Object
    GetHLApartment5Object
    GetHLApartment6Object
    GetExecApartment1Object
    GetExecApartment2Object
    GetExecApartment3Object
    Motel1

Garage List
    2cargarage
    6cargarage
    10cargarage
]]

Config.houseList = {
    {
        name = "Buen Vino No.1",
        price = 5000000,
        star = 5,
        doorCoord = vector3(-2587.9123535156, 1910.99609375, 167.49885559082),
        garageDoorCoord = vector3(-2596.3701171875, 1930.056640625, 167.3076171875),
        garageDoorCoordH = 272.62,
        garage = "10cargarage",
        interior = "GetExecApartment2Object",
        features = {
            { label = "Ultra-luxury", exist = true},
            { label = "Pool", exist = true},
            { label = "Sound insulation", exist = true},
            { label = "Garden", exist = true},
            { label = "Garage", exist = true},
            { label = "landscape", exist = true},
            { label = "Fast Internet", exist = false},
            { label = "Editable Interior Design", exist = false},
            { label = "Safe Neighborhood", exist = false},
        }        
    },
    {
        name = "Buen Vino No.2",
        price = 2000000,
        star = 5,
        doorCoord = vector3(-2797.71875, 1431.6716308594, 100.92834472656),
        garageDoorCoord = vector3(-2785.7995605469, 1432.1091308594, 100.92834472656),
        garageDoorCoordH = 231.92,
        garage = "10cargarage",
        interior = "GetExecApartment1Object",
        features = {
            { label = "Ultra-luxury", exist = true},
            { label = "Pool", exist = true},
            { label = "Sound insulation", exist = true},
            { label = "Garden", exist = true},
            { label = "Garage", exist = true},
            { label = "landscape", exist = true},
            { label = "Fast Internet", exist = false},
            { label = "Editable Interior Design", exist = false},
            { label = "Safe Neighborhood", exist = false},
        }        
    },
    {
        name = "Lake Vinevood No.1",
        price = 3000000,
        star = 5,
        doorCoord = vector3(-113.16439819336, 985.90258789063, 235.75413513184),
        garageDoorCoord = vector3(-126.29237365723, 1004.4746704102, 235.73233032227),
        garageDoorCoordH = 197.73,
        garage = "10cargarage",
        interior = "GetExecApartment2Object",
        features = {
            { label = "Ultra-luxury", exist = true},
            { label = "Pool", exist = true},
            { label = "Sound insulation", exist = true},
            { label = "Garden", exist = true},
            { label = "Garage", exist = true},
            { label = "landscape", exist = true},
            { label = "Fast Internet", exist = false},
            { label = "Editable Interior Design", exist = false},
            { label = "Safe Neighborhood", exist = true},
        }        
    },
    {
        name = "Lake Vinevood No.2",
        price = 1700000,
        star = 5,
        doorCoord = vector3(-85.728935241699, 834.73004150391, 235.92039489746),
        garageDoorCoord = vector3(-105.24000549316, 825.44500732422, 235.72494506836),
        garageDoorCoordH = 6.37,
        garage = "10cargarage",
        interior = "GetExecApartment1Object",
        features = {
            { label = "Cheap price", exist = false},
            { label = "Pool", exist = true},
            { label = "Sound insulation", exist = true},
            { label = "Garden", exist = true},
            { label = "Garage", exist = true},
        }        
    },
}

garageSlots = {
    ["2cargarage"] = {
        {coord = vector3(171.99758911133, -1004.0054931641, -99.270095825195), h = 179.2},
        {coord = vector3(175.35864257813, -1004.2197875977, -99.270172119141), h = 179.2},
    },
    ["6cargarage"] = {
        {coord = vector3(203.51440429688, -1003.9301757813, -99.417579650879), h = 176.2},
        {coord = vector3(203.74116516113, -997.87878417969, -99.414512634277), h = 176.2},
        {coord = vector3(198.36294555664, -1003.6122436523, -99.414512634277), h = 176.2},
        {coord = vector3(198.81988525391, -997.17352294922, -99.413627624512), h = 176.2},
        {coord = vector3(193.47421264648, -1003.2808837891, -99.414512634277), h = 176.2},
        {coord = vector3(193.61109924316, -996.55456542969, -99.414512634277), h = 176.2},
    },
    ["10cargarage"] = {
        {coord = vector3(233.44883728027, -1000.6386108398, -99.563087463379), h = 90.2},
        {coord = vector3(233.3602142334, -997.18365478516, -99.563079833984), h = 90.2},
        {coord = vector3(233.2492980957, -992.80401611328, -99.56307220459), h = 90.2},
        {coord = vector3(233.33786010742, -988.88641357422, -99.563087463379), h = 90.2},
        {coord = vector3(233.36799621582, -984.63739013672, -99.563102722168), h = 90.2},
        {coord = vector3(223.49592590332, -984.54559326172, -99.563102722168), h = 273.2},
        {coord = vector3(223.61753845215, -988.46044921875, -99.563110351563), h = 273.2},
        {coord = vector3(223.76684570313, -992.30108642578, -99.563064575195), h = 273.2},
        {coord = vector3(224.03680419922, -996.47802734375, -99.563102722168), h = 273.2},
        {coord = vector3(224.28117370605, -1000.4204711914, -99.563171386719), h = 273.2},
    },
}
PreviousCommon errorsNextEvent List

Last updated 1 year ago