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  
Billsy93

Identify Current/Last Vehicle Entered

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

Share this post


Link to post
Share on other sites
Billsy93

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#?

Share this post


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

Share this post


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

 

 

 

 

Share this post


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

Share this post


Link to post
Share on other sites
nixolas1

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

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.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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