Hey RG Babys
well to day i will drop this here for your use if you will ever need it
this 1st person mod made a long time ago in Rage ASM for dark horse menu
but today i bring you the new coded version of it into C++
[HIDE]
bool FirstPersonActive;
int FirstPersonCamera;
void FirstPerson()
{
if (!FirstPersonActive)
{
FirstPersonActive = true;
FirstPersonCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
CAM::ATTACH_CAM_TO_PED_BONE(FirstPersonCamera, PLAYER::PLAYER_PED_ID(), 31086, 0.0f, 0.15000000596046f, 0.019999999552965, 1);
CAM::SET_CAM_ACTIVE(FirstPersonCamera, true);
CAM::RENDER_SCRIPT_CAMS(true, false, 3000, true, false);
}
else
{
if (CAM::DOES_CAM_EXIST(FirstPersonCamera))
{
FirstPersonActive = false;
CAM::SET_CAM_ACTIVE(FirstPersonCamera, false);
CAM::RENDER_SCRIPT_CAMS(false, false, 3000, true, false);
CAM::DESTROY_CAM(FirstPersonCamera, false);
}
}
}
//first Person Rotation
if (FirstPersonActive)
{
//Camera Correction
Vector3 Get_Cam_Roataion = CAM::GET_GAMEPLAY_CAM_ROT(2);
CAM::SET_CAM_ROT(FirstPersonCamera, Get_Cam_Roataion.x, Get_Cam_Roataion.y, Get_Cam_Roataion.z, 2);
ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), Get_Cam_Roataion.x, Get_Cam_Roataion.y, Get_Cam_Roataion.z, 2, 1);
//CrossHair
int HairColorRed;
int HairColorGreen;
int HairColorBlue;
float HairXsize;
float HairYsize;
if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
{
HairColorRed = 255;
HairColorGreen = 255;
HairColorBlue = 255;
HairXsize = 0.050000000745058f;
HairYsize = 0.050000000745058f;
}
if (PED::IS_PED_IN_MELEE_COMBAT(PLAYER::PLAYER_PED_ID()))
{
//not draw if in Melee Combat
}
else
{
if (CONTROLS::IS_CONTROL_PRESSED(2, 198))
{
HairXsize = 0.050000000745058f;
HairYsize = 0.050000000745058f;
/*if (PLAYER::IS_PLAYER_FREE_AIMING(PLAYER::PLAYER_ID()))
{*/
HairColorRed = 255;
HairColorGreen = 255;
HairColorBlue = 255;
/*}*/
if (PLAYER::IS_PLAYER_TARGETTING_ANYTHING(PLAYER::PLAYER_ID()))
{
HairColorRed = 255;
HairColorGreen = 0;
HairColorBlue = 0;
}
}
if (CONTROLS::IS_CONTROL_PRESSED(2, 199))
{
HairColorRed = 0;
HairColorGreen = 255;
HairColorBlue = 0;
HairXsize = 0.050000000745058f;
HairYsize = 0.050000000745058f;
}
}
DrawSprite("Darts", "Dart_Reticules_Zoomed", 0.50199997425079f, 0.5, HairXsize, HairYsize, 0.0f, HairColorRed, HairColorGreen, HairColorBlue, 100);
}
else
{
//nothing here xD
}
[/HIDE]
ENjoy