Hello i have 1 week now i cant add any door to work on my server i use the esx_doorlock.as police on police station i can lock unlock everything but i cant add anything else for example here is the unicorn
{
objName = ‘prop_magenta_door’,
objCoords = {x = 96.092, y = -1284.854, z = 29.438},
textCoords = {x = 95.392, y = -1284.854, z = 29.738},
authorizedJobs = { ‘unicorn’ },
locked = true,
distance = 2.5,
size = 1
},
{
objName = ‘prop_strip_door_01’,
objCoords = {x = 127.955, y = -1298.503, z = 29.419},
textCoords = {x = 128.500, y = -1298.053, z = 29.719},
authorizedJobs = { ‘unicorn’ },
locked = true,
distance = 10,
size = 2
},
Its not working i thought it was something with the job and i try also to change to job to police but still doesnt work !!!What i am doing wrong???
I had an issue with this earlier I found it was the model I was using. Try (if you have vMenu installed) open the developer tools and listing out the entity names and hashes. I was able to use the following to figure out which door I needed by name when using the hash in google:
Example: https://www.google.com/search?q=0xF82C9473&rlz=1C1CHBF_enUS768US768&oq=0xF82C9473&aqs=chrome..69i57.8557j0j4&sourceid=chrome&ie=UTF-8
The only other thing I can think of is the coords are quite lining up with the prop. Here is one I did earlier to an additional door in the PD:
-- Evidence Room
{
objName = 'v_ilev_ph_gendoor006',
objYaw = 0.0,
objCoords = vector3(477.68, -987.73, 24.91),
textCoords = vector3(477.71, -986.62, 24.91),
authorizedJobs = { 'police' },
locked = true
},
I stood in the door when making this using no clip to make sure I was in the door completely.
I am not for certain but that is how I did it, and it worked.