Jump to content

FlatOut scripting help


Nevitro

Recommended Posts

Hello. I just working with my mod, Jump Script [FlatOut] and need help.

 

I need know how to get ID car what we are in, and then save this car ID. When i just jump out i want fast back to car. Soo only what i need to get ID and teleport, but i think teleport is easy... I have problems with all getting scripts... [peds, cars...].

 

Its simple for somebody i know. And if You write how to do this, Your name will be in my mod in version 5.0. [ like AngryAmoeba] smile.gif

 

Thanks!

Link to comment
Share on other sites

How about

 

Ped pc = Player.Character;Vehicle playerVehicle;// Saving the most recent vehicle the player droveif (pc.isSittingInVehicle() && Exists(pc.CurrentVehicle) && pc.CurrentVehicle != playerVehicle) {   Ped driverPed = pc.CurrentVehicle.GetPedOnSeat(VehicleSeat.Driver);   if (Exists(driverPed) && driverPed == pc)       playerVehicle = pc.CurrentVehicle;}

 

Then you could teleport to some position near playerVehicle.Position.

Edited by AngryAmoeba
Link to comment
Share on other sites

Okey i will try somethink but i have problem with this :

 

  	GTA.Player.TeleportTo(startPosition);

 

 

How to fix that? GTA IV dont want teleport player on this pleace...

Edited by Nevitro
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
  • 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.