Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Bank doors


Wiebrendh
 Share

Recommended Posts

Does anyone knows how to open the bank doors? Really need this for robbery mod..

Link to comment
Share on other sites

 

 

find the model of the door on the bottom of this page and use the native to set it unlocked...

 

http://www.gtamodding.com/index.php?title=SET_STATE_OF_CLOSEST_DOOR_OF_TYPE

 

Thanks! Dumb that i did not look in the natives list..

 

yeah, whenever i dont know how to do something... i search the natives list, if not there, i search the SCO scripts... if not there, i have a sh*tload of cs script mods i use to use before i learned how to program and i refer to those for examples of how to use natives... or even the scripthookdotnet itself wraps alot of natives u may want to call yourself and u can see how hazardx uses the native

 

If the code is compiled and .net i use reflection

 

 

Well, i took a look at it, but it does not work.. It does not gives an error or something.. It does simply not work

 

This is the code:

int LeftDoorHash = GTA.Native.Function.Call<int>("GET_HASH_KEY", "cj_bank_door_L");GTA.Native.Function.Call("SET_STATE_OF_CLOSEST_DOOR_OF_TYPE", -431164822, -1436.00000000f, 595.00000000f, 33.00000000f, false, 1.0f);

The things i did not understand were the XYZ floats..Why does it need that?

 

EDIT:

Found that i was using the wrong XYZ, but that did not fix anything.. I used abjimslock.sco for the XYZ and looking what i am doing wrong

Edited by Wiebrendh
Link to comment
Share on other sites

Bongs can you teach me cs modding??

I thought you were not a beginner?

Link to comment
Share on other sites

ok cool, i didnt see the post til now, glad u got it working.

 

In forums if u ask a question and figure it out on your own u should post how u fixed it so people searching this question see your answer...

 

btw check this out... and read what implicit operators do... it is why u can substitute a string for a model or in the case instead of a native parameter u can use a GTA.Model and Function.Call will know to use the model's hash... u can thank hazardx for making working with Function.Call and scripthook.net objects easy...

 

rE9gM4J.png

 

when u understand the library u are "using" u can make your code much better

 

Thanks, let me try to explain it then :)

 

I checked what the model hash of the bank doors were, and then in the ambjimslocks.sco (that controls the doors) what parameters the function needed. First i had no idea what i was doing, but after that it all made sense :D

Link to comment
Share on other sites

 

Bongs can you teach me cs modding??

Have you ever tried to make a c# application? I think this is a good place to start. I won't be able to sit there and teach u directly but i think you should come up with a simple idea for an application and start trying to write it... trust me all the bugs u run into trying to make an app work, and then researching how to fix online like on stackoverflow.com, that is how u learn.

 

I'm just going to say this now, like everything in life the only one who can help u is yourself. The only way ur gonna learn c# is by putting in hundreds of hours (maybe thousands!) of writing and debugging code, googling how to fix bugs and hitting your head into your keyboard... that is how u learn... but i am here to help with any programming questions if i can ;)

 

 

I started with making a text-editor, website and some other sh*t programs. After that i saw logic in the code that i made

Link to comment
Share on other sites

 

 

ok cool, i didnt see the post til now, glad u got it working.

 

In forums if u ask a question and figure it out on your own u should post how u fixed it so people searching this question see your answer...

 

btw check this out... and read what implicit operators do... it is why u can substitute a string for a model or in the case instead of a native parameter u can use a GTA.Model and Function.Call will know to use the model's hash... u can thank hazardx for making working with Function.Call and scripthook.net objects easy...

 

rE9gM4J.png

 

when u understand the library u are "using" u can make your code much better

 

Thanks, let me try to explain it then :)

 

I checked what the model hash of the bank doors were, and then in the ambjimslocks.sco (that controls the doors) what parameters the function needed. First i had no idea what i was doing, but after that it all made sense :D

 

regarding that ambjimslocks (i always wonder who jim is) u just need to terminate that script when u get near the door because that script will lock doors u try to unlock... http://www.gtamodding.com/index.php?title=TERMINATE_ALL_SCRIPTS_WITH_THIS_NAME... so when u unlock ur door terminate that script just before (dont worry it restarts on it's own again) the documentation on gtamodding is the best description of how to use so no need to look at examples of it in the sco.

 

 

Tested it several times on several computers. And it always work. But i have it in the update function, so it always opens it when it closes

Link to comment
Share on other sites

 

 

Bongs can you teach me cs modding??

Have you ever tried to make a c# application? I think this is a good place to start. I won't be able to sit there and teach u directly but i think you should come up with a simple idea for an application and start trying to write it... trust me all the bugs u run into trying to make an app work, and then researching how to fix online like on stackoverflow.com, that is how u learn.

 

I'm just going to say this now, like everything in life the only one who can help u is yourself. The only way ur gonna learn c# is by putting in hundreds of hours (maybe thousands!) of writing and debugging code, googling how to fix bugs and hitting your head into your keyboard... that is how u learn... but i am here to help with any programming questions if i can ;)

 

 

I started with making a text-editor, website and some other sh*t programs. After that i saw logic in the code that i made

 

My first program was a calculator :D

Link to comment
Share on other sites

LordOfTheBongs

 

 

 

Bongs can you teach me cs modding??

Have you ever tried to make a c# application? I think this is a good place to start. I won't be able to sit there and teach u directly but i think you should come up with a simple idea for an application and start trying to write it... trust me all the bugs u run into trying to make an app work, and then researching how to fix online like on stackoverflow.com, that is how u learn.

 

I'm just going to say this now, like everything in life the only one who can help u is yourself. The only way ur gonna learn c# is by putting in hundreds of hours (maybe thousands!) of writing and debugging code, googling how to fix bugs and hitting your head into your keyboard... that is how u learn... but i am here to help with any programming questions if i can ;)

 

 

I started with making a text-editor, website and some other sh*t programs. After that i saw logic in the code that i made

 

My first program was a calculator :D

 

yeah same here xD

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.