(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;
Thanks for sharing it
(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;
LMAO you can find this in the Leaked Sourece of SilkRoad LOL
(10-15-2019 - 10:54 PM)FeetForFree Wrote:(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;
LMAO you can find this in the Leaked Sourece of SilkRoad LOL
LOL no you can't. and if you can, it's nowhere near as simple.
MD: Trident
the best FREE GTAV mod menu
(10-16-2019 - 03:06 PM)XBLxPhantom Wrote:(10-15-2019 - 10:54 PM)FeetForFree Wrote:(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;
LMAO you can find this in the Leaked Sourece of SilkRoad LOL
LOL no you can't. and if you can, it's nowhere near as simple.
It Just a leaked Code Of a Leaked Source
(10-17-2019 - 05:11 AM)FeetForFree Wrote:(10-16-2019 - 03:06 PM)XBLxPhantom Wrote:(10-15-2019 - 10:54 PM)FeetForFree Wrote:(05-04-2019 - 03:12 PM)XBLxPhantom Wrote: Saw another post where they just leaked AFC's cam tele. (It's not bad, but it's quite a lot of code for something that can be so simple) So, here is mine.
Code:void Tele_Cam(float x, float y, float z) {
Cam_Zoom = true;
if (!CAM::DOES_CAM_EXIST(TeleportCamera)) {
TeleportCamera = CAM::CREATE_CAM("DEFAULT_SCRIPTED_CAMERA", 1);
if (SkyteleCam) {
CAM::SET_CAM_COORD(TeleportCamera, x + 25.0f, y - 25.0f, z + 190.0f);
}
else {
CAM::SET_CAM_COORD(TeleportCamera, x + 7.0f, y, z + 3.3f);
}
CAM::POINT_CAM_AT_COORD(TeleportCamera, x, y, z);
STREAMING::_SET_FOCUS_AREA(x, y, z, 0.0f, 0.0f, 0.0f);
CAM::SET_CAM_ACTIVE(TeleportCamera, true);
CAM::RENDER_SCRIPT_CAMS(1, 1, 4000, 1, 0);
}
}
void ADD_TELE(char *option, int PedHandle, float x, float y, float z, char *info = NULL) {
ADD_OPTION(option, info);
if (CurrentOption == OptionCount) {
if (OptionPress) {
if (TeleportCamerabool) {
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionIn", 0, 0);
Tele_Cam(x, y, z);
}
uint handle = PedHandle;
if (PED::IS_PED_IN_ANY_VEHICLE(handle, 0))
handle = PED::GET_VEHICLE_PED_IS_IN(handle, 0);
ENTITY::SET_ENTITY_COORDS(handle, x, y, z + 0.5f, 0, 0, 0, 1);
}
}
}
if (Cam_Zoom) {
if (CAM::DOES_CAM_EXIST(TeleportCamera)) {
Teleport_Timer++;
if (Teleport_Timer >= 175) {
GRAPHICS::STOP_SCREEN_EFFECT("MinigameTransitionIn");
GRAPHICS::START_SCREEN_EFFECT("MinigameTransitionOut", 0, 0);
Teleport_Timer = 0;
CAM::STOP_CAM_POINTING(TeleportCamera);
CAM::SET_CAM_ACTIVE(TeleportCamera, false);
CAM::DESTROY_CAM(TeleportCamera, false);
CAM::RENDER_SCRIPT_CAMS(0, 1, 2000, 1, 0);
STREAMING::CLEAR_FOCUS();
TeleportCamera = NULL;
ShowMessageOnScreen("~g~Teleported to Location!");
Cam_Zoom = false;
}
}
}
bool Cam_Zoom = false;
Cam TeleportCamera;
int Teleport_Timer = 0;
bool TeleportCamerabool = false;
bool SkyTeleCam = false;
LMAO you can find this in the Leaked Sourece of SilkRoad LOL
LOL no you can't. and if you can, it's nowhere near as simple.
It Just a leaked Code Of a Leaked Source
lmfao. Okay bud.
MD: Trident
the best FREE GTAV mod menu
Users browsing: 16 Guest(s)