Use the TASK_PLAY_ANIM
native
I am trying to lock some doors for “Extended Sandy PD [SP / FiveM] 2.0” and I keep having a problem with a few of the doors doing this…
no matter what I set the yaw to in the esx_doorlock config.lua for these doors the doors gets stuck like this. I have this happening on a few of the doors in this ymap but not all. Any suggestions?
Oh and if I remove the settings for the door it goes back to normal but if I add it in again with different settings for the yaw it goes back to the same spot and wont change.
can u send me your code that u put into the esx_doorlock
Solved it I think. I was using an older version of esx_doorlock that was edited to work with another map on on I was using. I had been editing that version so I downloaded the new version here and it seems to be working now.
Yo, Anyone knows how can i lock 2 doors with one stroke ? for example : MRPD front doors
hello, I’m using latest version, I’m using lots of doors and the script is having high ms, like 3-4 Ms, anyone know why?
What you mean can you show me example
What you mean it has high ms
?
Those 2 for example.
i want to close them with one keycoord insted of 2 locked/unlocked coords/buttons
I have Community Mission Row PD MLO so I wanted to add a couple of doors and when I did it, all doors stopped work. Can you please help me?
what you mean doors stopped working
I dont know it doesnt happen to me do you have newest version??
Lock/unlock function doesn’t work
this is the code i use and it has one word “locked” in middle , change the coords and the door names let me know if it works
{
textCoords = vector3(434.7, -982.0, 31.5),
authorizedJobs = {'police'},
locked = false,
maxDistance = 2.5,
doors = {
{objHash = GetHashKey('v_ilev_ph_door01'), objHeading = 270.0, objCoords = vector3(434.7, -980.6, 30.8)},
{objHash = GetHashKey('v_ilev_ph_door002'), objHeading = 270.0, objCoords = vector3(434.7, -983.2, 30.8)}
}
},
do you get any error ?
its a problem in your config you are missing a “,” or a “()” send me what u have added
I put exactly same thing as you and just edidted door id and coords