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

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Noox

I need help putting 3 NPCs into a vehicle

Recommended Posts

Jitnaught

I also did wanted the delete thing thanks letsplayordy :D

 

 

You making progress faster ;)

 

Good Now i think my tutorials will come use to you :)

 

Your tutorials are good for me? Or are you talking to @Noox

Share this post


Link to post
Share on other sites
Rugz007

Noox

 

 

How could i say it to you you are much greater modder than me :D

Share this post


Link to post
Share on other sites
Noox

I also did wanted the delete thing thanks letsplayordy :D

 

 

You making progress faster ;)

 

Good Now i think my tutorials will come use to you :)

I noticed this in one of your tutorials...

if (Keys.Q == e.Key) -> Here (Key.Q == e.Key) Is The HotKey...It Delcares Q As Hotkey

it doesn't declare q as hotkey, e is the KeyEventHandler, when a key is pressed it checks if the pressed key is the Q.

Edited by Noox

Share this post


Link to post
Share on other sites
Rugz007

yeah but for new begginer (very new) its in for simple language

 

btw did you see my bodyguard tutorial ? i think you made this mod with the help of it :D

 

if i am wrong correct me :)

Share this post


Link to post
Share on other sites
Noox

yeah but for new begginer (very new) its in for simple language

 

btw did you see my bodyguard tutorial ? i think you made this mod with the help of it :D

 

if i am wrong correct me :)

I used the bodyguard script included in the scripthookdotnet examples just to learn the keywords then I modified it so they could spawn in a vehicle :)

Share this post


Link to post
Share on other sites
Rugz007

:D good awesome do make some "missions" as you can make bodyguards ...

 

 

you may make enemies first :D

Share this post


Link to post
Share on other sites
Jitnaught

 

I also did wanted the delete thing thanks letsplayordy :D

 

 

You making progress faster ;)

 

Good Now i think my tutorials will come use to you :)

I noticed this in one of your tutorials...

if (Keys.Q == e.Key) -> Here (Key.Q == e.Key) Is The HotKey...It Delcares Q As Hotkey

it doesn't declare q as hotkey, e is the KeyEventHandler, when a key is pressed it checks if the pressed key is the Q.

 

Should be like this

if (e.Key == Keys.Q){}

Noox

 

 

How could i say it to you you are much greater modder than me :D

 

Haha that's what I was wondering! And thanks ;)

Share this post


Link to post
Share on other sites
Noox

:D good awesome do make some "missions" as you can make bodyguards ...

 

 

you may make enemies first :D

That was my next idea, how can I get the coordinates of a place in the map?

Share this post


Link to post
Share on other sites
Rugz007

Wait it is very simple i just post it in a moment :D

Share this post


Link to post
Share on other sites
Jitnaught

 

:D good awesome do make some "missions" as you can make bodyguards ...

 

 

you may make enemies first :D

That was my next idea, how can I get the coordinates of a place in the map?

 

 

Place a waypoint then call this

Game.DisplayText(Game.GetWaypoint().Position.ToString());
Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
Rugz007

or

 

1) go to your needed position

2) press "~"

3) type showposition

4) see the cordinates of your current position :p

Share this post


Link to post
Share on other sites
Noox

Thanks!

Share this post


Link to post
Share on other sites
Rugz007

You Are welcome

 

always to help other guys :p and may get help from other guys ;)

Share this post


Link to post
Share on other sites
Noox

A question for the experts, is this the original GTA IV language? Did R* code it like this?

Share this post


Link to post
Share on other sites
leftas

Nope they code in http://gtaforums.com/topic/492143-gta-iveflcrel-scocl/ if am not wrong.

And both scripthooks ar just wrapper :)

 

 

A question for the experts, is this the original GTA IV language? Did R* code it like this?

No. They coded in their SCO files. Don't know what language, probably called "SCO" or something like that.

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

http://gtaforums.com/topic/492143-gta-iveflcrel-scocl/

 

sh*t, you was faster than me :D

 

EDIT:But Sco Is still programming in C++ or C(don't know which exactly)

EDIT2: I think I am wrong because SCOCL scripts I think just IDA decompiled(IDA can decompiled in c only) so not sure maybe it's different lang or simiilar to c

Edited by leftas

Share this post


Link to post
Share on other sites
Jitnaught

EDIT: Yeah :p

Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
Noox

Since it got mentioned here, I used the isAlive function inside the main tick so it gets updated every second but it doesn't work.

Here it is

if(Exists(chosenPed))                if (!chosenPed.isAlive) // tried (chosenPed.isDead) as well                {                    blip.Delete();                    inMission = false;                    Player.Money += 2000;                }
Edited by Noox

Share this post


Link to post
Share on other sites
Jitnaught

 

Since it got mentioned here, I used the isAlive function inside the main tick so it gets updated every second but it doesn't work.

Here it is

if(Exists(chosenPed))                if (!chosenPed.isAlive) // tried (chosenPed.isDead) as well                {                    blip.Delete();                    inMission = false;                    Player.Money += 2000;                }

Maybe

if (!ped.isAlive || ped.isDead || ped.Health < 1)

If ped isn't alive or ped is dead or health is below 1 (dead)

Share this post


Link to post
Share on other sites
Noox

Yes! It works now! Thanks :)

Share this post


Link to post
Share on other sites
Jitnaught

Yes! It works now! Thanks :)

No problem :D

Share this post


Link to post
Share on other sites
Noox

