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-doorlock-v2

Config file

--[[ 
Arguments
model: Door Model Hash [int] - required
	mdeol = -1547307588
doorCoord: coordinate of the door [vector3/table] - required
	doorCoord = vector3(440.73919677734, -998.74621582031, 30.81530380249)
	doorCoord = {x = 440.73919677734, y = -998.74621582031, z = 30.81530380249}
textDistance: distance the text will appear [float/int] - not required(Default: 1.8)
	textDistance = 2
	textDistance = 2.2
changeTextPosition: text position changes from right to left or left to right [bool](Default: true)
	changeTextPosition = true
	changeTextPosition = false
customTextPosition: set text position [false/vector3](Default: false)
	customTextPosition = false
	customTextPosition = vector3(0.0, 1.0, 0.0)
autolock: Whether the door is locked or not when the server is started [boolen] - not required(Default: false)
	autolock = true
	autolock = false
id: accessing the door with steam or license id [table] - not required(Default: {})
	id = {'steam:11000011374d4e0', 'steam:1110223374s4a0'}
	id = {'steam:11000011374d4e0'}
job: accessing the door with jobs system (required esx or qb) [table] - not required(Default: {})
	job = {'police', 'ambulance'}
	job = {'police'}
aceperm: accessing the door with ace perm system - not required(Default: {})
	aceperm = {'group.police', 'group.ambulance'}
	aceperm = {'group.police'}
discord: accessing the door with discord role system - not required(Default: {})
		required discordroles script - https://github.com/sadboilogan/discordroles
	discord = {'640894803080642570', '240864823081642572'}
	discord = {'640894803080642570'}
items: accessing the door with items (required esx or qb) [table] - not required(Default: {})
	items = {item = "itemname", count=1, remove = true}
	items = {item = "itemname", count=1, remove = false}
autoLockTime: automatic closing time of the door after the door is opened [int/false] - not required(Default: false)
	autoLockTime = 60000 -- 1 minute

note: those who do not have access to the door cannot see the texts

--Example Normal Door
{
    model = -1547307588,
    doorCoord = vector3(440.73919677734, -998.74621582031, 30.81530380249),
    textDistance = 1.8,
    autolock = true,
    id = {'steam:11000011374d4e0', 'steam:1110223374s4a0'},
	job = {'police', 'ambulance'},
	items = {item = "itemname", count=1, remove = true},
	autoLockTime = 200
}

--Example Double Door
{
	type = "double",
	modelLeft = -288803980,
	doorCoordLeft = vector3(438.20, -996.32, 30.82),
	modelRight = -288803980,
	doorCoordRight = vector3(438.20, -993.91, 30.82),
	textDistance = 2.8,
	job = {'police'}
},

--Example Sliding Door
{
    model = -1603817716,
    doorCoord = vector3(488.8948059082, -1017.2099609375, 27.145839691162),
    textDistance = 8.0,
    autolock = true,
    type = "sliding",
    id = {},
	job = {'police', 'ambulance'},
},

]]

framework = "esx" -- "esx" -- false - "esx" - "qb"
useMythicNotif = false -- https://github.com/JayMontana36/mythic_notify
setDoorHeading = false -- automatically adjusts its heading when doors are locked
esxgetSharedObjectEventName = "esx:getSharedObject"
qbCoreScriptName = "qb-core"
strings = {
	["DLocked"] = "Door Locked!",
	["DUnlocked"] = "Door Unlocked!",
	["Locked"] = "~w~Locked",
	["Unlocked"] = "~w~Unlocked",
	["E"] = "[E]",
	["greenColor"] = "~g~",
	["redColor"] = "~r~",
	["autoLock"] = "The door will auto lock after %s seconds",
	["noItem"] = "You do not have the required item",
	["noPerm"] = "You are not authorized"
}
OpenKey = 38 -- E
testCommands = true
 --/showid -- Show identifier
 --/doordata -- Get closest door data


--r: the radius of the area where the doors are
area = {
	{areaName = "mission-row-pd", coords = vector3(450.0, -978.0, 25.0), r = 100},
	{areaName = "hospital", coords = vector3(325.66, -576.31, 43.43), r = 100},
}

