Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    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. DYOM
      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
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Wiebrendh

Robbery Mod V2

Recommended Posts

Wiebrendh

Hi all,i just started working on the robbery mod again, but i have one question.

 

I have a variable named Apple that is an intenger (just as example) and when u press right mouse button i want to increase Apple by one like this:

Apple++

 

I have no idea how to do this, because if i do:

if (Game.isGameKeyPressed(GameKey.Aim))            {                Apple++;            }

It does not working :/

Share this post


Link to post
Share on other sites
Jitnaught

Where did you put that code? You should put that into a timer.

Share this post


Link to post
Share on other sites
stef538

Okay so you have an integer, called apple.

private int appleapple = 0;if (Game.isGameKeyPressed(GameKey.Aim)){   Apple++;}

so if you press the aim key, it should go up right ? and I don´t know if putting it in a timer would work, since it is suppose to raise on a button press.

 

so it probably works, but to check if it works you can do this :

private int appleapple = 0;if (Game.isGameKeyPressed(GameKey.Aim)){   Apple++;   Game.DisplayText(Apple, 2000);}

So everytime you press aim, you see a white text in the left corner of your screen, with the value of Apple.

 

then if you want it to change something when Apple is a certain number you can do this :

If (Apple == 1){ //DoStuff}
Edited by stef538

Share this post


Link to post
Share on other sites
Jitnaught

Do you want it for button pressed or button down? If you want it for button down, use a timer and that code. If you want button down, use this:

BindKey(Keys.RButton, () => //Put this where your code initial runs (example in: public ScriptName() { /* code here */ } )            {               Apple++;            }

Share this post


Link to post
Share on other sites
Rugz007

So weibren thinking of adding speech the mod ?

Share this post


Link to post
Share on other sites
stef538

and where did you got that from ? I think he wants to do some things with an integer, not something with speech recognition.

Edited by stef538

Share this post


Link to post
Share on other sites
Wiebrendh

 

Do you want it for button pressed or button down? If you want it for button down, use a timer and that code. If you want button down, use this:

BindKey(Keys.RButton, () => //Put this where your code initial runs (example in: public ScriptName() { /* code here */ } )            {               Apple++;            }

 

While i am pressing the aim key, so when the player IS aiming.

 

 

So weibren thinking of adding speech the mod ?

 

Please stop with speech sh*t, or make the source yourselfe

Share this post


Link to post
Share on other sites
Jitnaught

 

 

Do you want it for button pressed or button down? If you want it for button down, use a timer and that code. If you want button down, use this:

BindKey(Keys.RButton, () => //Put this where your code initial runs (example in: public ScriptName() { /* code here */ } )            {               Apple++;            }

 

While i am pressing the aim key, so when the player IS aiming.

 

 

So weibren thinking of adding speech the mod ?

 

Please stop with speech sh*t, or make the source yourselfe

 

 

Ok then a timer would work, I think. Just try it with the interval as 1 or something. Needs to be small.

  • Like 1

Share this post


Link to post
Share on other sites
Wiebrendh

Did not work as i wanted to, now doing it in totally different way, thanks for the help :)

  • Like 1

Share this post


Link to post
Share on other sites
Rugz007

Plz dont get angry i am going to :(

Share this post


Link to post
Share on other sites
Jitnaught

Plz dont get angry i am going to :(

 

You are angry at yourself?

Share this post


Link to post
Share on other sites
Rugz007

I am telling weibren man.....

Share this post


Link to post
Share on other sites
Wiebrendh

I am telling weibren man.....

 

I am not angry, it is just annoying, because you make copy a mod, say YOU made it but you just copied it. And now you are asking every person on this forum if he is going to add speech to something that cant even use speech

  • Like 1

Share this post


Link to post
Share on other sites
Jitnaught

 

I am telling weibren man.....

 

I am not angry, it is just annoying, because you make copy a mod, say YOU made it but you just copied it. And now you are asking every person on this forum if he is going to add speech to something that cant even use speech

 

 

I don't get why he just doesn't stop asking

Share this post


Link to post
Share on other sites
stef538

me neither.. he is really annoying..

  • Like 1

Share this post


Link to post
Share on other sites
Rugz007

Sorry guys but i am getitng complains that weibren hes is very agressive

Share this post


Link to post
Share on other sites
Wiebrendh

Sorry guys but i am getitng complains that weibren hes is very agressive

 

I am not agressive, i am not mad, but you are just very very very annoying with you speech mod.. First make the speech mod yourselfe before stalking everybody with it.

Share this post


Link to post
Share on other sites
stef538

Sorry guys but i am getitng complains that weibren hes is very agressive

 

I laughed very, very, very hard at this. sorry.

Share this post


Link to post
Share on other sites
Rugz007

Man other people tell me as now i am not ur frnd anymore as its in your behaviour and lets say drop the speech thing

Share this post


Link to post
Share on other sites
Wiebrendh

 

Sorry guys but i am getitng complains that weibren hes is very agressive

 

I laughed very, very, very hard at this. sorry.

 

 

Hahahhaha same :D

  • Like 1

Share this post


Link to post
Share on other sites
Rugz007

Okay okay not justice in this world :( ¡¿¡¿》¡ 😡

Share this post


Link to post
Share on other sites
Wiebrendh

You just dont get it

Edited by Wiebrendh
  • Like 1

Share this post


Link to post
Share on other sites
Rugz007

Oooo i wwas saying.about the speech thing

Share this post


Link to post
Share on other sites
Ricebox

I saw the title of this post and got all excited thinking it was a release and I was in the Showroom. My heart is sad now.

 

 

You just dont get it

To be fair, I just don't think he understands English that well. That's not like a jab at him I just mean like

 

Man other people tell me as now i am not ur frnd anymore as its in your behaviour and lets say drop the speech thing

Okay okay not justice in this world :( ¡¿¡¿》¡

what does this even mean?

Share this post


Link to post
Share on other sites
Wiebrendh

I saw the title of this post and got all excited thinking it was a release and I was in the Showroom. My heart is sad now.

 

 

You just dont get it

To be fair, I just don't think he understands English that well. That's not like a jab at him I just mean like

 

Man other people tell me as now i am not ur frnd anymore as its in your behaviour and lets say drop the speech thing

Okay okay not justice in this world :( ¡¿¡¿》¡

what does this even mean?

 

He said to me that is second language is english.. Well apparently not

Share this post


Link to post
Share on other sites
Rugz007

3rd it is

Share this post


Link to post
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.


  • 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.