Skip to content

Commit

Permalink
Fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnknownCod3r committed Feb 12, 2023
1 parent 69559ac commit f550fbf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
Binary file modified samples/.vs/SynergyBase-1.66/v15/.suo
Binary file not shown.
15 changes: 15 additions & 0 deletions samples/NativeTrainer/MenuFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,21 @@ bool SpawnedPedHasGodmode[20];
char* SoundToPlay;
char* SoundSetToPlay;
bool PlaySounds;
char* VehName;
Vehicle veh;
char *model;
HANDLE mainFiber;
DWORD wakeAt;
char str[50];
#pragma warning(disable : 4244 4305) // double <-> float conversions
uint32_t hash_veh;
int SpawnedVeh;
bool GodModeTog = false, VehicleGod = false;
char* VehicleString;
bool SpawningVehicle;
bool PlayerGodmod;
bool NoCops;
BOOL bPlayerExists = ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID());
using namespace std;
#pragma endregion
#pragma region Option Helpers
Expand Down
20 changes: 0 additions & 20 deletions samples/NativeTrainer/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
#include "Mods.h"


#pragma warning(disable : 4244 4305) // double <-> float conversions

char *model;
HANDLE mainFiber;
DWORD wakeAt;
char str[50];


void BypassOnlineVehicleKick(Vehicle vehicle)
{
Player player = PLAYER::PLAYER_ID();
Expand All @@ -44,7 +36,6 @@ char* AddStrings(char* string1, char* string2)
strcat_s(str, string2);
return str;
}
Vehicle veh;

int CREATE_VEHICLE(char* hash, float x, float y, float z)
{
Expand Down Expand Up @@ -76,17 +67,6 @@ void addVehOption(char* option, char* model11, char *notification)
}
}


char* VehName;
uint32_t hash_veh;
int SpawnedVeh;
bool GodModeTog = false, VehicleGod = false;
char* VehicleString;
bool SpawningVehicle;
bool PlayerGodmod;
bool NoCops;
BOOL bPlayerExists = ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID());

int SpawnCar(int hash, int ped = PLAYER::PLAYER_PED_ID())
{
Ped pedHandle = PLAYER::PLAYER_PED_ID();
Expand Down

0 comments on commit f550fbf

Please sign in to comment.