doorList = {
	["mission-row-pd"] = {
		-- PD Otopark Tarafı Çift Kapı
		{
			type = "double",
			modelLeft = -1547307588,
			doorCoordLeft = vector3(440.73919677734, -998.74621582031, 30.81530380249),
			modelRight = -1547307588,
			doorCoordRight = vector3(443.06176757812, -998.74621582031, 30.81530380249),
			textDistance = 2.8,
			job = {'police'},
			aceperm = {'group.police'},
			discord = {'640894803080642570', '240864823081642572'},
			items = {item = "chair1", count = 1, remove = false}
		},
		-- PD Press Room
		{
			type = "double",
			modelLeft = -288803980,
			doorCoordLeft = vector3(438.20, -996.32, 30.82),
			modelRight = -288803980,
			doorCoordRight = vector3(438.20, -993.91, 30.82),
			textDistance = 2.8,
			job = {'police'},
			autoLockTime = 10000,
		},
		-- PD Lobi sağ
		{
			model = -96679321,
			doorCoord = vector3(440.52008056641, -986.23345947266, 30.823192596436),
			textDistance = 1.8,
			autolock = true,
			id = {"c16d8191f1855aaaa21d1660b4168e373842eb5a"},
			changeTextPosition = false,
			autoLockTime = 10000,
		},
		-- PD Lobi Sol
		{
			model = -1406685646,
			doorCoord = vector3(440.52008056641, -977.60107421875, 30.823192596436),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--PD Arkadan Giriş
		{
			type = "double",
			modelLeft = -1547307588,
			doorCoordLeft = vector3(455.88616943359, -972.25427246094, 30.815307617188),
			modelRight = -1547307588,
			doorCoordRight = vector3(458.20874023438, -972.25427246094, 30.815307617188),
			textDistance = 2.8,
			job = {'police'},
		},
		-- Boss Ofis
		{
			model = -96679321,
			doorCoord = vector3(458.65432739258, -990.64978027344, 30.823192596436),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Çatı Girişi
		{
			model = -692649124,
			doorCoord = vector3(464.30856323242, -984.52844238281, 43.771240234375),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Otopark Girişi 1
		{
			model = 1830360419,
			doorCoord = vector3(464.15655517578, -997.50927734375, 26.370704650879),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--PD Otopark tarfı çift 1
		{
			model = -288803980,
			doorCoord = vector3(469.92736816406, -1000.5437011719, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = -288803980,
			doorCoord = vector3(467.52221679688, -1000.5437011719, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--PD Otopark tarfı çift 2
		{
			model = -1406685646,
			doorCoord = vector3(471.37530517578, -985.03192138672, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = -96679321,
			doorCoord = vector3(471.37530517578, -987.43737792969, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--PD Alt Kat Arka Giriş
		{
			model = -692649124,
			doorCoord = vector3(469.7743, -1014.4060058594, 26.483816146851),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = -692649124,
			doorCoord = vector3(467.36862182617, -1014.4060058594, 26.483816146851),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--PD Alt Kat Arka Önü
		{
			model = 149284793,
			doorCoord = vector3(471.36785888672, -1007.7933959961, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = 149284793,
			doorCoord = vector3(471.37582397461, -1010.1978759766, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Otopark Girişi 2
		{
			model = 1830360419,
			doorCoord = vector3(464.15905761719, -974.66558837891, 26.370704650879),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Evidance
		{
			model = -692649124,
			doorCoord = vector3(475.83233642578, -990.48394775391, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- İdentification
		{
			model = 149284793,
			doorCoord = vector3(478.28915405273, -997.91009521484, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Sorgu 1 Sağ
		{
			model = -1406685646,
			doorCoord = vector3(482.67013549805, -987.57916259766, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Sorgu 2 Sağ
		{
			model = -1406685646,
			doorCoord = vector3(482.67025756836, -995.728515625, 26.40548324585),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- Lineup
		{
			model = -288803980,
			doorCoord = vector3(479.05996704102, -1003.1729736328, 26.406503677368),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		-- cells
		{
			model = -53345114,
			doorCoord = vector3(481.00836181641, -1004.117980957, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		{
			model = -53345114,
			doorCoord = vector3(484.17642211914, -1007.734375, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		{
			model = -53345114,
			doorCoord = vector3(486.91311645508, -1012.188659668, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		{
			model = -53345114,
			doorCoord = vector3(483.91271972656, -1012.188659668, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		{
			model = -53345114,
			doorCoord = vector3(480.9128112793, -1012.188659668, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		{
			model = -53345114,
			doorCoord = vector3(476.61569213867, -1008.8754272461, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		{
			model = -53345114,
			doorCoord = vector3(477.91259765625, -1012.188659668, 26.480054855347),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--processing
		{
			model = -288803980,
			doorCoord = vector3(475.95385742188, -1006.9378051758, 26.406385421753),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--mugshot
		{
			model = -1406685646,
			doorCoord = vector3(475.95385742188, -1010.8193359375, 26.406385421753),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'police'}
		},
		--PD Arka Dış Sürgülü
		{
			model = -1603817716,
			doorCoord = vector3(488.8948059082, -1017.2099609375, 27.145839691162),
			textDistance = 8.0,
			autolock = true,
			type = "sliding",
			id = {},
			job = {'police'}
		},
	},
	["hospital"] = {
		{
			model = 854291622,
			doorCoord = vector3(307.12, -569.57, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance', 'police'}
		},
		{
			model = -434783486,
			doorCoord = vector3(312.01, -571.34, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = -1700911976,
			doorCoord = vector3(314.42, -572.22, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance', 'police'}
		},
	
		{
			model = -434783486,
			doorCoord = vector3(317.84, -573.47, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = -1700911976,
			doorCoord = vector3(320.26, -574.35, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance', 'police'}
		},
	
		{
			model = -434783486,
			doorCoord = vector3(323.24, -575.43, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {}
		},
		{
			model = -1700911976,
			doorCoord = vector3(325.66, -576.31, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance', 'police'}
		},
		{
			model = 854291622,
			doorCoord = vector3(340.78, -581.82, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance', 'police'}
		},
		{
			model = 854291622,
			doorCoord = vector3(339.0, -586.70, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance', 'police'}
		},
		{
			model = 854291622,
			doorCoord = vector3(313.48, -595.46, 43.43),
			textDistance = 1.8,
			autolock = true,
			id = {},
			job = {'ambulance'}
		},
	},
}
PreviousHow can i find door model and other detailsNexttgiann-dropweaponwhendie

Last updated 2 years ago