1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Extended Doormanager

Discussion in 'Tools' started by root, Jan 16, 2017.

  1. root

    root Well-Known Member

    Messages:
    244
    Likes Received:
    88
    Joined:
    Aug 15, 2016
    Or Doormanager Pro as @MissMelissa would call it ;-)

    It's just a little helper to get around some issues about not getting the handle of the door. Its more like a response to this threads:

    So here it is. Its quite rubbish code but it works. Will probably do it better if I have time.

    Please read before using:
    It's quite simple you can't really fuck it up.
    If you can't get a door go near it. Then Type /door
    (Ignore the called, it was debug)
    [​IMG]
    You will se the little circle on the door. Also in the chat you see the detected Model and the question to save. If it is the door you wanted type /y to save it. It will be saved in the Serverfolder in the file called doors.txt (model and position)
    After 3 Seconds it continues:
    [​IMG]
    Again if it is the right model type /y

    Hopefully it will work on most doors ;-)

    (There is also no message if no door was found)

    Sample Doors.txt:
    Code:
    868499217 | X: 82.38156 Y: -1392.752 Z: 29.52609
    -1148826190 | X: 82.38156 Y: -1390.476 Z: 29.52609
    -1148826190 | X: 82.38156 Y: -1390.476 Z: 29.52609
    -610054759 | X: -15.98929 Y: -1436.028 Z: 31.19914
     

    Attached Files:

    Letho, Lowi, Nimifluk and 3 others like this.
  2. MissMelissa

    MissMelissa New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Dec 26, 2016
    Perfect! :=D
     
    root likes this.
  3. VFRZ

    VFRZ Active Member

    Messages:
    65
    Likes Received:
    19
    Joined:
    Dec 29, 2016
    I LOVE YOU :=)
     
  4. Hardstop

    Hardstop Active Member

    Messages:
    84
    Likes Received:
    12
    Joined:
    Jan 12, 2017
  5. DaJeroen

    DaJeroen Well-Known Member

    Messages:
    104
    Likes Received:
    20
    Joined:
    Dec 22, 2016
    This will be very helpful for people to speed up their development, nice work :=)!
     
  6. Hardstop

    Hardstop Active Member

    Messages:
    84
    Likes Received:
    12
    Joined:
    Jan 12, 2017
    There are police doors, but i think you are missing jail cell doors, if they are even lockable, would be a good addition to it :=)
     
  7. root

    root Well-Known Member

    Messages:
    244
    Likes Received:
    88
    Joined:
    Aug 15, 2016
    Already tried it. Didn't lock on my try. If it work's I will add them.
     
  8. Hardstop

    Hardstop Active Member

    Messages:
    84
    Likes Received:
    12
    Joined:
    Jan 12, 2017
    Did you find the jail cell door hitbox though? i did not with /door command, if you did can you share me the hash, id like to try to lock it too
     
  9. root

    root Well-Known Member

    Messages:
    244
    Likes Received:
    88
    Joined:
    Aug 15, 2016
    No I did it with the direct hashes (I think??)
    But will try again if I have time (and found the hashes again ;-) )
     
  10. AWOJosh

    AWOJosh New Member

    Messages:
    3
    Likes Received:
    0
    Joined:
    Jan 4, 2017
    I am also looking for a way to lock the jail cells if either of you (or anyone else) can share a way.
     
  11. Icaro

    Icaro Active Member

    Messages:
    59
    Likes Received:
    36
    Joined:
    Oct 20, 2016
    @AWOJosh You can use createObject to put a static door of the same model on top of the jail cell doors. But please don't, locking someone in a tiny box is really horrible gamemode design.
     
  12. AWOJosh

    AWOJosh New Member

    Messages:
    3
    Likes Received:
    0
    Joined:
    Jan 4, 2017
    hey, some people pay good money for that sort of thing...


    but anyway, i haven't even been able to find any sort of model information for those cell doors to try and implement it like that
     
  13. Icaro

    Icaro Active Member

    Messages:
    59
    Likes Received:
    36
    Joined:
    Oct 20, 2016
    I don't remember what it is, but the name of the model has "cell" in it, so you can find it with Menyoo or Guad's map editor.
     
  14. VFRZ

    VFRZ Active Member

    Messages:
    65
    Likes Received:
    19
    Joined:
    Dec 29, 2016
    For cell id :
    Code:
    v_ilev_ph_cellgate=631614199
    v_ilev_ph_cellgate02=871712474
    
     
  15. enviel

    enviel Member

    Messages:
    23
    Likes Received:
    5
    Joined:
    Jan 26, 2017
    i can't seem to use the /door on Premium Deluxe Motorsport Doors
    it doesn't ask me to save the door hash and position, so i'm using the hash and position from the wiki but still the door doesn't open

    this is my code

    Code:
        private DateTime m_lastTick = DateTime.Now;
        private void API_onUpdate()
        {
            if ((DateTime.Now - m_lastTick).TotalMilliseconds >= 1000) {
                m_lastTick = DateTime.Now;
                ins.refreshDoorState(door23);
                ins.refreshDoorState(door24);
            }
        }
        public void OnResourceStart()
        {
            door23 = ins.registerDoor(2059227086, new Vector3(-59.89302, -1092.952, 26.88362));
            door24 = ins.registerDoor(1417577297, new Vector3(-60.54582, -1094.749, 26.88872));
    
            ins.setDoorState(door23, false, 0);
            ins.setDoorState(door24, false, 0);
        }
    
     
  16. Vagabonden

    Vagabonden Member

    Messages:
    28
    Likes Received:
    2
    Joined:
    Mar 24, 2017
    I have this issue at Paleto Bay Police front doors.

    When i use "Doormanager Pro as @MissMelissa would call it" I cant seem to get the door ID for those two doors.
    [​IMG]

    My next question is, from the outside it looks like someone "put" security "door" down like in the entrance.

    [​IMG]
    Anyone know how to remove it ?? Or is it a bug?
     
  17. Vikos Taredi

    Vikos Taredi Member

    Messages:
    12
    Likes Received:
    0
    Joined:
    Apr 7, 2017
    Code:
        public class OpenDoors : Script
        {
            public OpenDoors()
            {
                API.onResourceStart += API_onResourceStart;
                API.onPlayerFinishedDownload += API_onPlayerFinishedDownload;
            }
    
            private void API_onPlayerFinishedDownload(Client player)
            {
                //PB COPS DOORS
                API.sendNativeToPlayer(player, 0x9B12F9A24FABEDB0,
        -1501157055, -444.4985f, 6017.06f, 31.86633f,
        false, 0.0f, 0.0f, 0.0f);
                API.sendNativeToPlayer(player, 0x9B12F9A24FABEDB0,
        -1501157055, -442.66f, 6015.222f, 31.86633f,
        false, 0.0f, 0.0f, 0.0f);
    
                //SHORES COPS DOOR
    
                API.sendNativeToPlayer(player, 0x9B12F9A24FABEDB0,
        -1765048490, 1855.685f, 3683.93f, 34.59282f,
        false, 0.0f, 0.0f, 0.0f);
            }
    
            private void API_onResourceStart()
            {
                //PB COPS
                API.removeIpl("cs1_16_sheriff_cap");
    
                //SS COPS
                API.removeIpl("sheriff_cap");
            }
        }
     
  18. Walter White

    Walter White New Member

    Messages:
    1
    Likes Received:
    0
    Joined:
    Jun 13, 2017
    Hello thanks for script please tutorial for installation thanks :=)
     
  19. Hazes

    Hazes Active Member

    Messages:
    95
    Likes Received:
    21
    Joined:
    Apr 8, 2017
    Put doormanager.cs and doormanager.js in one folder, call it "doormanager" or whatever. Move folder to your resource folder inside server files and include it in your settings.xml like this:
    Code:
      <resource src="doormanager" />
    Or add it into your own resource. :=)
     
    Last edited: Jun 13, 2017

Share This Page