Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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

Identify Current/Last Vehicle Entered


Billsy93
 Share

Recommended Posts

Imbaaaaaaaackniggers

no problem, if it were up to the admins they would have preffered u figured it out yourself, but u need other people to show u stuff to learn, that's how everyone learns

 

admins here try to block transfer of knowledge... sounds like nazi germany here or some sh*t... what a great place to be biggrin.gif

Link to comment
Share on other sites

Yeah thanks once again,

 

Finally, the text is all working, however it displays when I'm in the car, I'd only like it to display if I'm outside the car on foot. I know there is a native function for C++ (something like IsCharOnFoot and it returns a boolean) however, you said don't use natives in C#?

Link to comment
Share on other sites

Imbaaaaaaaackniggers

I only meant avoid using them yourself, use scripthookdotnet wrapped code whenever possible, not all natives are wrapped by the scripthookdotnet, the class above are natives I wrapped but using scripthookdotnet native.function methods

 

C++, c# all the same u use native functions scripthookdotnet just organized them for easy use and allows communication to game with .net code

Link to comment
Share on other sites

PacketOverload_x64bit
no problem, if it were up to the admins they would have preffered u figured it out yourself, but u need other people to show u stuff to learn, that's how everyone learns

 

admins here try to block transfer of knowledge... sounds like nazi germany here or some sh*t... what a great place to be biggrin.gif

Yeah, it had NOTHING to do with YOU posting nearly a HUNDRED pictures of your JUNK.

 

Billsy93, this is not "fear," of this BS. This is fact. And you too GTSADude, common sense? I don't understand what you mean by that?

 

I am simply trying to warn people, as I tried to do a long time ago about this person, don't mistake politeness as fear or lack of common sense. People give him credit for the things he does, which emboldens him to do this more. He chose to act to the way he does. That's why is continously banned.

 

Admins are not blocking the transfer of knowledge - that's his constant "woe is me" stuff that manipulates people into thinking he is interested in "helping." He's not, he wants to be idolized, that is all.

 

 

 

 

Link to comment
Share on other sites

hbgkljhkljhkljhkljhjklhkljhkljh

 

no problem, if it were up to the admins they would have preffered u figured it out yourself, but u need other people to show u stuff to learn, that's how everyone learns

 

admins here try to block transfer of knowledge... sounds like nazi germany here or some sh*t... what a great place to be biggrin.gif

Yeah, it had NOTHING to do with YOU posting nearly a HUNDRED pictures of your JUNK.

 

Billsy93, this is not "fear," of this BS. This is fact. And you too GTSADude, common sense? I don't understand what you mean by that?

 

I am simply trying to warn people, as I tried to do a long time ago about this person, don't mistake politeness as fear or lack of common sense. People give him credit for the things he does, which emboldens him to do this more. He chose to act to the way he does. That's why is continously banned.

 

Admins are not blocking the transfer of knowledge - that's his constant "woe is me" stuff that manipulates people into thinking he is interested in "helping." He's not, he wants to be idolized, that is all.

look u fa**ot, dont get me involved with you and your fa**ot friends that look at penis pictures

 

not my junk and i did not post that sh*t... and yes u fear me... u have never even experienced a virus from a gtaiv mod and yet u claim they are everywhere... u r a paranoid f*ckin loser and u r ignorant of everything and how things work... just shut your f*ckin mouth retard

 

or do u want satan to start messaging u again... i still havent found the time to do it but if u want me to disable your inbox i will fa**ot

 

@Billsy93

 

 

if (!Game.LocalPlayer.Character.isInVehicle) { //player is on foot }

 

 

or if u look at my script, u cann see i already have it setup so u can manage while on foot or in vehicle

 

 

if (Game.LocalPlayer.Character.isInVehicle) { //player is in car } else { //player on foot }

 

 

u just gotta put your code in the right place, my script is already setup for this wink.gif

Edited by hbgkljhkljhkljhkljhjklhkljhkljh
Link to comment
Share on other sites

  • 2 weeks later...

Well, this is a fun place! biggrin.gif

So much fuzz over a so simple script... Interesting.

 

So, billy, you want a script which displays a blip on the last vehicle you were in?

Lets see, maybe something like this ( havent tested):

 

 

  //define these at top, as global variables, not in main. Vehicle veh; Blip blip; bool gotten=false; f32 x,y,z,xx,yy,zz,d; ///... Ped ped=GetPlayerPed(); if(IsCharInAnyCar(ped)){ //player in car, save it for later and remove blip if exists 	if(DoesBlipExist(blip))RemoveBlip(blip); 	GetCarCharIsUsing(ped, &veh); 	gotten=true; }else if(DoesVehicleExist(veh)){ //player not in car and vehicle exists 	if(gotten){             AddBlipForCar(veh, &blip);    ChangeBlipNameFromAscii(blip, "My Car");    ChangeBlipSprite(blip, BLIP_GARAGE);    ChangeBlipScale(blip, 0.5f);    ChangeBlipColour(blip, 5);    gotten=false; 	} 	GetCharCoordinates(ped, &x, &y, &z); 	GetCarCoordinates(veh, &xx, &yy, &zz); 	GetDistanceBetweenCoords3D(x,y,z,xx,yy,zz,&d); 	if(d<5){ //the vehicle is close   if(GetKeyState(0x59)< 0){ //pressing Y   	OpenCarDoor(veh, (eVehicleDoor)0); //should be 0 or 1, dunno   	ForceVehicleLights(veh, (eVehicleLights)0); //no idea what number it is, but 0 seems logical   }   else PrintStringWithLiteralStringNow( "STRING", "Press Y to Open Your Car Door", 500, 1 ); 	} }

 

 

Has blips, opening doors and some stuff i saw was discussed here. (C++, scripthook).

 

EDIT: oh, i see you had already made some stuff in C#, well, you can decide tounge.gif

Edited by nixolas1
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.