Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,018 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

Sign in to follow this  
AxelDV

[c++]Create Freecam

Recommended Posts

AxelDV

I need help to create a script for freecam in c++ please

Share this post


Link to post
Share on other sites
Zerovv

What do you need help with?

Share this post


Link to post
Share on other sites
AxelDV

What do you need help with?

Need help to create freecam controled with the keyboard

Share this post


Link to post
Share on other sites
ins1de

 

What do you need help with?

Need help to create freecam controled with the keyboard

 

 

A.K.A "Please do the work for me so that I can put it my trainer", yeah, "my trainer", "trainer"

 

Funny that apparently, you 'managed' to create your own 'menu' but you can't create something like a freecamera.

Should I also mention this other copyPasted project?

 

At least have the f*cking audacity to try something before begging for someone to dump you a full working solution,jeez..

Share this post


Link to post
Share on other sites
AxelDV

 

 

What do you need help with?

Need help to create freecam controled with the keyboard

 

 

A.K.A "Please do the work for me so that I can put it my trainer", yeah, "my trainer", "trainer"

 

Funny that apparently, you 'managed' to create your own 'menu' but you can't create something like a freecamera.

Should I also mention this other copyPasted project?

 

At least have the f*cking audacity to try something before begging for someone to dump you a full working solution,jeez..

 

Copy pasted your motherf*cker in the two projects i dedicated hours to create only need help to create cam no more if you dont help me please shut up

Share this post


Link to post
Share on other sites
PlayPrey

I haven't tried this myself but I can't see how this would be difficult to be honest.

 

Make a new camera ingame and set it as active, and then check for user input and change the position/rotation according to that.

Share this post


Link to post
Share on other sites
ins1de

 

Copy pasted your motherf*cker in the two projects i dedicated hours to create only need help to create cam no more if you dont help me please shut up

 

Then prove me I'm wrong. But actually, you ain't got nothing to prove tough guy. 'Dedicating' hours to figure out where to remove the watermark and how to change the menu colors, yeah that's some original work.

 

If you can't create such a simple thing like a camera and get so obnoxious only by reading a few lines, then you have nothing to prove.

Go play with the natives, try different settings, read the documentation and then maybe try again.

Share this post


Link to post
Share on other sites
AxelDV

After investigating try and fail most of the time. I achieved create a freecam anyway thanks for the help

                if (freecam)		{			Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 0);			freecam2 = CAM::CREATE_CAMERA(26379945, false);			CAM::SET_CAM_ACTIVE(freecam2, true);			CAM::RENDER_SCRIPT_CAMS(1, 0, 3000, 1, 0);		}		if (!freecam)		{			CAM::DESTROY_CAM(freecam2, 0);			CAM::RENDER_SCRIPT_CAMS(0, 0, 3000, 1, 0);		}///////////////////////*This Need Loop*////////////////////////          if (freecam)	    {		if (IsKeyDown(0xA0))/*Key Left Shift Adjust The Speed Of Moves*/		{			size2++;			if (size2 > 20)			{				size2 = 19;			}		}		if (IsKeyDown(0x57))/*Key W Move The Camera To Forward*/		{			posy += size2;		}		if (IsKeyDown(0x53))/*Key S Move The Camara To Back*/		{			posy -= size2;		}		if (IsKeyDown(0x44))/*Key D Move The Camera To Right*/		{			posx += size2;		}		if (IsKeyDown(0x41))/*Key A Move The Camera To Left*/		{			posx -= size2;		}		if (IsKeyDown(0x51))/*Key Q Adjust Height*/ 		{			posz += size2;		}		if (IsKeyDown(0x5A))/*Key Z Adjust Height*/ 		{			posz -= size2;		}		if (IsKeyDown(0x68))/*Key Numpad 6 Adjust The Rotation Of The Cam*/		{			rotx += 1.0;		}		if (IsKeyDown(0x62))/*Key Numpad 4 Adjust The Rotation Of The Cam*/		{			rotx -= 1.0;		}		if (IsKeyDown(0x66))/*Key Q Adjust The Height*/		{			roty += 1.0;		}		if (IsKeyDown(0x64))/*Key Z Adjust The Height*/		{			roty -= 1.0;		}		CAM::SET_CAM_ROT(freecam2, rotx, roty, rotz, 2);		CAM::SET_CAM_COORD(freecam2, posx, posy, posz);                /*This Is Optional But If Dont Move The Player Gta Not Charge The Map*/		ENTITY::SET_ENTITY_COORDS_NO_OFFSET(playerPed, posx, posy, posz + 10, 0, 0, 1);                 	}

Now only need help to improve please

Edited by AxelDV

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  

×

Important Information

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