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'}
},
},
}
Last updated