Quantcast

Jump to content

» «
Photo

[c++]Create Freecam

7 replies to this topic
AxelDV
  • AxelDV

    Player Hater

  • Members
  • Joined: 16 Jun 2016
  • Mexico

#1

Posted 17 July 2017 - 12:22 AM

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


Zerovv
  • Zerovv

    Player Hater

  • Members
  • Joined: 07 Aug 2015
  • Antarctica

#2

Posted 17 July 2017 - 09:56 AM

What do you need help with?


AxelDV
  • AxelDV

    Player Hater

  • Members
  • Joined: 16 Jun 2016
  • Mexico

#3

Posted 17 July 2017 - 11:17 PM

What do you need help with?

Need help to create freecam controled with the keyboard


ins1de
  • ins1de

    Vi Veri Veniversum Vivus Vici

  • Members
  • Joined: 23 Apr 2016
  • Antarctica

#4

Posted 20 July 2017 - 10:10 AM

 

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..


AxelDV
  • AxelDV

    Player Hater

  • Members
  • Joined: 16 Jun 2016
  • Mexico

#5

Posted 21 July 2017 - 02:17 AM

 

 

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


PlayPrey
  • PlayPrey

    string ScriptSkillLevel = "Low-Med";

  • Members
  • Joined: 02 Jul 2012
  • Norway

#6

Posted 21 July 2017 - 10:43 AM

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. 


ins1de
  • ins1de

    Vi Veri Veniversum Vivus Vici

  • Members
  • Joined: 23 Apr 2016
  • Antarctica

#7

Posted 22 July 2017 - 01:20 PM

 

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.


AxelDV
  • AxelDV

    Player Hater

  • Members
  • Joined: 16 Jun 2016
  • Mexico

#8

Posted 23 July 2017 - 11:41 PM Edited by AxelDV, 24 July 2017 - 01:00 AM.

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users