Do you know how to change the key (e) to unlock and lock?
Look for the ā CHANGE THIS VALUE HERE
if IsControlJustPressed(1,51) then -- CHANGE THIS VALUE HERE.
if doorList[i]["locked"] == true then
FreezeEntityPosition(closeDoor, false)
if(i==10 or i==11) then
doorList[10]["locked"] = false
doorList[11]["locked"] = false
elseif(i==12 or i==13) then
doorList[12]["locked"] = false
doorList[13]["locked"] = false
else
doorList[i]["locked"] = false
end
else
FreezeEntityPosition(closeDoor, true)
if(i==10 or i==11) then
doorList[10]["locked"] = true
doorList[11]["locked"] = true
elseif(i==12 or i==13) then
doorList[12]["locked"] = true
doorList[13]["locked"] = true
else
doorList[i]["locked"] = true
end
end
end
else
FreezeEntityPosition(closeDoor, doorList[i]["locked"])
end
Thanks your the best
Right now nobody has released a server-sided part of the script. So for people unable to code in lua etc, this is only client-sided. Meaning everyone sees it but if one person locks it, it is only locked for them and not anyone else. And to answer your other question, if you donāt add a whitelisting aspect to it then anyone can unlock or lock them.This is assuming you also add the server-side.
i got server sided done with but i need help with something if someone could help me i can inv you to my discord all i need help with is either getting whitelisted through steam id to use or ped model so if i have a ped model of a sheriff then i can unlock no one else
I got a server but the doors donāt work does this update xander1998 put out work only for police or for everyone
I might be able to help you with thatā¦
ok
can you help through discord you have it?
Presty1#0601 add me that is my discord
Fantastic! Thanks for the mod!
Thank you i have been waiting so long
http://objects.codeshock.hu/gallery.php search for the door and then find its location(I donāt recall how to find the position so I canāt help ya there) after you got all that add it to the script.
I think its somewhere in here to get the position
https://runtime.fivem.net/doc/reference.html#_0x8ACD366038D14505
Is this also client side?
its client and server side but anyone can unlock the doors with out esx
Okey then I have to test It. Is it hard to make it work with esx?
the one I posted has both ESX and non-ESX configurationsā¦ Both are server side synced and only allow cops to open the specific doors listedā¦
back doors to Mission Row LSPD, add these 2:
-- Mission Row Back Doors
[18] = { ["objName"] = "v_ilev_rc_door2", ["x"]= 467.3716, ["y"]= -1014.452,["z"]= 26.5362,["locked"]= true,["txtX"]=468.09,["txtY"]=-1014.452,["txtZ"]=27.1362},
[19] = { ["objName"] = "v_ilev_rc_door2", ["x"]= 469.9679, ["y"]= -1014.452,["z"]= 26.5362,["locked"]= true,["txtX"]=469.35,["txtY"]=-1014.452,["txtZ"]=27.1362},
No, just follow the included instructions found in README.txt