Since I'm doing a script which randomly choses a NPC in a given radius is there a way to send text messages to Niko's phone?

I know I can add numbers (which apparently don't work in WIndows 7) but I found nothing about messages.

Share this post


Link to post
Share on other sites
Jitnaught

Since I'm doing a script which randomly choses a NPC in a given radius is there a way to send text messages to Niko's phone?

I know I can add numbers (which apparently don't work in WIndows 7) but I found nothing about messages.

 

No way to send text messages that I know of. I've seen other people talk about it before, but nobody knew how to.

Yeah phone numbers only works on XP :(

Share this post


Link to post
Share on other sites
Noox

 

Since I'm doing a script which randomly choses a NPC in a given radius is there a way to send text messages to Niko's phone?

I know I can add numbers (which apparently don't work in WIndows 7) but I found nothing about messages.

 

No way to send text messages that I know of. I've seen other people talk about it before, but nobody knew how to.

Yeah phone numbers only works on XP :(

 

Aww, I'll use DisplayText then, thanks for the help again.

Share this post


Link to post
Share on other sites
Jitnaught

 

 

Since I'm doing a script which randomly choses a NPC in a given radius is there a way to send text messages to Niko's phone?

I know I can add numbers (which apparently don't work in WIndows 7) but I found nothing about messages.

 

No way to send text messages that I know of. I've seen other people talk about it before, but nobody knew how to.

Yeah phone numbers only works on XP :(

 

Aww, I'll use DisplayText then, thanks for the help again.

 

You can use subtitles too if you'd like. Use this native http://www.gtamodding.com/index.php?title=PRINT_STRING_WITH_LITERAL_STRING_NOW

 

So it'd be something like this

GTA.Native.Function.Call("PRINT_STRING_WITH_LITERAL_STRING_NOW", "STRING", "Message", 1000, 1); //Displays a subtitle with the text "Message" for 1 second
Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
Noox

That's better! THanks.

Share this post


Link to post
Share on other sites
Jitnaught

That's better! THanks.

You're welcome ;)

If you need any other help, just ask :)

Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
Noox

I'm trying to find the busted animation (the one where Niko puts his hands up) but I can't find it, I need it for a random civilian, is it possible?

Share this post


Link to post
Share on other sites
Jitnaught

I'm trying to find the busted animation (the one where Niko puts his hands up) but I can't find it, I need it for a random civilian, is it possible?

 

busted.wad:

idle_2_hands_up

busted_on_bike

 

Found this here http://www.gtamodding.com/index.php?title=List_of_Animations_(GTA4)

 

And here's a tutorial of how to do animations http://gtaxscripting.blogspot.com/2013/06/tut-animations.html. It's in VB, but you could convert that easily.

Edited by LetsPlayOrDy

Share this post


Link to post
Share on other sites
Noox

I need more help (sorry but I'm a newbie :( )

I made this

 

 

namespace ClassLibrary2{    public class AIBehaviour : Script    {        Group enGroup;        public void escape()        {            Random pol = new Random();            int x = pol.Next(0, 3);            Game.DisplayText(Convert.ToString(x));            switch(x)            {                case 0:                    Player.WantedLevel = 2;                    policeEscape();                    Game.DisplayText("Cops!");                    break;                case 1:                    Game.DisplayText("Criminal");                    enemySpawn();                    break;                case 2:                    Game.DisplayText("Nothing");                    Player.Money += 2000;                    break;            }        }        public void policeEscape()        {            while(Player.WantedLevel > 0)            {            }            War.canRequest = false;            War.inMission = false;            Player.Money += 3000;        }        public void enemySpawn()        {            string[] modelArray = { "F_M_BUSINESS_02", "F_M_BUSINESS_01", "F_M_PEASTEURO_01", "F_M_RUNNER" };            Ped[] pedList = new Ped[4];            for(int i = 0; i < 4; i++)            {                Vector3 playerPos = World.GetNextPositionOnStreet(Player.Character.Position.Around(20.0F));                pedList[i] = World.CreatePed(modelArray[i], playerPos, RelationshipGroup.Criminal);                criminalProp(pedList[i]);                enGroup.AddMember(pedList[0]);            }            while(enGroup.MemberCount > 0)            {            }            War.inMission = false;            War.canRequest = false;            Player.Money += 5000;        }        public void criminalProp(Ped ped)        {            ped.WillDoDrivebys = true;            ped.Armor = 0;            ped.PriorityTargetForEnemies = true;            ped.AlwaysDiesOnLowHealth = true;            ped.SetPathfinding(true, true, true);            Weapon weapon = Weapon.SMG_Uzi;            ped.Weapons.FromType(weapon).Ammo = 250;            ped.Weapons.Select(weapon);            ped.RelationshipGroup = RelationshipGroup.Criminal;            ped.ChangeRelationship(RelationshipGroup.Criminal, Relationship.Hate);            ped.AttachBlip();        }    }}

 

 

 

Which, to make things random all it does is either make the player wanted by cops, by a criminal group or nothing.

The problem is that when the criminal group spawns everything is fine but sometimes it freezes, I made many tests and it never froze when the criminals spawned.

Also, they don't shoot me but they shoot each other and enGroup = pedList[0].Group; doesn't work.

Thanks again for the help.

 

EDIT: I know all the whiles with nothing inside are bad and they are performance eaters but it's temporary.

Edited by Noox

Share this post


Link to post
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
Sign in to follow this  

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

×

Important Information

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