Jump to content

Door Hashes


KMM
 Share

Recommended Posts

How do you get door hashes? I would like to unlock some doors and I am interested in the procedure to get them. I seen in another section that you can get door hashes by reading the game memory. If so, what software is required and what are the steps to do so?

Link to comment
Share on other sites

@LMS Thank you! This was just what I was looking for. I have tried using the following code in my Rage Plugin to unlock some doors but it isn't working for me.

 

 Game.CallNative("DOOR_SYSTEM_SET_DOOR_STATE", 1716899875, 0);

 

Do you know what I am doing wrong?

Link to comment
Share on other sites

@LMS How do I register doors?  I have tried the following while making a rage plugin:

 

Game.CallNative("_ADD_DOOR_TO_SYSTEM_NEW", "1716899875");

 

but the plugin just crashes.

Link to comment
Share on other sites

That native name is guessed and hence cannot be resolved. Call the native by its hash instead. Also pass the hash as a number, not a string.

Link to comment
Share on other sites

  • 6 months later...
10 hours ago, M8T said:

Was this ever solved? I am having a similar issue right now. No matter what I do, the door is still locked.

 

Try this:
 

if (!OBJECT::IS_DOOR_REGISTERED_WITH_SYSTEM(doorHash)) {
    OBJECT::_ADD_DOOR_TO_SYSTEM_NEW(doorHash, 1, 0, 0, SCRIPTS::GET_ID_OF_THIS_THREAD(), 0, 0);
}

OBJECT::DOOR_SYSTEM_SET_DOOR_STATE(doorHash, 0); // 0 = DOORSTATE_UNLOCKED

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...