[Release] esx_doorlock

No its a paid ymap and if i were to send it the i would be going against TOS of them

what ymap is it what is the name

image I am try to lock a custom door and here is my code for the lock and it doesnt seem to work. Can someone help me?
{

    objHash = GetHashKey('-147325430'),

    objCoords  = vector3(1070.26, 832.79, 5.48),

    textCoords = vector3(1070.26, 832.79, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

}

Unable to find actual name of prop, only thing i have is the Hash, not sure if that is the problem or what

is that vespucci pd cell area? If so I have the cells locked, however I cant find the prop name for the doors at the stairs and i want to lock those. Here is what I have on mine for the cells you can try this and see if it works
ā€“ Celldoor entrance 1

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1086.93, -829.79, 5.48),

    textCoords = vector3(-1086.93, -829.79, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 1

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1086.65, -827.52, 5.48),

    textCoords = vector3(-1086.65, -827.52, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 2

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1088.99, -824.66, 5.48),

    textCoords = vector3(-1088.99, -824.66, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 3

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1091.56, -821.1, 5.48),

    textCoords = vector3(-1091.56, -821.1, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 4

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1095.86, -819.71, 5.48),

    textCoords = vector3(-1095.86, -819.71, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 5

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1093.88, -823.03, 5.48),

    textCoords = vector3(-1093.88, -823.03, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 6

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1091.27, -826.37, 5.48),

    textCoords = vector3(-1091.27, -826.37, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

    

},

--cell 7

{

    objHash = GetHashKey('v_ilev_ph_cellgate'),

    objCoords = vector3(-1088.91, -829.42, 5.48),

    textCoords = vector3(-1088.91, -829.42, 5.48),

    authorizedJobs = {'police'},

    locked = true,

    maxDistance = 1.25

Hello everyone. Thanks for reading me, in first place.

This is my first post!! I need help with something that Iā€™m sure it has been asked a few times but I cant find the answer.

I want to make doors lockable for individual steamIDs instead of jobs. Iā€™ve made it work in the client.lua, but it isnt working server-side. Iā€™m pretty new at programming. How could I make that work?? Thank you very much for any help!

that because thats your hash u need to get obj name

here you go mate use this its all set up theres few things changed in client.lua and server.lua to make it work use the config layout i have
https://forum.cfx.re/uploads/short-url/eGtoZALuEcAnNNG3b22hhrePmZq.rar

Thank you so much mate! I will see it!

Is there a way to get the custom door name without having to pay for a program? Plebmasters doesnt have the prop name on it, i have been told by someone, that I would have to buy a program that costs 1500 to get the name.

Codewalker

code walker and it depends sometimes people change prop names so players cant lock them doors its a bit harder to find the custom name i had the same problem with my hospital doors

i have all these, if you need them then send me a pm

Hey!

I need some help with adding coords on any door on the map, example I want to be able to lock doors in the default apartments in-game. I am using codewalker to get the objectname and coords, but still it doesnt work.

This is what I have.
{
objName = ā€˜v_ilev_mp_high_frontdoorā€™,
objCoords = {x = -779.405, y = 317.8782, z = 223.3715},
textCoords = {x = -779.200, y = 317.400, z = 223.7400},
authorizedJobs = { ā€˜policecardā€™ },
distance = 1.5,
size = 0.3,
locked = true,
heading = 181.62
},
I am getting the ā€œlockā€ text in the middle of the door, but I canā€™t lock itā€¦ Any ideas?
Thank you for reading.

You gotta use objHash as variable instead of objName, also make sure ā€˜policecardā€™ is the name of the job you want to be authorized. E.g. /setjob 1 police 3, ā€˜policeā€™ being the job name in your database. Make sure you use database name. Also I think you gotta use objHeading instead of heading. Try that.

{
	objHash = '574422567',
	objCoords  = {x = -779.405, y = 317.8782, z = 223.3715},
	textCoords = {x = -779.200, y = 317.400, z = 223.7400},
	authorizedJobs = { 'police' },
	distance = 1.5,
	size = 0.3,
	locked = true,
	oheading = 181.62
},

Still no luck sadly, donā€™t know what is wrongā€¦


optimization
~ +/- when door cannot be seen 0.01ms/ when you see the door 0.10ms

please help me to add jobs to doorlock ?

Is there a way to make this work on a none esx sever ?

Is there a script with them I can break up the doors. Perhaps a crowbar script or something.