My life suit version is ZBK Russian side. In my task map, as long as the door is placed, only the police can lock and unlock it and use it, I want to build such a door in life suit, and let only gang members can use it, other roles can not, how to operate it..

How to make it possible for only gang members to unlock and lock doors through vehicles
-
- Altis Life
-
apple123 -
26. Juli 2019 um 02:08 -
Erledigt
-
-
Please forgive me for my simplicity in asking for help. The police gates in the version of my life clothes are like those in the pictures I sent out, but only the police can open and close them, while other factions can't. I didn't find any variables or codes on 3den. I hope that through other factions, such as med, civ, we can have such a gate and open it. I've been studying for two days, but I've got nothing. I hope someone can help me. Thank you very much.
-
-
The Mod is MM_Buildings right?
-
mod是MM_Buildings吧?
Hello, yes, there are four files: MM_Buildings, MM_Buildings 2, MM_Buildings 3, MM_Buildings 4. Please help me. I have studied them for three days, but I have no idea, but I think I should change them in the module, because I can open or unlock the door in the blue side, that is, the police.
-
-
Change the config... Search the gate Classname and then to useractions, search open gate and Change the condition
-
Change the config... Search the gate Classname and then to useractions, search open gate and Change the condition
Can you specify how to operate it? I'm a beginner. I'm very sorry.I already know what gate to look for in addon, but I don't know which gate it is. Its class name is (door_1... 2.8) or (gate_door) I don't know how to determine its variables or classes. And I don't know how to add conditions to make factions use it. Please help me.
-
Can you specify how to operate it? I'm a beginner. I'm very sorry.I already know what gate to look for in addon, but I don't know which gate it is. Its class name is (door_1... 2.8) or (gate_door) I don't know how to determine its variables or classes. And I don't know how to add conditions to make factions use it. Please help me.
I telled you already the Solutions. Unpack the PBOS, convert the configs and stud it.
-
I telled you already the Solutions. Unpack the PBOS, convert the configs and stud it.
Thank you very much for helping me. Thank you very much. But now there are two questions. One is that there are nine gates of variables or classes. I don't know how to determine this gate. The second question is how can I write code so that he can open or close the door through his ID card?
Here are nine categories of variables or classes
class UserActions
{
class Gate3_Open
{
displayName="Открыть ворота";
position="IG3";
radius=2;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3""==0";
statement="this animate [""GateDoor_3"", -1.6]";
};
class Gate3_Closed
{
displayName="Закрыть ворота";
position="IG3";
radius=2;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3""<0";
statement="this animate [""GateDoor_3"", 0]";
class UserActions
{
class Gate3_Open
{
displayName="Открыть ворота";
position="IG3";
radius=10;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3""==0";
statement="this animate [""GateDoor_3"", 5]";
};
class Gate3_Closed
{
displayName="Закрыть ворота";
position="IG3";
radius=10;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3"">0";
statement="this animate [""GateDoor_3"", 0]";
class UserActions
{
class open_door_1
{
displayName="Открыть дверь";
position="Interact1";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_1') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == civilian)";
statement="this animate [""Door_1"", 1]";
};
class close_door_1
{
displayName="Закрыть дверь";
position="Interact1";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_1') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_1"", 0]";
};
class open_door_2
{
displayName="Открыть дверь";
position="Interact2";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_2') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_2"", 1]";
};
class close_door_2
{
displayName="Закрыть дверь";
position="Interact2";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_2') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_2"", 0]";
};
class open_door_3
{
displayName="Открыть дверь";
position="Interact3";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_3') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_3"", 1]";
};
class close_door_3
{
displayName="Закрыть дверь";
position="Interact3";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_3') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_3"", 0]";
};
class open_door_4
{
displayName="Открыть дверь";
position="Interact4";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_4') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_4"", 1]";
};
class close_door_4
{
displayName="Закрыть дверь";
position="Interact4";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_4') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_4"", 0]";
};
class open_door_5
{
displayName="Открыть дверь";
position="Interact5";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_5') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_5"", 1]";
};
class close_door_5
{
displayName="Закрыть дверь";
position="Interact5";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_5') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide ==west)";
statement="this animate [""Door_5"", 0]";
};
class open_door_6
{
displayName="Открыть дверь";
position="Interact6";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_6') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_6"", 1]";
};
class close_door_6
{
displayName="Закрыть дверь";
position="Interact6";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_6') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_6"", 0]";
};
class open_door_7
{
displayName="Открыть дверь";
position="Interact7";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_7') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_7"", 1]";
};
class close_door_7
{
displayName="Закрыть дверь";
position="Interact7";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_7') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_7"", 0]";
};
class open_door_8
{
displayName="Open Garage";
position="Interact8";
radius=5;
onlyForplayer="true";
condition="((this animationPhase 'Door_8') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_8"", 1]";
};
class close_door_8
{
displayName="Close Garage";
position="Interact8";
radius=5;
onlyForplayer="true";
condition="((this animationPhase 'Door_8') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_8"", 0]";
-
Thank you very much for helping me. Thank you very much. But now there are two questions. One is that there are nine gates of variables or classes. I don't know how to determine this gate. The second question is how can I write code so that he can open or close the door through his ID card?
Here are nine categories of variables or classes
class UserActions
{
class Gate3_Open
{
displayName="Открыть ворота";
position="IG3";
radius=2;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3""==0";
statement="this animate [""GateDoor_3"", -1.6]";
};
class Gate3_Closed
{
displayName="Закрыть ворота";
position="IG3";
radius=2;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3""<0";
statement="this animate [""GateDoor_3"", 0]";
class UserActions
{
class Gate3_Open
{
displayName="Открыть ворота";
position="IG3";
radius=10;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3""==0";
statement="this animate [""GateDoor_3"", 5]";
};
class Gate3_Closed
{
displayName="Закрыть ворота";
position="IG3";
radius=10;
onlyForplayer="false";
condition="(""ZBKi_prisonKey"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3"">0";
statement="this animate [""GateDoor_3"", 0]";
class UserActions
{
class open_door_1
{
displayName="Открыть дверь";
position="Interact1";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_1') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == civilian)";
statement="this animate [""Door_1"", 1]";
};
class close_door_1
{
displayName="Закрыть дверь";
position="Interact1";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_1') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_1"", 0]";
};
class open_door_2
{
displayName="Открыть дверь";
position="Interact2";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_2') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_2"", 1]";
};
class close_door_2
{
displayName="Закрыть дверь";
position="Interact2";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_2') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_2"", 0]";
};
class open_door_3
{
displayName="Открыть дверь";
position="Interact3";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_3') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_3"", 1]";
};
class close_door_3
{
displayName="Закрыть дверь";
position="Interact3";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_3') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_3"", 0]";
};
class open_door_4
{
displayName="Открыть дверь";
position="Interact4";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_4') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_4"", 1]";
};
class close_door_4
{
displayName="Закрыть дверь";
position="Interact4";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_4') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_4"", 0]";
};
class open_door_5
{
displayName="Открыть дверь";
position="Interact5";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_5') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_5"", 1]";
};
class close_door_5
{
displayName="Закрыть дверь";
position="Interact5";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_5') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide ==west)";
statement="this animate [""Door_5"", 0]";
};
class open_door_6
{
displayName="Открыть дверь";
position="Interact6";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_6') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_6"", 1]";
};
class close_door_6
{
displayName="Закрыть дверь";
position="Interact6";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_6') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_6"", 0]";
};
class open_door_7
{
displayName="Открыть дверь";
position="Interact7";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_7') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_7"", 1]";
};
class close_door_7
{
displayName="Закрыть дверь";
position="Interact7";
radius=3;
onlyForplayer="true";
condition="((this animationPhase 'Door_7') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_7"", 0]";
};
class open_door_8
{
displayName="Open Garage";
position="Interact8";
radius=5;
onlyForplayer="true";
condition="((this animationPhase 'Door_8') < 0.5) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_8"", 1]";
};
class close_door_8
{
displayName="Close Garage";
position="Interact8";
radius=5;
onlyForplayer="true";
condition="((this animationPhase 'Door_8') == 1) && (""ZBKi_prisonKey"" in (magazines player) or playerSide == west)";
statement="this animate [""Door_8"", 0]";
the id Card is ZBKi_prisonkey
-
the id Card is ZBKi_prisonkey
thank you very much!but which is the door?I looked several times and didn't see which of the nine variables in the police station gate was.
-
the id Card is ZBKi_prisonkey
condition="(""life_gov"" in (magazines player) or playerSide == west) && this animationPhase ""GateDoor_3"">0";
Can't make life_gov open or close the door. I'm sure life_gov is an ID card. Why? Thank you very much for your help!