Hello everyone , I am using this script here but I have a problem with it
Problem: everyone is able to open the door cells so I want to know how to give permission only to cops.
There is a read me but Its a bit confusing that is why I am asking for help.
Thank you
i might be able to help with cop permission depends what you want it based off of though like skins or if you want it setup via db like copfivem style or just like an es group, or just make it so only the skins would be able to open it.
i was gonna ask this but i think i may have found my awnser xD
original question:
How would i open the cells/doors?
How i found my awnser:
client.lua
Line 75: DrawText3d(doorList[i]["txtX"], doorList[i]["txtY"], doorList[i]["txtZ"], "[E] ~r~Locked") <—
i’m guessing its E because look at the end [E] ~r~Locked!
i dont know about the script but adding such a thing is very easy. you just need a list of allowed peoples steam ids and then add an if statement and ask if the person who does want to open/close the doors is on the list.
that would be the basic logic behind it. if you already have scripts with lists of users you might use that but it depends on your setup