text: #region Local Var
  	var uLocal_0 = 0;
  	var uLocal_1 = 0;
  	int iLocal_2 = 0;
  	int iLocal_3 = 0;
  	int iLocal_4 = 0;
  	int iLocal_5 = 0;
  	int iLocal_6 = 0;
  	int iLocal_7 = 0;
  	int iLocal_8 = 0;
  	int iLocal_9 = 0;
  	int iLocal_10 = 0;
  	int iLocal_11 = 0;
  	var uLocal_12 = 0;
  	var uLocal_13 = 0;
  	float fLocal_14 = 0f;
  	var uLocal_15 = 0;
  	var uLocal_16 = 0;
  	int iLocal_17 = 0;
  	var uLocal_18 = 0;
  	var uLocal_19 = 0;
  	int iLocal_20 = 0;
  	char* sLocal_21 = NULL;
  	float fLocal_22 = 0f;
  	var uLocal_23 = 0;
  	var uLocal_24 = 0;
  	var uLocal_25 = 0;
  	float fLocal_26 = 0f;
  	float fLocal_27 = 0f;
  	var uLocal_28 = 0;
  	var uLocal_29 = 0;
  	float fLocal_30 = 0f;
  	float fLocal_31 = 0f;
  	float fLocal_32 = 0f;
  	var uLocal_33 = 0;
  	var uLocal_34 = 0;
  	var uLocal_35 = 0;
  	struct<3> Local_36 = { 0, 0, 0 } ;
  	char cLocal_39[16] = "";
  	var uLocal_41 = 0;
  	var uLocal_42 = 0;
  	char cLocal_43[16] = "";
  	var uLocal_45 = 0;
  	var uLocal_46 = 0;
  	int iLocal_47 = 0;
  	int iLocal_48 = 0;
  	int iLocal_49 = 0;
  	int iLocal_50 = 0;
  	int* iLocal_51 = NULL;
  	var uLocal_52 = 3;
  	var uLocal_53 = 0;
  	var uLocal_54 = 0;
  	var uLocal_55 = 0;
  	var uLocal_56 = 0;
  	var uLocal_57 = 0;
  	var uLocal_58 = 1092616192;
  	var uLocal_59 = 1101004800;
  	var uLocal_60 = 0;
  	var uLocal_61 = 0;
  	var uLocal_62 = 0;
  	var uLocal_63 = 0;
  	var uLocal_64 = 0;
  	var uLocal_65 = 0;
  	var uLocal_66 = 0;
  	var uLocal_67 = 0;
  	var uLocal_68 = 3;
  	var uLocal_69 = 0;
  	var uLocal_70 = 0;
  	var uLocal_71 = 0;
  	var uLocal_72 = 0;
  	var uLocal_73 = 0;
  	var uLocal_74 = 0;
  	var uLocal_75 = 0;
  	var uLocal_76 = 16;
  	var uLocal_77 = 0;
  	var uLocal_78 = 0;
  	var uLocal_79 = 0;
  	var uLocal_80 = 0;
  	var uLocal_81 = 0;
  	var uLocal_82 = 0;
  	var uLocal_83 = 0;
  	var uLocal_84 = 0;
  	var uLocal_85 = 0;
  	var uLocal_86 = 0;
  	var uLocal_87 = 0;
  	var uLocal_88 = 0;
  	var uLocal_89 = 0;
  	var uLocal_90 = 0;
  	var uLocal_91 = 0;
  	var uLocal_92 = 0;
  	var uLocal_93 = 0;
  	var uLocal_94 = 0;
  	var uLocal_95 = 0;
  	var uLocal_96 = 0;
  	var uLocal_97 = 0;
  	var uLocal_98 = 0;
  	var uLocal_99 = 0;
  	var uLocal_100 = 0;
  	var uLocal_101 = 0;
  	var uLocal_102 = 0;
  	var uLocal_103 = 0;
  	var uLocal_104 = 0;
  	var uLocal_105 = 0;
  	var uLocal_106 = 0;
  	var uLocal_107 = 0;
  	var uLocal_108 = 0;
  	var uLocal_109 = 0;
  	var uLocal_110 = 0;
  	var uLocal_111 = 0;
  	var uLocal_112 = 0;
  	var uLocal_113 = 0;
  	var uLocal_114 = 0;
  	var uLocal_115 = 0;
  	var uLocal_116 = 0;
  	var uLocal_117 = 0;
  	var uLocal_118 = 0;
  	var uLocal_119 = 0;
  	var uLocal_120 = 0;
  	var uLocal_121 = 0;
  	var uLocal_122 = 0;
  	var uLocal_123 = 0;
  	var uLocal_124 = 0;
  	var uLocal_125 = 0;
  	var uLocal_126 = 0;
  	var uLocal_127 = 0;
  	var uLocal_128 = 0;
  	var uLocal_129 = 0;
  	var uLocal_130 = 0;
  	var uLocal_131 = 0;
  	var uLocal_132 = 0;
  	var uLocal_133 = 0;
  	var uLocal_134 = 0;
  	var uLocal_135 = 0;
  	var uLocal_136 = 0;
  	var uLocal_137 = 0;
  	var uLocal_138 = 0;
  	var uLocal_139 = 0;
  	var uLocal_140 = 0;
  	var uLocal_141 = 0;
  	var uLocal_142 = 0;
  	var uLocal_143 = 0;
  	var uLocal_144 = 0;
  	var uLocal_145 = 0;
  	var uLocal_146 = 0;
  	var uLocal_147 = 0;
  	var uLocal_148 = 0;
  	var uLocal_149 = 0;
  	var uLocal_150 = 0;
  	var uLocal_151 = 0;
  	var uLocal_152 = 0;
  	var uLocal_153 = 0;
  	var uLocal_154 = 0;
  	var uLocal_155 = 0;
  	var uLocal_156 = 0;
  	var uLocal_157 = 0;
  	var uLocal_158 = 0;
  	var uLocal_159 = 0;
  	var uLocal_160 = 0;
  	var uLocal_161 = 0;
  	var uLocal_162 = 0;
  	var uLocal_163 = 0;
  	var uLocal_164 = 0;
  	var uLocal_165 = 0;
  	var uLocal_166 = 0;
  	var uLocal_167 = 0;
  	var uLocal_168 = 0;
  	var uLocal_169 = 0;
  	var uLocal_170 = 0;
  	var uLocal_171 = 0;
  	var uLocal_172 = 0;
  	var uLocal_173 = 0;
  	var uLocal_174 = 0;
  	var uLocal_175 = 0;
  	var uLocal_176 = 0;
  	var uLocal_177 = 0;
  	var uLocal_178 = 0;
  	var uLocal_179 = 0;
  	var uLocal_180 = 0;
  	var uLocal_181 = 0;
  	var uLocal_182 = 0;
  	var uLocal_183 = 0;
  	var uLocal_184 = 0;
  	var uLocal_185 = 0;
  	var uLocal_186 = 0;
  	var uLocal_187 = 0;
  	var uLocal_188 = 0;
  	var uLocal_189 = 0;
  	var uLocal_190 = 0;
  	var uLocal_191 = 0;
  	var uLocal_192 = 0;
  	var uLocal_193 = 0;
  	var uLocal_194 = 0;
  	var uLocal_195 = 0;
  	var uLocal_196 = 0;
  	var uLocal_197 = 0;
  	var uLocal_198 = 0;
  	var uLocal_199 = 0;
  	var uLocal_200 = 0;
  	var uLocal_201 = 0;
  	var uLocal_202 = 0;
  	var uLocal_203 = 0;
  	var uLocal_204 = 0;
  	var uLocal_205 = 0;
  	var uLocal_206 = 0;
  	var uLocal_207 = 0;
  	var uLocal_208 = 0;
  	var uLocal_209 = 0;
  	var uLocal_210 = 0;
  	var uLocal_211 = 0;
  	var uLocal_212 = 0;
  	var uLocal_213 = 0;
  	var uLocal_214 = 0;
  	var uLocal_215 = 0;
  	var uLocal_216 = 0;
  	var uLocal_217 = 0;
  	var uLocal_218 = 0;
  	var uLocal_219 = 0;
  	var uLocal_220 = 0;
  	var uLocal_221 = 0;
  	var uLocal_222 = 0;
  	var uLocal_223 = 0;
  	var uLocal_224 = 0;
  	var uLocal_225 = 0;
  	var uLocal_226 = 0;
  	var uLocal_227 = 0;
  	var uLocal_228 = 0;
  	var uLocal_229 = 0;
  	var uLocal_230 = 0;
  	var uLocal_231 = 0;
  	var uLocal_232 = 0;
  	var uLocal_233 = 0;
  	var uLocal_234 = 0;
  	var uLocal_235 = 0;
  	var uLocal_236 = 0;
  	var uLocal_237 = 0;
  	var uLocal_238 = 0;
  	var uLocal_239 = 0;
  	var uLocal_240 = 0;
  	int iLocal_241 = 0;
  	struct<8> Local_242[10];
  	int iLocal_323 = 0;
  	int iLocal_324 = 0;
  	int iLocal_325 = 0;
  	bool bLocal_326 = 0;
  	int iLocal_327 = 0;
  	int iLocal_328 = 0;
  	int iLocal_329 = 0;
  	float fLocal_330 = 0f;
  	int iLocal_331 = 0;
  	int iLocal_332 = 0;
  #endregion
  
  void __EntryFunction__()
  {
  	iLocal_2 = 1;
  	iLocal_3 = 134;
  	iLocal_4 = 134;
  	iLocal_5 = 1;
  	iLocal_6 = 1;
  	iLocal_7 = 1;
  	iLocal_8 = 134;
  	iLocal_9 = 1;
  	iLocal_10 = 12;
  	iLocal_11 = 12;
  	fLocal_14 = 0.001f;
  	iLocal_17 = -1;
  	iLocal_20 = 3;
  	sLocal_21 = "NULL";
  	fLocal_22 = 0f;
  	fLocal_26 = -0.0375f;
  	fLocal_27 = 0.17f;
  	fLocal_30 = 80f;
  	fLocal_31 = 140f;
  	fLocal_32 = 180f;
  	Local_36 = { -1078.86f, -2943.56f, 12.95f };
  	StringCopy(&cLocal_39, "PMPLANE", 16);
  	StringCopy(&cLocal_43, "", 16);
  	iLocal_49 = -1;
  	MISC::SET_MISSION_FLAG(true);
  	if (PLAYER::HAS_FORCE_CLEANUP_OCCURRED(3))
  	{
  		func_149(2);
  		func_148();
  	}
  	func_143();
  	while (true)
  	{
  		SYSTEM::WAIT(0);
  		if (func_142())
  		{
  			iLocal_49 = -1;
  		}
  		else if (iLocal_49 == -1)
  		{
  			iLocal_49 = MISC::GET_GAME_TIMER();
  		}
  		func_1();
  	}
  }
  
  void func_1()
  {
  	struct<3> Var0;
  	char cVar3[16];
  	float fVar7;
  	int iVar8;
  	
  	Var0 = { -1085.279f, -2970.573f, 12.9457f };
  	iLocal_329 = 0;
  	if (ENTITY::DOES_ENTITY_EXIST(iLocal_241))
  	{
  		if (!VEHICLE::IS_VEHICLE_DRIVEABLE(iLocal_241, false))
  		{
  			func_141();
  		}
  		else if (iLocal_47 == 2)
  		{
  			if (!PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iLocal_241, false))
  			{
  				if (!HUD::DOES_BLIP_EXIST(iLocal_50))
  				{
  					func_140("BK_PLANE", 7500, 1);
  					iLocal_50 = func_139(iLocal_241, 0, 0);
  				}
  				if (func_138(PLAYER::PLAYER_PED_ID(), iLocal_241, 1) > 300f)
  				{
  					func_141();
  				}
  			}
  			else if (HUD::DOES_BLIP_EXIST(iLocal_50))
  			{
  				HUD::CLEAR_PRINTS();
  				HUD::REMOVE_BLIP(&iLocal_50);
  			}
  		}
  	}
  	if ((((ENTITY::DOES_ENTITY_EXIST(iLocal_241) && PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iLocal_241, false)) && ENTITY::IS_ENTITY_IN_AIR(iLocal_241)) && iLocal_325) && AUDIO::REQUEST_SCRIPT_AUDIO_BANK("PLANES", false, -1))
  	{
  		if (!bLocal_326)
  		{
  			if (PAD::IS_CONTROL_JUST_PRESSED(0, 114))
  			{
  				if (iLocal_324 == -1 || (MISC::GET_GAME_TIMER() - iLocal_324) > 2000)
  				{
  					if (!GRAPHICS::DOES_PARTICLE_FX_LOOPED_EXIST(iLocal_332))
  					{
  						iLocal_332 = GRAPHICS::START_PARTICLE_FX_LOOPED_ON_ENTITY("scr_property_leaflet_drop", iLocal_241, 0f, -2f, -0.65f, 0f, 0f, 0f, 1f, false, false, false);
  						fLocal_330 = 0f;
  					}
  					if (func_137("LEAFLET"))
  					{
  						HUD::CLEAR_HELP(true);
  					}
  					AUDIO::PLAY_SOUND_FROM_ENTITY(-1, "PROPERTIES_PLANE_PROMO_MASTER", iLocal_241, 0, false, 0);
  					iLocal_324 = MISC::GET_GAME_TIMER();
  					bLocal_326 = true;
  				}
  			}
  		}
  		else if ((MISC::GET_GAME_TIMER() - iLocal_324) > 3000)
  		{
  			bLocal_326 = false;
  		}
  	}
  	else if (GRAPHICS::DOES_PARTICLE_FX_LOOPED_EXIST(iLocal_332))
  	{
  		GRAPHICS::STOP_PARTICLE_FX_LOOPED(iLocal_332, false);
  		fLocal_330 = 0f;
  	}
  	if (GRAPHICS::DOES_PARTICLE_FX_LOOPED_EXIST(iLocal_332))
  	{
  		if (bLocal_326)
  		{
  			fVar7 = 1f;
  		}
  		else
  		{
  			fVar7 = -1f;
  		}
  		fLocal_330 = (fLocal_330 + ((fVar7 * SYSTEM::TIMESTEP()) * 100f));
  		fLocal_330 = func_136(fLocal_330, 0f, 1f);
  		GRAPHICS::SET_PARTICLE_FX_LOOPED_EVOLUTION(iLocal_332, "spawn", fLocal_330, false);
  	}
  	switch (iLocal_47)
  	{
  		case 0:
  			STREAMING::REQUEST_MODEL(joaat("stunt"));
  			if (STREAMING::HAS_MODEL_LOADED(joaat("stunt")))
  			{
  				iLocal_241 = Global_110568.f_222[0];
  				if (!ENTITY::DOES_ENTITY_EXIST(iLocal_241))
  				{
  					iLocal_241 = VEHICLE::CREATE_VEHICLE(joaat("stunt"), Var0, 121.2244f, true, true, false);
  					VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(iLocal_241, 5f);
  				}
  				else
  				{
  					ENTITY::SET_ENTITY_AS_MISSION_ENTITY(iLocal_241, true, true);
  				}
  				STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(joaat("stunt"));
  				HUD::CLEAR_PRINTS();
  				func_140("GET_PLANE", 7500, 1);
  				iLocal_50 = func_139(iLocal_241, 0, 0);
  				STREAMING::REQUEST_PTFX_ASSET();
  				func_133(&iLocal_51, 1, 0);
  				iLocal_47++;
  			}
  			break;
  		
  		case 1:
  			if (ENTITY::DOES_ENTITY_EXIST(iLocal_241) && VEHICLE::IS_VEHICLE_DRIVEABLE(iLocal_241, false))
  			{
  				if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iLocal_241, false))
  				{
  					HUD::CLEAR_PRINTS();
  					func_140("TAKEOFF", 7500, 1);
  					if (HUD::DOES_BLIP_EXIST(iLocal_50))
  					{
  						HUD::REMOVE_BLIP(&iLocal_50);
  					}
  					func_80(-1021.522f, -2986.142f, 12.9519f, 341.6539f, 0, 145);
  					iLocal_47++;
  				}
  			}
  			break;
  		
  		case 2:
  			iVar8 = 0;
  			while (iVar8 < Local_242)
  			{
  				if (func_76(&(Local_242[iVar8 /*8*/])))
  				{
  					iLocal_323++;
  				}
  				iVar8++;
  			}
  			if ((10 - iLocal_323) <= 0)
  			{
  				iLocal_47++;
  			}
  			break;
  		
  		case 3:
  			if (func_30(&iLocal_51, Local_36, -1067.083f, -2922.601f, 12.82418f, -1091.854f, -2965.403f, 23.94564f, 31.5625f, 1, iLocal_241, "LAND", "", "BK_PLANE", 1, 0, 1, -1) && !ENTITY::IS_ENTITY_IN_AIR(iLocal_241))
  			{
  				func_133(&iLocal_51, 1, 0);
  				iLocal_47++;
  			}
  			break;
  		
  		case 4:
  			if (func_28(iLocal_241, 1093140480, 1, 0f, 0, 1, 0))
  			{
  				iLocal_47++;
  			}
  			break;
  		
  		case 5:
  			TASK::TASK_LEAVE_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), 0, 0);
  			VEHICLE::SET_VEHICLE_IS_CONSIDERED_BY_PLAYER(iLocal_241, false);
  			func_27();
  			break;
  	}
  	switch (iLocal_48)
  	{
  		case 0:
  			if ((10 - iLocal_323) <= 0)
  			{
  				iLocal_48++;
  			}
  			else if ((func_26() && (MISC::GET_GAME_TIMER() - iLocal_49) > 5000) && iLocal_329)
  			{
  				StringCopy(&cVar3, "RAND_", 16);
  				StringConCat(&cVar3, &cLocal_43, 16);
  				if (func_25(49) && MISC::GET_RANDOM_INT_IN_RANGE(0, 3) == 0)
  				{
  					StringConCat(&cVar3, "M", 16);
  				}
  				else if (iLocal_331 > 0)
  				{
  					StringIntConCat(&cVar3, iLocal_331 + 1, 16);
  				}
  				if (func_2(&uLocal_76, &cLocal_39, &cVar3, 8, 0, 0, 0))
  				{
  					iLocal_331++;
  					if (iLocal_331 >= 6)
  					{
  						iLocal_331 = 0;
  					}
  					StringCopy(&cVar3, "", 16);
  				}
  			}
  			break;
  		
  		case 1:
  			if (func_26() && (MISC::GET_GAME_TIMER() - iLocal_49) > 1000)
  			{
  				if (func_2(&uLocal_76, &cLocal_39, "DONE", 8, 0, 0, 0))
  				{
  					StringCopy(&cVar3, "", 16);
  					iLocal_48++;
  				}
  			}
  			break;
  	}
  }
  
  bool func_2(var uParam0, char* sParam1, char* sParam2, int iParam3, int iParam4, int iParam5, int iParam6)
  {
  	func_24(uParam0, 145, sParam1, iParam4, iParam5, iParam6);
  	if (iParam3 > 7)
  	{
  		if (iParam3 < 12)
  		{
  			iParam3 = 7;
  		}
  	}
  	Global_21012 = 0;
  	Global_21014 = 0;
  	Global_21019 = 0;
  	Global_21996 = 0;
  	Global_21998 = 0;
  	Global_22002 = 0;
  	Global_2621441 = 0;
  	return func_3(sParam2, iParam3, 0);
  }
  
  int func_3(char* sParam0, int iParam1, bool bParam2)
  {
  	Global_21006 = 0;
  	if (Global_21005 == 0 || Global_21007 == 2)
  	{
  		if (Global_21005 != 0)
  		{
  			if (iParam1 > Global_21007)
  			{
  				if (Global_21012 == 0)
  				{
  					AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  					Global_19681.f_1 = 3;
  					Global_21005 = 0;
  					Global_21006 = 1;
  					Global_21058 = 0;
  					Global_21001 = 0;
  					Global_21002 = 0;
  					Global_21016 = 0;
  					Global_21015 = 0;
  					Global_19680 = 0;
  				}
  				else
  				{
  					func_23();
  					return 0;
  				}
  			}
  			else
  			{
  				return 0;
  			}
  		}
  		if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  		{
  			return 0;
  		}
  		if (func_22(8, -1))
  		{
  			return 0;
  		}
  		Global_21081 = { Global_21075 };
  		func_21();
  		Global_20294 = { Global_20459 };
  		Global_21011 = Global_21012;
  		Global_21018 = Global_21019;
  		Global_2621442 = Global_2621441;
  		Global_21020 = { Global_21036 };
  		Global_21013 = Global_21014;
  		Global_21995 = Global_21996;
  		Global_22003 = { Global_22009 };
  		Global_21997 = Global_21998;
  		Global_21999 = Global_22000;
  		Global_22001 = Global_22002;
  		Global_20624.f_370 = Global_21994;
  		Global_20624.f_368 = Global_21992;
  		Global_20624.f_369 = Global_21993;
  		Global_21001 = Global_21002;
  		if (Global_21011)
  		{
  			MISC::CLEAR_BIT(&Global_7551, 20);
  			MISC::CLEAR_BIT(&Global_7552, 17);
  			MISC::CLEAR_BIT(&Global_7553, 0);
  			if (bParam2)
  			{
  				func_13();
  				if (Global_8356[Global_19681 /*2811*/][0 /*281*/].f_259 == 2)
  				{
  					if (iParam1 == 13)
  					{
  					}
  					else
  					{
  						return 0;
  					}
  				}
  				if (Global_19681.f_1 > 3)
  				{
  					return 0;
  				}
  			}
  			if (Global_19647 == 1)
  			{
  				return 0;
  			}
  			if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  			{
  				if (PED::IS_PED_IN_MELEE_COMBAT(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (func_12())
  				{
  					return 0;
  				}
  				if (TASK::IS_PED_SPRINTING(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_RAGDOLL(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (PED::IS_PED_IN_PARACHUTE_FREE_FALL(PLAYER::PLAYER_PED_ID()))
  				{
  					return 0;
  				}
  				if (WEAPON::GET_IS_PED_GADGET_EQUIPPED(PLAYER::PLAYER_PED_ID(), joaat("gadget_parachute")))
  				{
  					return 0;
  				}
  				if (!Global_76833)
  				{
  					if (ENTITY::IS_ENTITY_IN_WATER(PLAYER::PLAYER_PED_ID()))
  					{
  						return 0;
  					}
  					if (PLAYER::IS_PLAYER_CLIMBING(PLAYER::PLAYER_ID()))
  					{
  						return 0;
  					}
  					if (PED::IS_PED_PLANTING_BOMB(PLAYER::PLAYER_PED_ID()))
  					{
  						return 0;
  					}
  					if (PLAYER::IS_SPECIAL_ABILITY_ACTIVE(PLAYER::PLAYER_ID(), 0))
  					{
  						return 0;
  					}
  				}
  			}
  			if (func_11())
  			{
  				return 0;
  			}
  			else
  			{
  				switch (Global_19681.f_1)
  				{
  					case 7:
  						return 0;
  						break;
  					
  					case 8:
  						return 0;
  						break;
  					
  					case 9:
  						break;
  					
  					case 10:
  						break;
  					
  					default:
  						break;
  				}
  				if (MISC::IS_BIT_SET(Global_7551, 9))
  				{
  					return 0;
  				}
  			}
  			func_10();
  			Global_21015 = bParam2;
  		}
  		Global_21007 = iParam1;
  		StringCopy(&Global_20624, sParam0, 24);
  		Global_19871 = 0;
  		func_9();
  		func_4();
  		return 1;
  	}
  	if (Global_21005 == 5)
  	{
  		return 0;
  	}
  	if (iParam1 < Global_21007 || iParam1 == Global_21007)
  	{
  		return 0;
  	}
  	if (iParam1 == 2)
  	{
  	}
  	else
  	{
  		func_23();
  	}
  	return 0;
  }
  
  void func_4()
  {
  	if (!func_5())
  	{
  		return;
  	}
  	if (Global_21011)
  	{
  		MemCopy(&(Global_1703978.f_1), {Global_20624}, 4);
  		Global_1703978 = Global_6866;
  		Global_1703978.f_6 = Global_21015;
  	}
  }
  
  int func_5()
  {
  	if (!Global_262145.f_28160)
  	{
  		return 0;
  	}
  	if (!Global_76833)
  	{
  		return 0;
  	}
  	if (PLAYER::PLAYER_ID() == func_8())
  	{
  		return 0;
  	}
  	if (func_6(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	if (MISC::IS_BIT_SET(Global_1630317[PLAYER::PLAYER_ID() /*595*/].f_1, 7))
  	{
  		return 0;
  	}
  	if (NETWORK::NETWORK_IS_ACTIVITY_SESSION())
  	{
  		return 0;
  	}
  	return 1;
  }
  
  bool func_6(int iParam0)
  {
  	return func_7(iParam0, 20);
  }
  
  bool func_7(int iParam0, int iParam1)
  {
  	return MISC::IS_BIT_SET(Global_1630317[iParam0 /*595*/].f_11.f_4, iParam1);
  }
  
  int func_8()
  {
  	return -1;
  }
  
  void func_9()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 69)
  	{
  		StringCopy(&(Global_19873[iVar0 /*6*/]), "", 24);
  		iVar0++;
  	}
  	AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  	Global_21005 = 1;
  }
  
  void func_10()
  {
  	Global_21058 = Global_21057;
  	Global_21052 = Global_21053;
  	Global_21099 = { Global_21087 };
  	Global_21105 = { Global_21093 };
  	Global_21060 = Global_21059;
  	Global_21129 = { Global_21111 };
  	Global_21135 = { Global_21117 };
  	Global_21141 = { Global_21123 };
  	Global_21147 = { Global_21153 };
  	Global_6866 = Global_6867;
  	Global_6868 = Global_6869;
  	Global_21016 = Global_21017;
  	Global_21018 = Global_21019;
  	Global_21020 = { Global_21036 };
  	Global_21009 = Global_21010;
  	Global_22021 = 0;
  	Global_21054 = 0;
  	Global_21055 = 0;
  	MISC::CLEAR_BIT(&Global_7552, 16);
  }
  
  int func_11()
  {
  	if (Global_19681.f_1 == 1 || Global_19681.f_1 == 0)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_12()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_76833)
  	{
  		iVar0 = 0;
  		WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::PLAYER_PED_ID(), &iVar1, true);
  		if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			if ((iVar1 == joaat("WEAPON_SNIPERRIFLE") || iVar1 == joaat("WEAPON_HEAVYSNIPER")) || iVar1 == joaat("weapon_remotesniper"))
  			{
  				iVar0 = 1;
  			}
  		}
  		if (CAM::IS_AIM_CAM_ACTIVE() && iVar0 == 1)
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (PED::GET_PED_CONFIG_FLAG(PLAYER::PLAYER_PED_ID(), 78, true))
  		{
  			return 1;
  		}
  		else
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  void func_13()
  {
  	if (func_20(14))
  	{
  		if (!ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  		{
  			if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_111858.f_28046[0 /*29*/])
  			{
  				Global_19681 = 0;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_111858.f_28046[1 /*29*/])
  			{
  				Global_19681 = 1;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()) == Global_111858.f_28046[2 /*29*/])
  			{
  				Global_19681 = 2;
  			}
  			else
  			{
  				Global_19681 = 0;
  			}
  		}
  	}
  	else
  	{
  		Global_19681 = func_14();
  		if (Global_19681 == 145)
  		{
  			Global_19681 = 3;
  		}
  		if (Global_76833)
  		{
  			Global_19681 = 3;
  		}
  		if (Global_19681 > 3)
  		{
  			Global_19681 = 3;
  		}
  	}
  }
  
  var func_14()
  {
  	func_15();
  	return Global_111858.f_2359.f_539.f_4321;
  }
  
  void func_15()
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(PLAYER::PLAYER_PED_ID()))
  	{
  		if (func_18(Global_111858.f_2359.f_539.f_4321) != ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()))
  		{
  			iVar0 = func_17(PLAYER::PLAYER_PED_ID());
  			if (func_16(iVar0) && (!func_20(14) || Global_110809))
  			{
  				if (Global_111858.f_2359.f_539.f_4321 != iVar0 && func_16(Global_111858.f_2359.f_539.f_4321))
  				{
  					Global_111858.f_2359.f_539.f_4322 = Global_111858.f_2359.f_539.f_4321;
  				}
  				Global_111858.f_2359.f_539.f_4323 = iVar0;
  				Global_111858.f_2359.f_539.f_4321 = iVar0;
  				return;
  			}
  		}
  		else
  		{
  			if (Global_111858.f_2359.f_539.f_4321 != 145)
  			{
  				Global_111858.f_2359.f_539.f_4323 = Global_111858.f_2359.f_539.f_4321;
  			}
  			return;
  		}
  	}
  	Global_111858.f_2359.f_539.f_4321 = 145;
  }
  
  bool func_16(int iParam0)
  {
  	return iParam0 < 3;
  }
  
  int func_17(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		iVar1 = ENTITY::GET_ENTITY_MODEL(iParam0);
  		iVar0 = 0;
  		while (iVar0 <= 2)
  		{
  			if (func_18(iVar0) == iVar1)
  			{
  				return iVar0;
  			}
  			iVar0++;
  		}
  	}
  	return 145;
  }
  
  int func_18(int iParam0)
  {
  	if (func_16(iParam0))
  	{
  		return func_19(iParam0);
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  var func_19(int iParam0)
  {
  	return Global_1848[iParam0 /*29*/];
  }
  
  bool func_20(int iParam0)
  {
  	return Global_41631 == iParam0;
  }
  
  void func_21()
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 <= 15)
  	{
  		Global_20294[iVar0 /*10*/] = 0;
  		StringCopy(&(Global_20294[iVar0 /*10*/].f_1), "", 24);
  		Global_20294[iVar0 /*10*/].f_7 = 0;
  		Global_20294[iVar0 /*10*/].f_8 = 0;
  		iVar0++;
  	}
  	Global_20294.f_161 = -99;
  	Global_20294.f_162 = { 0f, 0f, 0f };
  }
  
  bool func_22(int iParam0, int iParam1)
  {
  	switch (iParam0)
  	{
  		case 5:
  			if (iParam1 > -1)
  			{
  				return Global_1377236.f_203[iParam1];
  			}
  			break;
  	}
  	return MISC::IS_BIT_SET(Global_1377236.f_1048, iParam0);
  }
  
  void func_23()
  {
  	AUDIO::RESTART_SCRIPTED_CONVERSATION();
  	Global_22016 = 0;
  	if ((AUDIO::IS_MOBILE_PHONE_CALL_ONGOING() || Global_19681.f_1 == 9) || Global_19680 == 1)
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(false);
  		Global_21005 = 6;
  		Global_19681.f_1 = 3;
  		return;
  	}
  	if (AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		AUDIO::STOP_SCRIPTED_CONVERSATION(true);
  		Global_21005 = 6;
  		return;
  	}
  }
  
  void func_24(var uParam0, int iParam1, char* sParam2, int iParam3, int iParam4, var uParam5)
  {
  	Global_20459 = { *uParam0 };
  	Global_6867 = iParam1;
  	StringCopy(&Global_21075, sParam2, 24);
  	Global_21994 = uParam5;
  	if (iParam3 == 0)
  	{
  		Global_21992 = 1;
  		Global_21990 = 0;
  	}
  	else
  	{
  		Global_21992 = 0;
  		Global_21990 = 1;
  	}
  	if (iParam4 == 0)
  	{
  		Global_21993 = 1;
  		Global_21991 = 0;
  	}
  	else
  	{
  		Global_21993 = 0;
  		Global_21991 = 1;
  	}
  }
  
  int func_25(int iParam0)
  {
  	if (iParam0 == 94 || iParam0 == -1)
  	{
  		return 0;
  	}
  	return Global_111858.f_9081.f_330[iParam0 /*6*/];
  }
  
  int func_26()
  {
  	if (func_142())
  	{
  		return 0;
  	}
  	if (HUD::IS_SUBTITLE_PREFERENCE_SWITCHED_ON())
  	{
  		if (HUD::IS_MESSAGE_BEING_DISPLAYED())
  		{
  			return 0;
  		}
  	}
  	return 1;
  }
  
  void func_27()
  {
  	func_149(1);
  	func_148();
  }
  
  int func_28(int iParam0, float fParam1, int iParam2, float fParam3, bool bParam4, bool bParam5, bool bParam6)
  {
  	PAD::DISABLE_CONTROL_ACTION(0, 71, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 72, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 76, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 73, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 59, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 60, true);
  	if (bParam5)
  	{
  		PAD::DISABLE_CONTROL_ACTION(0, 75, true);
  	}
  	PAD::DISABLE_CONTROL_ACTION(0, 80, true);
  	if (!bParam6)
  	{
  		PAD::DISABLE_CONTROL_ACTION(0, 69, true);
  		PAD::DISABLE_CONTROL_ACTION(0, 70, true);
  		PAD::DISABLE_CONTROL_ACTION(0, 68, true);
  	}
  	PAD::DISABLE_CONTROL_ACTION(0, 74, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 86, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 81, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 82, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 138, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 136, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 114, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 107, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 110, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 89, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 89, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 87, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 88, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 113, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 115, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 116, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 117, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 118, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 119, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 352, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 131, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 132, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 123, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 126, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 129, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 130, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 133, true);
  	PAD::DISABLE_CONTROL_ACTION(0, 134, true);
  	CAM::_0x17FCA7199A530203();
  	func_29(iParam0);
  	if ((MISC::GET_GAME_TIMER() - Global_29) > 500)
  	{
  		VEHICLE::BRING_VEHICLE_TO_HALT(iParam0, fParam1, iParam2, bParam4);
  	}
  	Global_29 = MISC::GET_GAME_TIMER();
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (MISC::ABSF(ENTITY::GET_ENTITY_SPEED(iParam0)) <= fParam3)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_29(int iParam0)
  {
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		if (VEHICLE::_GET_HAS_ROCKET_BOOST(iParam0))
  		{
  			if (VEHICLE::_IS_VEHICLE_ROCKET_BOOST_ACTIVE(iParam0))
  			{
  				VEHICLE::_SET_VEHICLE_ROCKET_BOOST_ACTIVE(iParam0, false);
  			}
  		}
  	}
  }
  
  int func_30(int* iParam0, struct<3> Param1, struct<3> Param4, struct<3> Param7, float fParam10, bool bParam11, int iParam12, char* sParam13, char* sParam14, char* sParam15, bool bParam16, int iParam17, bool bParam18, int iParam19)
  {
  	return func_31(iParam0, Param1, func_75(), Param4, Param7, bParam11, 5, 0, 0, 0, iParam12, sParam13, func_74(), func_74(), func_74(), func_74(), sParam14, 0, bParam16, sParam15, 1, iParam17, bParam18, iParam19, func_74(), func_74(), func_74(), 1, fParam10);
  }
  
  int func_31(int* iParam0, struct<3> Param1, struct<3> Param4, struct<3> Param7, struct<3> Param10, bool bParam13, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18, char* sParam19, char* sParam20, char* sParam21, char* sParam22, char* sParam23, char* sParam24, bool bParam25, bool bParam26, char* sParam27, bool bParam28, int iParam29, bool bParam30, int iParam31, var uParam32, var uParam33, var uParam34, bool bParam35, float fParam36)
  {
  	int iVar0;
  	bool bVar1;
  	int iVar2;
  	struct<3> Var3;
  	bool bVar6;
  	int iVar7;
  	int iVar8;
  	int iVar9;
  	
  	Var3 = { Param1 + Vector(1f, 0f, 0f) };
  	iParam0->f_17[0] = iParam15;
  	iParam0->f_17[1] = iParam16;
  	iParam0->f_17[2] = iParam17;
  	iParam0->f_16 = iParam15;
  	func_73(iParam0);
  	func_72(iParam0);
  	func_71();
  	if (func_54(iParam0, iParam0->f_17[0], iParam0->f_17[1], iParam0->f_17[2], sParam20, sParam21, sParam22, sParam23, iParam0->f_8, bParam25, iParam18, 0, 0, uParam32, uParam33, uParam34, iParam14, bParam26))
  	{
  		func_53(sParam20);
  		func_53(sParam21);
  		func_53(sParam22);
  		func_53(sParam23);
  		if (CAM::IS_SCREEN_FADED_IN())
  		{
  			bVar1 = false;
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam18, false))
  			{
  				if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam18, false))
  				{
  					MISC::SET_BIT(&(iParam0->f_13), 3);
  					if (!MISC::IS_BIT_SET(iParam0->f_13, 9))
  					{
  						MISC::CLEAR_BIT(&(iParam0->f_13), 4);
  					}
  					if (MISC::IS_BIT_SET(iParam0->f_13, 23))
  					{
  						MISC::CLEAR_BIT(&(iParam0->f_13), 23);
  					}
  					MISC::SET_BIT(&(iParam0->f_13), 9);
  					bVar1 = true;
  				}
  			}
  			else if (iParam14 == 4 || iParam14 == 5)
  			{
  				if (func_51(iParam0, iParam29))
  				{
  					MISC::SET_BIT(&(iParam0->f_13), 3);
  					if (!MISC::IS_BIT_SET(iParam0->f_13, 9))
  					{
  						MISC::CLEAR_BIT(&(iParam0->f_13), 4);
  					}
  					MISC::SET_BIT(&(iParam0->f_13), 9);
  					bVar1 = true;
  				}
  			}
  			else
  			{
  				bVar1 = true;
  			}
  			if (bVar1)
  			{
  				func_53(sParam24);
  				func_53(sParam27);
  				func_53("MORE_SEATS");
  				if (bParam26 && PLAYER::IS_PLAYER_WANTED_LEVEL_GREATER(PLAYER::PLAYER_ID(), 0))
  				{
  					if (HUD::DOES_BLIP_EXIST(iParam0->f_5))
  					{
  						HUD::REMOVE_BLIP(&(iParam0->f_5));
  						func_53(sParam19);
  					}
  					if (HUD::DOES_BLIP_EXIST(*iParam0))
  					{
  						HUD::REMOVE_BLIP(iParam0);
  					}
  					if ((!func_48(iParam0, 1) && !func_47(iParam0)) && !MISC::IS_BIT_SET(iParam0->f_13, 0))
  					{
  						if (bParam30)
  						{
  							func_46(iParam0, "LOSE_WANTED", 0);
  							if (!PED::IS_PED_INJURED(iParam0->f_17[0]))
  							{
  								func_44(iParam0->f_17[0], "VEHICLE_POLICE_PURSUIT", 3);
  							}
  						}
  						MISC::SET_BIT(&(iParam0->f_13), 0);
  						MISC::CLEAR_BIT(&(iParam0->f_13), 1);
  					}
  				}
  				else
  				{
  					if (MISC::IS_BIT_SET(iParam0->f_13, 0))
  					{
  						func_53("LOSE_WANTED");
  						MISC::CLEAR_BIT(&(iParam0->f_13), 0);
  						MISC::SET_BIT(&(iParam0->f_13), 1);
  					}
  					if (MISC::IS_BIT_SET(iParam0->f_13, 1))
  					{
  						if (!func_48(iParam0, 1))
  						{
  							if (!PED::IS_PED_INJURED(iParam0->f_17[0]))
  							{
  								func_44(iParam0->f_17[0], "LOSE_WANTED_LEVEL", 3);
  							}
  							MISC::CLEAR_BIT(&(iParam0->f_13), 1);
  						}
  					}
  					if (!HUD::DOES_BLIP_EXIST(iParam0->f_5))
  					{
  						if (HUD::DOES_BLIP_EXIST(*iParam0))
  						{
  							HUD::REMOVE_BLIP(iParam0);
  						}
  						iParam0->f_5 = func_43(Var3, 0);
  						if (!iParam31 == -1)
  						{
  							HUD::SET_BLIP_SPRITE(iParam0->f_5, iParam31);
  						}
  						if (bParam35)
  						{
  							func_42(iParam0->f_5, iParam0);
  						}
  					}
  					else if (!func_41(Var3, HUD::GET_BLIP_COORDS(iParam0->f_5), 0.1f, 0))
  					{
  						HUD::SET_BLIP_COORDS(iParam0->f_5, Var3);
  						if (bParam35)
  						{
  							func_42(iParam0->f_5, iParam0);
  						}
  					}
  					if (!func_48(iParam0, 2))
  					{
  						if (!MISC::IS_BIT_SET(iParam0->f_13, 2))
  						{
  							func_46(iParam0, sParam19, 0);
  							MISC::SET_BIT(&(iParam0->f_13), 2);
  						}
  					}
  					if (iParam14 == 4 || iParam14 == 5)
  					{
  						if (MISC::IS_BIT_SET(iParam0->f_13, 13))
  						{
  							bParam13 = false;
  						}
  					}
  					bVar1 = false;
  					bVar6 = false;
  					iVar7 = 0;
  					if ((iParam14 == 1 || iParam14 == 3) || iParam14 == 5)
  					{
  						bVar6 = true;
  					}
  					if (iParam14 == 2 || iParam14 == 3)
  					{
  						iVar7 = 1;
  					}
  					else if (iParam14 == 4 || iParam14 == 5)
  					{
  						iVar7 = 2;
  					}
  					if (bParam28)
  					{
  						ENTITY::IS_ENTITY_AT_COORD(PLAYER::PLAYER_PED_ID(), Param1, Param4, bParam13, bVar6, iVar7);
  						if (ENTITY::IS_ENTITY_IN_ANGLED_AREA(PLAYER::PLAYER_PED_ID(), Param7, Param10, fParam36, false, bVar6, iVar7))
  						{
  							bVar1 = true;
  						}
  					}
  					else if (ENTITY::IS_ENTITY_AT_COORD(PLAYER::PLAYER_PED_ID(), Param1, Param4, bParam13, bVar6, iVar7))
  					{
  						bVar1 = true;
  					}
  					if (bVar1)
  					{
  						bVar1 = true;
  						iVar2 = 0;
  						while (iVar2 < 3)
  						{
  							if (!PED::IS_PED_INJURED(iParam0->f_17[iVar2]))
  							{
  								if (iParam14 == 4 || iParam14 == 5)
  								{
  									iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  									if (!PED::IS_PED_IN_VEHICLE(iParam0->f_17[iVar2], iVar0, false))
  									{
  										bVar1 = false;
  									}
  								}
  								else if (iParam18 != 0)
  								{
  									if (!PED::IS_PED_IN_VEHICLE(iParam0->f_17[iVar2], iParam18, false))
  									{
  										bVar1 = false;
  									}
  								}
  								else if (!PED::IS_PED_GROUP_MEMBER(iParam0->f_17[iVar2], func_40()) || !func_38(iParam0->f_17[iVar2], 1))
  								{
  									bVar1 = false;
  								}
  							}
  							iVar2++;
  						}
  						if (bVar1)
  						{
  							if (func_35(iParam0))
  							{
  								func_53(sParam19);
  								func_53(sParam24);
  								func_53(sParam20);
  								func_53(sParam21);
  								func_53(sParam22);
  								func_53(sParam23);
  								func_53("LOSE_WANTED");
  								func_53("MORE_SEATS");
  								func_53(sParam27);
  								func_133(iParam0, 1, 0);
  								return 1;
  							}
  						}
  					}
  				}
  			}
  			else if (ENTITY::DOES_ENTITY_EXIST(iParam18))
  			{
  				if ((bParam26 && PLAYER::IS_PLAYER_WANTED_LEVEL_GREATER(PLAYER::PLAYER_ID(), 0)) && (!MISC::IS_BIT_SET(iParam0->f_13, 9) && !MISC::IS_BIT_SET(iParam0->f_13, 22)))
  				{
  					func_53(sParam24);
  					func_53(sParam27);
  					if (HUD::DOES_BLIP_EXIST(iParam0->f_5) || HUD::DOES_BLIP_EXIST(*iParam0))
  					{
  						HUD::REMOVE_BLIP(&(iParam0->f_5));
  						HUD::REMOVE_BLIP(iParam0);
  						func_53(sParam19);
  					}
  					if ((!func_48(iParam0, 1) && !func_47(iParam0)) && !MISC::IS_BIT_SET(iParam0->f_13, 0))
  					{
  						if (bParam30)
  						{
  							func_46(iParam0, "LOSE_WANTED", 0);
  							if (!PED::IS_PED_INJURED(iParam0->f_17[0]))
  							{
  								func_44(iParam0->f_17[0], "VEHICLE_POLICE_PURSUIT", 3);
  							}
  						}
  						MISC::SET_BIT(&(iParam0->f_13), 0);
  						MISC::CLEAR_BIT(&(iParam0->f_13), 1);
  					}
  				}
  				else
  				{
  					if (MISC::IS_BIT_SET(iParam0->f_13, 0))
  					{
  						func_53("LOSE_WANTED");
  						MISC::CLEAR_BIT(&(iParam0->f_13), 0);
  						MISC::SET_BIT(&(iParam0->f_13), 1);
  					}
  					if (MISC::IS_BIT_SET(iParam0->f_13, 1))
  					{
  						if (!func_48(iParam0, 1))
  						{
  							if (!PED::IS_PED_INJURED(iParam0->f_17[0]))
  							{
  								func_44(iParam0->f_17[0], "LOSE_WANTED_LEVEL", 3);
  							}
  							MISC::CLEAR_BIT(&(iParam0->f_13), 1);
  						}
  					}
  					if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam18, false))
  					{
  						if (!HUD::DOES_BLIP_EXIST(*iParam0))
  						{
  							if (HUD::DOES_BLIP_EXIST(iParam0->f_5))
  							{
  								HUD::REMOVE_BLIP(&(iParam0->f_5));
  								func_53(sParam19);
  							}
  							*iParam0 = func_32(iParam18, 0, 0);
  							HUD::SET_BLIP_DISPLAY(*iParam0, 2);
  							if (!MISC::IS_BIT_SET(iParam0->f_13, 4))
  							{
  								func_42(*iParam0, iParam0);
  							}
  						}
  						if (!func_48(iParam0, 2))
  						{
  							if (!MISC::IS_BIT_SET(iParam0->f_13, 3))
  							{
  								func_46(iParam0, sParam24, 0);
  								MISC::SET_BIT(&(iParam0->f_13), 3);
  								MISC::CLEAR_BIT(&(iParam0->f_13), 4);
  							}
  							else if (MISC::IS_BIT_SET(iParam0->f_13, 9))
  							{
  								if (!MISC::IS_STRING_NULL(sParam27))
  								{
  									if (!MISC::IS_BIT_SET(iParam0->f_13, 4))
  									{
  										func_46(iParam0, sParam27, 0);
  										MISC::SET_BIT(&(iParam0->f_13), 4);
  									}
  								}
  								else if (!MISC::IS_BIT_SET(iParam0->f_13, 4))
  								{
  									func_46(iParam0, sParam24, 0);
  									MISC::SET_BIT(&(iParam0->f_13), 4);
  								}
  								if (!MISC::IS_BIT_SET(iParam0->f_13, 23))
  								{
  									if (!PED::IS_PED_INJURED(iParam0->f_17[0]))
  									{
  										func_44(iParam0->f_17[0], "GET_IN_CAR", 3);
  									}
  									MISC::SET_BIT(&(iParam0->f_13), 23);
  								}
  							}
  						}
  					}
  				}
  			}
  			else
  			{
  				if (HUD::DOES_BLIP_EXIST(iParam0->f_5))
  				{
  					HUD::REMOVE_BLIP(&(iParam0->f_5));
  					func_53(sParam19);
  				}
  				if (iParam14 == 4 || iParam14 == 5)
  				{
  					if (iParam29 > 0)
  					{
  						if (!func_48(iParam0, 2))
  						{
  							if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  							{
  								if (!MISC::IS_BIT_SET(iParam0->f_13, 13))
  								{
  									iVar8 = 0;
  									iVar9 = 0;
  									iVar2 = 0;
  									while (iVar2 < 3)
  									{
  										if (!PED::IS_PED_INJURED(iParam0->f_17[iVar2]))
  										{
  											iVar8++;
  										}
  										iVar2++;
  									}
  									iVar9 = MISC::GET_RANDOM_INT_IN_RANGE(0, iVar8);
  									if (!PED::IS_PED_INJURED(iParam0->f_17[iVar9]))
  									{
  										func_44(iParam0->f_17[iVar9], "NEED_A_BIGGER_VEHICLE", 3);
  									}
  									func_46(iParam0, "MORE_SEATS", 0);
  									MISC::SET_BIT(&(iParam0->f_13), 13);
  								}
  							}
  							else if (!MISC::IS_BIT_SET(iParam0->f_13, 3))
  							{
  								func_46(iParam0, sParam24, 0);
  								MISC::SET_BIT(&(iParam0->f_13), 3);
  								MISC::CLEAR_BIT(&(iParam0->f_13), 4);
  							}
  							else if (!MISC::IS_BIT_SET(iParam0->f_13, 4))
  							{
  								if (MISC::IS_BIT_SET(iParam0->f_13, 9))
  								{
  									func_46(iParam0, sParam27, 0);
  									MISC::SET_BIT(&(iParam0->f_13), 4);
  								}
  							}
  						}
  					}
  					else if (!func_48(iParam0, 2))
  					{
  						if (!MISC::IS_BIT_SET(iParam0->f_13, 3))
  						{
  							func_46(iParam0, sParam24, 0);
  							MISC::SET_BIT(&(iParam0->f_13), 3);
  							MISC::CLEAR_BIT(&(iParam0->f_13), 4);
  						}
  						else if (MISC::IS_BIT_SET(iParam0->f_13, 9))
  						{
  							if (!MISC::IS_STRING_NULL(sParam27))
  							{
  								if (!MISC::IS_BIT_SET(iParam0->f_13, 4))
  								{
  									func_46(iParam0, sParam27, 0);
  									MISC::SET_BIT(&(iParam0->f_13), 4);
  								}
  							}
  							else if (!MISC::IS_BIT_SET(iParam0->f_13, 4))
  							{
  								func_46(iParam0, sParam24, 0);
  								MISC::SET_BIT(&(iParam0->f_13), 4);
  							}
  						}
  					}
  				}
  			}
  		}
  	}
  	else
  	{
  		if (MISC::IS_BIT_SET(iParam0->f_13, 0))
  		{
  			MISC::CLEAR_BIT(&(iParam0->f_13), 0);
  		}
  		func_53(sParam19);
  		func_53(sParam24);
  		func_53(sParam27);
  		func_53(sParam24);
  		func_53("LOSE_WANTED");
  		if (HUD::DOES_BLIP_EXIST(iParam0->f_5))
  		{
  			HUD::REMOVE_BLIP(&(iParam0->f_5));
  		}
  		if (HUD::DOES_BLIP_EXIST(*iParam0))
  		{
  			HUD::REMOVE_BLIP(iParam0);
  		}
  	}
  	MISC::CLEAR_BIT(&(iParam0->f_13), 11);
  	MISC::CLEAR_BIT(&(iParam0->f_13), 12);
  	return 0;
  }
  
  int func_32(int iParam0, bool bParam1, bool bParam2)
  {
  	return func_33(iParam0, !bParam1, bParam2);
  }
  
  int func_33(int iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 0;
  	}
  	iVar0 = HUD::ADD_BLIP_FOR_ENTITY(iParam0);
  	if (ENTITY::IS_ENTITY_A_VEHICLE(iParam0))
  	{
  		HUD::SET_BLIP_SCALE(iVar0, func_34(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 1f, 1f));
  		if (!bParam2)
  		{
  			HUD::SET_BLIP_AS_FRIENDLY(iVar0, bParam1);
  		}
  		else
  		{
  			HUD::SET_BLIP_COLOUR(iVar0, 2);
  		}
  	}
  	else if (ENTITY::IS_ENTITY_A_PED(iParam0))
  	{
  		HUD::SET_BLIP_SCALE(iVar0, func_34(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 0.7f, 0.7f));
  		HUD::SET_BLIP_AS_FRIENDLY(iVar0, bParam1);
  	}
  	else if (ENTITY::IS_ENTITY_AN_OBJECT(iParam0))
  	{
  		HUD::SET_BLIP_SCALE(iVar0, func_34(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 0.7f, 0.7f));
  	}
  	return iVar0;
  }
  
  float func_34(bool bParam0, float fParam1, float fParam2)
  {
  	if (bParam0)
  	{
  		return fParam1;
  	}
  	return fParam2;
  }
  
  int func_35(int* iParam0)
  {
  	if (MISC::IS_BIT_SET(iParam0->f_13, 12))
  	{
  		if (func_37(PLAYER::PLAYER_PED_ID()))
  		{
  			if (func_36(1, 0, 1) || MISC::IS_BIT_SET(iParam0->f_13, 7))
  			{
  				return 1;
  			}
  		}
  	}
  	else if (func_36(1, 0, 1) || MISC::IS_BIT_SET(iParam0->f_13, 7))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_36(bool bParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	if (MISC::IS_MINIGAME_IN_PROGRESS())
  	{
  		return 0;
  	}
  	if (bParam0)
  	{
  		if (ENTITY::IS_ENTITY_DEAD(PLAYER::PLAYER_PED_ID(), false))
  		{
  			return 0;
  		}
  	}
  	iVar0 = 0;
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		if (!PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  		{
  			return 0;
  		}
  		iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		if (bParam0)
  		{
  			if (ENTITY::IS_ENTITY_DEAD(iVar0, false))
  			{
  				return 0;
  			}
  		}
  		if (bParam2)
  		{
  			if (!ENTITY::IS_ENTITY_DEAD(iVar0, false))
  			{
  				if (VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, -1, 0) != PLAYER::PLAYER_PED_ID())
  				{
  					return 0;
  				}
  			}
  		}
  		if (!ENTITY::IS_ENTITY_DEAD(iVar0, false))
  		{
  			if (ENTITY::GET_ENTITY_UPRIGHT_VALUE(iVar0) < 0.95f || ENTITY::GET_ENTITY_UPRIGHT_VALUE(iVar0) > 1.011f)
  			{
  				return 0;
  			}
  		}
  	}
  	else if (bParam1)
  	{
  		return 0;
  	}
  	if (!PLAYER::IS_PLAYER_READY_FOR_CUTSCENE(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	if (!PLAYER::CAN_PLAYER_START_MISSION(PLAYER::PLAYER_ID()))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_37(int iParam0)
  {
  	float fVar0;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		fVar0 = ENTITY::GET_ENTITY_SPEED(iParam0);
  		if (fVar0 > -0.5f && fVar0 < 0.5f)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_38(int iParam0, int iParam1)
  {
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()) && iParam1)
  		{
  			if (func_39(PLAYER::PLAYER_PED_ID(), iParam0))
  			{
  				PED::SET_GROUP_SEPARATION_RANGE(func_40(), 50f);
  				return 1;
  			}
  		}
  		else if (PED::IS_PED_GROUP_MEMBER(iParam0, func_40()))
  		{
  			PED::SET_GROUP_SEPARATION_RANGE(func_40(), 50f);
  			return 1;
  		}
  	}
  	else
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_39(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(iParam0))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam0, false);
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  			{
  				if (!PED::IS_PED_INJURED(iParam1))
  				{
  					if (PED::IS_PED_SITTING_IN_VEHICLE(iParam1, iVar0))
  					{
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_40()
  {
  	return PLAYER::GET_PLAYER_GROUP(PLAYER::GET_PLAYER_INDEX());
  }
  
  int func_41(struct<3> Param0, struct<3> Param3, float fParam6, bool bParam7)
  {
  	if (fParam6 < 0f)
  	{
  		fParam6 = 0f;
  	}
  	if (!bParam7)
  	{
  		if (MISC::ABSF((Param0.x - Param3.x)) <= fParam6)
  		{
  			if (MISC::ABSF((Param0.f_1 - Param3.f_1)) <= fParam6)
  			{
  				if (MISC::ABSF((Param0.f_2 - Param3.f_2)) <= fParam6)
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	else if (MISC::ABSF((Param0.x - Param3.x)) <= fParam6)
  	{
  		if (MISC::ABSF((Param0.f_1 - Param3.f_1)) <= fParam6)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_42(int iParam0, int* iParam1)
  {
  	if (HUD::DOES_BLIP_EXIST(iParam0))
  	{
  		if (HUD::DOES_BLIP_EXIST(iParam1->f_6))
  		{
  			HUD::SET_BLIP_ROUTE(iParam1->f_6, false);
  		}
  		HUD::SET_GPS_MULTI_ROUTE_RENDER(false);
  		HUD::CLEAR_GPS_MULTI_ROUTE();
  		iParam1->f_6 = iParam0;
  		HUD::SET_BLIP_ROUTE(iParam0, true);
  	}
  }
  
  int func_43(struct<3> Param0, bool bParam3)
  {
  	int iVar0;
  	
  	iVar0 = HUD::ADD_BLIP_FOR_COORD(Param0);
  	HUD::SET_BLIP_SCALE(iVar0, func_34(NETWORK::NETWORK_IS_GAME_IN_PROGRESS(), 1f, 1f));
  	HUD::SET_BLIP_ROUTE(iVar0, bParam3);
  	return iVar0;
  }
  
  void func_44(int iParam0, char* sParam1, int iParam2)
  {
  	AUDIO::_PLAY_AMBIENT_SPEECH1(iParam0, sParam1, func_45(iParam2), 1);
  }
  
  int func_45(int iParam0)
  {
  	int iVar0;
  	
  	switch (iParam0)
  	{
  		case 0:
  			return "SPEECH_PARAMS_STANDARD";
  		
  		case 1:
  			return "SPEECH_PARAMS_ALLOW_REPEAT";
  		
  		case 2:
  			return "SPEECH_PARAMS_BEAT";
  		
  		case 3:
  			return "SPEECH_PARAMS_FORCE";
  		
  		case 4:
  			return "SPEECH_PARAMS_FORCE_FRONTEND";
  		
  		case 5:
  			return "SPEECH_PARAMS_FORCE_NO_REPEAT_FRONTEND";
  		
  		case 6:
  			return "SPEECH_PARAMS_FORCE_NORMAL";
  		
  		case 7:
  			return "SPEECH_PARAMS_FORCE_NORMAL_CLEAR";
  		
  		case 8:
  			return "SPEECH_PARAMS_FORCE_NORMAL_CRITICAL";
  		
  		case 9:
  			return "SPEECH_PARAMS_FORCE_SHOUTED";
  		
  		case 10:
  			return "SPEECH_PARAMS_FORCE_SHOUTED_CLEAR";
  		
  		case 11:
  			return "SPEECH_PARAMS_FORCE_SHOUTED_CRITICAL";
  		
  		case 12:
  			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY";
  		
  		case 13:
  			return "SPEECH_PARAMS_MEGAPHONE";
  		
  		case 14:
  			return "SPEECH_PARAMS_HELI";
  		
  		case 15:
  			return "SPEECH_PARAMS_FORCE_MEGAPHONE";
  		
  		case 16:
  			return "SPEECH_PARAMS_FORCE_HELI";
  		
  		case 17:
  			return "SPEECH_PARAMS_INTERRUPT";
  		
  		case 18:
  			return "SPEECH_PARAMS_INTERRUPT_SHOUTED";
  		
  		case 19:
  			return "SPEECH_PARAMS_INTERRUPT_SHOUTED_CLEAR";
  		
  		case 20:
  			return "SPEECH_PARAMS_INTERRUPT_SHOUTED_CRITICAL";
  		
  		case 21:
  			return "SPEECH_PARAMS_INTERRUPT_NO_FORCE";
  		
  		case 22:
  			return "SPEECH_PARAMS_INTERRUPT_FRONTEND";
  		
  		case 23:
  			return "SPEECH_PARAMS_INTERRUPT_NO_FORCE_FRONTEND";
  		
  		case 24:
  			return "SPEECH_PARAMS_ADD_BLIP";
  		
  		case 25:
  			return "SPEECH_PARAMS_ADD_BLIP_ALLOW_REPEAT";
  		
  		case 26:
  			return "SPEECH_PARAMS_ADD_BLIP_FORCE";
  		
  		case 27:
  			return "SPEECH_PARAMS_ADD_BLIP_SHOUTED";
  		
  		case 28:
  			return "SPEECH_PARAMS_ADD_BLIP_SHOUTED_FORCE";
  		
  		case 29:
  			return "SPEECH_PARAMS_ADD_BLIP_INTERRUPT";
  		
  		case 30:
  			return "SPEECH_PARAMS_ADD_BLIP_INTERRUPT_FORCE";
  		
  		case 31:
  			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED";
  		
  		case 32:
  			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED_CLEAR";
  		
  		case 33:
  			return "SPEECH_PARAMS_FORCE_PRELOAD_ONLY_SHOUTED_CRITICAL";
  		
  		case 34:
  			return "SPEECH_PARAMS_SHOUTED";
  		
  		case 35:
  			return "SPEECH_PARAMS_SHOUTED_CLEAR";
  		
  		case 36:
  			return "SPEECH_PARAMS_SHOUTED_CRITICAL";
  		
  		default:
  	}
  	iVar0 = 0;
  	return iVar0;
  }
  
  void func_46(int* iParam0, char* sParam1, bool bParam2)
  {
  	if (!bParam2)
  	{
  		if (!MISC::IS_STRING_NULL(sParam1))
  		{
  			if (!MISC::ARE_STRINGS_EQUAL(sParam1, ""))
  			{
  				func_140(sParam1, 7500, 1);
  			}
  		}
  	}
  	iParam0->f_10 = MISC::GET_GAME_TIMER();
  }
  
  int func_47(int* iParam0)
  {
  	if (!PED::IS_PED_INJURED(iParam0->f_16))
  	{
  		if (AUDIO::IS_AMBIENT_SPEECH_PLAYING(iParam0->f_16))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_48(int* iParam0, int iParam1)
  {
  	if (iParam1 != 1 || HUD::IS_SUBTITLE_PREFERENCE_SWITCHED_ON())
  	{
  		if (HUD::IS_MESSAGE_BEING_DISPLAYED())
  		{
  			return 1;
  		}
  		if (func_50(iParam0))
  		{
  			return 1;
  		}
  	}
  	if (iParam1 != 2 || HUD::IS_SUBTITLE_PREFERENCE_SWITCHED_ON())
  	{
  		if (func_142() && !func_49())
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_49()
  {
  	if (Global_22016 == 1)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_50(var uParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar1 = MISC::GET_GAME_TIMER();
  	iVar0 = (iVar1 - uParam0->f_10);
  	if (iVar0 < 35)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_51(var uParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), false))
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		if (func_52(iVar0, uParam0, iParam1))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_52(int iParam0, var uParam1, int iParam2)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		iVar0 = 0;
  		iVar2 = 0;
  		while (iVar2 < 3)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(uParam1->f_17[iVar2]))
  			{
  				iVar0++;
  			}
  			iVar2++;
  		}
  		iVar1 = VEHICLE::GET_VEHICLE_MAX_NUMBER_OF_PASSENGERS(iParam0);
  		if (iParam2 > 0)
  		{
  			if (iVar1 >= iParam2)
  			{
  				if (iParam2 > 1)
  				{
  					if (!VEHICLE::IS_SEAT_WARP_ONLY(iParam0, 1))
  					{
  						return 1;
  					}
  				}
  				else
  				{
  					return 1;
  				}
  			}
  		}
  		else if (iVar1 >= iVar0)
  		{
  			if (iVar0 > 1)
  			{
  				if (!VEHICLE::IS_SEAT_WARP_ONLY(iParam0, 1))
  				{
  					return 1;
  				}
  			}
  			else
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_53(char* sParam0)
  {
  	if (!MISC::IS_STRING_NULL(sParam0))
  	{
  		HUD::CLEAR_THIS_PRINT(sParam0);
  	}
  }
  
  int func_54(var uParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, char* sParam7, float fParam8, bool bParam9, int iParam10, bool bParam11, int iParam12, var uParam13, var uParam14, var uParam15, int iParam16, bool bParam17)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	int iVar6;
  	int iVar7[3];
  	bool bVar11;
  	bool bVar12;
  	int iVar13;
  	int iVar14;
  	var uVar15[3];
  	var uVar19[3];
  	bool bVar23;
  	int iVar24;
  	int iVar25;
  	int iVar26;
  	int iVar27;
  	struct<3> Var28;
  	int iVar31;
  	int iVar32;
  	
  	iVar4 = 0;
  	uParam0->f_17[0] = uParam1;
  	uParam0->f_17[1] = uParam2;
  	uParam0->f_17[2] = uParam3;
  	uParam0->f_16 = uParam1;
  	uVar15[0] = uParam4;
  	uVar15[1] = uParam5;
  	uVar15[2] = uParam6;
  	uVar19[0] = uParam13;
  	uVar19[1] = uParam14;
  	uVar19[2] = uParam15;
  	iVar6 = 1;
  	iVar1 = 0;
  	iVar2 = 0;
  	iVar3 = 0;
  	iVar7[0] = 0;
  	iVar7[1] = 0;
  	iVar7[2] = 0;
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  		{
  			iVar3++;
  		}
  		if (PLAYER::IS_PLAYER_WANTED_LEVEL_GREATER(PLAYER::PLAYER_ID(), 0))
  		{
  			if (!MISC::IS_BIT_SET(uParam0->f_13, 29) && !MISC::IS_BIT_SET(uParam0->f_13, 28))
  			{
  				if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  				{
  					PED::SET_PED_USING_ACTION_MODE(uParam0->f_17[iVar0], true, -1, 0);
  				}
  				if (iVar0 == 2)
  				{
  					MISC::SET_BIT(&(uParam0->f_13), 28);
  				}
  			}
  		}
  		else if (!MISC::IS_BIT_SET(uParam0->f_13, 29) && MISC::IS_BIT_SET(uParam0->f_13, 28))
  		{
  			if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  			{
  				PED::SET_PED_USING_ACTION_MODE(uParam0->f_17[iVar0], false, -1, 0);
  			}
  			if (iVar0 == 2)
  			{
  				MISC::CLEAR_BIT(&(uParam0->f_13), 28);
  			}
  		}
  		iVar0++;
  	}
  	if (iVar3 == 0)
  	{
  		return 1;
  	}
  	if (MISC::IS_BIT_SET(uParam0->f_13, 26))
  	{
  		bVar23 = false;
  		if (!ENTITY::DOES_ENTITY_EXIST(uParam0->f_21))
  		{
  			iVar25 = 64;
  			iVar25 |= 65536;
  			iVar25 |= 2048;
  			iVar25 |= 1;
  			iVar25 |= 2;
  			iVar25 |= 4;
  			iVar25 |= 32;
  			iVar25 |= 16;
  			iVar25 |= 8;
  			iVar24 = VEHICLE::GET_CLOSEST_VEHICLE(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), 50f, 0, iVar25);
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar24, false))
  			{
  				uParam0->f_21 = iVar24;
  			}
  		}
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(uParam0->f_21, false))
  		{
  			if (SYSTEM::VDIST2(ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true), ENTITY::GET_ENTITY_COORDS(uParam0->f_21, true)) < 400f)
  			{
  				if (!PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					if (!PLAYER::IS_PLAYER_WANTED_LEVEL_GREATER(PLAYER::PLAYER_ID(), 0) || !bParam17)
  					{
  						if (func_52(uParam0->f_21, uParam0, iVar3))
  						{
  							iVar0 = 0;
  							while (iVar0 < 3)
  							{
  								if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  								{
  									PED::SET_PED_MAX_MOVE_BLEND_RATIO(uParam0->f_17[iVar0], 1f);
  									if (PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  									{
  										PED::REMOVE_PED_FROM_GROUP(uParam0->f_17[iVar0]);
  									}
  									if (TASK::GET_SCRIPT_TASK_STATUS(uParam0->f_17[iVar0], -1794415470) == 7 && !func_70(uParam0->f_17[iVar0], uParam0->f_21))
  									{
  										if (!PED::IS_PED_RAGDOLL(uParam0->f_17[iVar0]) && !TASK::IS_PED_GETTING_UP(uParam0->f_17[iVar0]))
  										{
  											PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(uParam0->f_17[iVar0], true);
  											TASK::TASK_ENTER_VEHICLE(uParam0->f_17[iVar0], uParam0->f_21, 60000, iVar0, 1f, 1, 0);
  											PED::SET_PED_GROUP_MEMBER_PASSENGER_INDEX(uParam0->f_17[iVar0], iVar0);
  										}
  									}
  								}
  								iVar0++;
  							}
  							return 1;
  						}
  						else
  						{
  							bVar23 = true;
  						}
  					}
  					else
  					{
  						bVar23 = true;
  					}
  				}
  				else
  				{
  					bVar23 = true;
  				}
  			}
  			else
  			{
  				bVar23 = true;
  			}
  		}
  		else
  		{
  			bVar23 = true;
  		}
  		if (bVar23)
  		{
  			MISC::CLEAR_BIT(&(uParam0->f_13), 26);
  			iVar0 = 0;
  			while (iVar0 < 3)
  			{
  				if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  				{
  					if (!PED::IS_PED_GETTING_INTO_A_VEHICLE(uParam0->f_17[iVar0]) && !uParam0->f_15)
  					{
  						TASK::CLEAR_PED_TASKS(uParam0->f_17[iVar0]);
  					}
  					if (!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  					{
  						if (func_68(uParam0, uParam0->f_17[iVar0], fParam8, 1))
  						{
  							PED::SET_PED_AS_GROUP_MEMBER(uParam0->f_17[iVar0], func_40());
  						}
  					}
  				}
  				iVar0++;
  			}
  		}
  	}
  	if (!MISC::IS_BIT_SET(uParam0->f_13, 26))
  	{
  		if ((!func_67(uParam0) && PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID())) && !ENTITY::DOES_ENTITY_EXIST(iParam10))
  		{
  			iVar13 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar13, false))
  			{
  				if (!MISC::IS_BIT_SET(uParam0->f_13, 13))
  				{
  					if (iParam16 == 4 || iParam16 == 5)
  					{
  					}
  					if (!func_48(uParam0, 2))
  					{
  						iVar26 = 0;
  						iVar27 = 0;
  						iVar0 = 0;
  						while (iVar0 < 3)
  						{
  							if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  							{
  								iVar26++;
  							}
  							iVar0++;
  						}
  						iVar27 = MISC::GET_RANDOM_INT_IN_RANGE(0, iVar26);
  						if (!PED::IS_PED_INJURED(uParam0->f_17[iVar27]))
  						{
  							func_44(uParam0->f_17[iVar27], "NEED_A_BIGGER_VEHICLE", 3);
  						}
  						func_46(uParam0, "MORE_SEATS", 0);
  						MISC::SET_BIT(&(uParam0->f_13), 13);
  					}
  				}
  				bVar12 = true;
  			}
  		}
  		else
  		{
  			bVar12 = false;
  			MISC::CLEAR_BIT(&(uParam0->f_13), 13);
  			func_53("MORE_SEATS");
  		}
  		if (!ENTITY::DOES_ENTITY_EXIST(iParam10))
  		{
  			if ((!PED::IS_PED_INJURED(uParam0->f_17[0]) || !PED::IS_PED_INJURED(uParam0->f_17[1])) || !PED::IS_PED_INJURED(uParam0->f_17[2]))
  			{
  				if (!MISC::IS_BIT_SET(uParam0->f_13, 31))
  				{
  					if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()) && !func_48(uParam0, 2))
  					{
  						iVar13 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  						if (func_66(iVar13, uParam0))
  						{
  							func_46(uParam0, "CMN_VEHSUIT", 0);
  							MISC::SET_BIT(&(uParam0->f_13), 31);
  						}
  					}
  				}
  				else if (!PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  				{
  					MISC::CLEAR_BIT(&(uParam0->f_13), 31);
  					func_53("CMN_VEHSUIT");
  				}
  			}
  		}
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam10, false))
  		{
  			if (PED::IS_PED_SITTING_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam10))
  			{
  				if (PAD::IS_CONTROL_JUST_PRESSED(0, 75))
  				{
  					MISC::SET_BIT(&(uParam0->f_13), 21);
  				}
  			}
  			else if (MISC::IS_BIT_SET(uParam0->f_13, 21))
  			{
  				MISC::CLEAR_BIT(&(uParam0->f_13), 21);
  			}
  		}
  		iVar0 = 0;
  		while (iVar0 < 3)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_17[iVar0]))
  			{
  				if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  				{
  					if (!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  					{
  						PED::SET_PED_DIES_IN_WATER(uParam0->f_17[iVar0], true);
  					}
  					else
  					{
  						PED::SET_PED_DIES_IN_WATER(uParam0->f_17[iVar0], false);
  					}
  					if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  					{
  						iVar13 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  						if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar13, false))
  						{
  							if (PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  							{
  								if (!func_67(uParam0) && PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  								{
  									if (!func_65(uParam0->f_17[iVar0]))
  									{
  										PED::REMOVE_PED_FROM_GROUP(uParam0->f_17[iVar0]);
  									}
  								}
  							}
  						}
  						if (iVar13 != iParam10 && !ENTITY::IS_ENTITY_DEAD(iVar13, false))
  						{
  							if (PED::IS_PED_SITTING_IN_VEHICLE(uParam0->f_17[iVar0], iVar13))
  							{
  								if (ENTITY::IS_ENTITY_IN_WATER(iVar13) && !VEHICLE::IS_VEHICLE_ON_ALL_WHEELS(iVar13))
  								{
  									Var28 = { ENTITY::GET_ENTITY_COORDS(iVar13, true) };
  									if (Var28.f_2 < -1f)
  									{
  										TASK::TASK_LEAVE_VEHICLE(uParam0->f_17[iVar0], iVar13, 64);
  									}
  								}
  							}
  						}
  					}
  					bVar11 = true;
  					if (!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  					{
  						if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(uParam0->f_17[iVar0]))
  						{
  							iVar13 = PED::GET_VEHICLE_PED_IS_IN(uParam0->f_17[iVar0], false);
  							if (!ENTITY::IS_ENTITY_DEAD(iVar13, false))
  							{
  								if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam10, false))
  								{
  									if (iVar13 != iParam10)
  									{
  										if (!PED::IS_PED_SITTING_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iVar13))
  										{
  											if (ENTITY::GET_ENTITY_SPEED(iVar13) > 5f)
  											{
  												TASK::TASK_LEAVE_VEHICLE(uParam0->f_17[iVar0], iVar13, 4160);
  											}
  											else
  											{
  												TASK::TASK_LEAVE_VEHICLE(uParam0->f_17[iVar0], iVar13, 64);
  											}
  											bVar11 = false;
  										}
  									}
  								}
  								else
  								{
  									if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  									{
  										iVar31 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  									}
  									if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar31, false))
  									{
  										if (iVar13 != iVar31)
  										{
  											if (ENTITY::GET_ENTITY_SPEED(iVar13) > 5f)
  											{
  												TASK::TASK_LEAVE_VEHICLE(uParam0->f_17[iVar0], iVar13, 4160);
  											}
  											else
  											{
  												TASK::TASK_LEAVE_VEHICLE(uParam0->f_17[iVar0], iVar13, 64);
  											}
  											bVar11 = false;
  										}
  									}
  								}
  							}
  						}
  					}
  					if (PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  					{
  						iVar32 = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID());
  						if (ENTITY::DOES_ENTITY_EXIST(iVar32))
  						{
  							if (func_52(iVar32, uParam0, 0))
  							{
  								if (func_64(iVar0, uParam0) || !MISC::IS_BIT_SET(uParam0->f_13, 27))
  								{
  									PED::SET_PED_GROUP_MEMBER_PASSENGER_INDEX(uParam0->f_17[iVar0], iVar0);
  									func_63(iVar0, uParam0);
  									iVar4++;
  									if (iVar4 >= iVar3)
  									{
  										MISC::SET_BIT(&(uParam0->f_13), 27);
  									}
  								}
  							}
  							else if (!func_64(iVar0, uParam0))
  							{
  								if (ENTITY::GET_ENTITY_MODEL(iVar32) == joaat("sentinel2"))
  								{
  									PED::SET_PED_GROUP_MEMBER_PASSENGER_INDEX(uParam0->f_17[iVar0], 4);
  								}
  								else
  								{
  									PED::SET_PED_GROUP_MEMBER_PASSENGER_INDEX(uParam0->f_17[iVar0], 2);
  								}
  								func_62(iVar0, uParam0);
  							}
  						}
  					}
  					if ((!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()) && !func_61(uParam0->f_17[iVar0], iParam10)) && !func_60(uParam0->f_17[iVar0], iParam10))
  					{
  						if (func_68(uParam0, uParam0->f_17[iVar0], fParam8, bParam11))
  						{
  							if (!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  							{
  								if (((!PED::IS_PED_RAGDOLL(uParam0->f_17[iVar0]) && !TASK::IS_PED_GETTING_UP(uParam0->f_17[iVar0])) && !PED::IS_PED_JUMPING_OUT_OF_VEHICLE(uParam0->f_17[iVar0])) && !PED::IS_PED_GETTING_INTO_A_VEHICLE(uParam0->f_17[iVar0]))
  								{
  									iVar14 = TASK::GET_SCRIPT_TASK_STATUS(uParam0->f_17[iVar0], -1794415470);
  									if (iVar14 == 7)
  									{
  										TASK::CLEAR_PED_TASKS(uParam0->f_17[iVar0]);
  									}
  									PED::SET_PED_AS_GROUP_MEMBER(uParam0->f_17[iVar0], func_40());
  									bVar11 = false;
  								}
  							}
  						}
  						if (bVar11)
  						{
  							if (!HUD::DOES_BLIP_EXIST(uParam0->f_1[iVar0]))
  							{
  								uParam0->f_11 = MISC::GET_GAME_TIMER();
  								uParam0->f_1[iVar0] = func_32(uParam0->f_17[iVar0], 0, 0);
  								HUD::SET_BLIP_DISPLAY(uParam0->f_1[iVar0], 2);
  								if (bParam9)
  								{
  									func_42(uParam0->f_1[iVar0], uParam0);
  								}
  							}
  						}
  						iVar6 = 0;
  					}
  					else if (HUD::DOES_BLIP_EXIST(uParam0->f_1[iVar0]))
  					{
  						if (((func_38(uParam0->f_17[iVar0], 1) || func_61(uParam0->f_17[iVar0], iParam10)) || iParam12) || (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam10, false) && !PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam10, false)))
  						{
  							if (HUD::DOES_BLIP_EXIST(uParam0->f_1[iVar0]))
  							{
  								HUD::REMOVE_BLIP(&(uParam0->f_1[iVar0]));
  								func_53(uVar15[iVar0]);
  							}
  						}
  						else
  						{
  							if (bParam9)
  							{
  								func_42(uParam0->f_1[iVar0], uParam0);
  							}
  							iVar6 = 0;
  						}
  					}
  					else if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam10, false))
  					{
  						if (!PED::IS_PED_SITTING_IN_VEHICLE(uParam0->f_17[iVar0], iParam10))
  						{
  							if ((ENTITY::IS_ENTITY_AT_ENTITY(uParam0->f_17[iVar0], iParam10, 20f, 20f, 5f, false, true, 0) && !MISC::IS_BIT_SET(uParam0->f_13, 11)) && !((bParam17 && PLAYER::IS_PLAYER_WANTED_LEVEL_GREATER(PLAYER::PLAYER_ID(), 0)) && !PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam10, false)))
  							{
  								if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(uParam0->f_17[iVar0]))
  								{
  									if (!PED::IS_PED_IN_VEHICLE(uParam0->f_17[iVar0], iParam10, false))
  									{
  										if (!func_38(uParam0->f_17[iVar0], 1))
  										{
  											if (func_37(uParam0->f_17[iVar0]))
  											{
  												iVar14 = TASK::GET_SCRIPT_TASK_STATUS(uParam0->f_17[iVar0], 451360105);
  												if (iVar14 == 7)
  												{
  													TASK::TASK_LEAVE_ANY_VEHICLE(uParam0->f_17[iVar0], 0, 0);
  												}
  											}
  										}
  									}
  								}
  								else
  								{
  									if (PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  									{
  										if ((((!PED::IS_PED_JUMPING_OUT_OF_VEHICLE(uParam0->f_17[iVar0]) && !PED::IS_PED_RAGDOLL(uParam0->f_17[iVar0])) && !TASK::IS_PED_GETTING_UP(uParam0->f_17[iVar0])) && !PED::IS_PED_GETTING_INTO_A_VEHICLE(uParam0->f_17[iVar0])) && !FIRE::IS_ENTITY_ON_FIRE(iParam10))
  										{
  											PED::REMOVE_PED_FROM_GROUP(uParam0->f_17[iVar0]);
  										}
  									}
  									iVar14 = TASK::GET_SCRIPT_TASK_STATUS(uParam0->f_17[iVar0], -1794415470);
  									if (iVar14 == 7 && !func_70(uParam0->f_17[iVar0], iParam10))
  									{
  										if (((((!PED::IS_PED_JUMPING_OUT_OF_VEHICLE(uParam0->f_17[iVar0]) && !PED::IS_PED_JUMPING_OUT_OF_VEHICLE(PLAYER::PLAYER_PED_ID())) && !func_59(uParam0->f_17[iVar0], 2f)) && !PED::IS_PED_RAGDOLL(uParam0->f_17[iVar0])) && !TASK::IS_PED_GETTING_UP(uParam0->f_17[iVar0])) && !FIRE::IS_ENTITY_ON_FIRE(iParam10))
  										{
  											PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(uParam0->f_17[iVar0], true);
  											if (MISC::IS_BIT_SET(uParam0->f_13, 10))
  											{
  												PED::SET_PED_MAX_MOVE_BLEND_RATIO(uParam0->f_17[iVar0], 1f);
  											}
  											TASK::TASK_ENTER_VEHICLE(uParam0->f_17[iVar0], iParam10, 60000, iVar0, 2f, 1, 0);
  											PED::SET_PED_GET_OUT_UPSIDE_DOWN_VEHICLE(uParam0->f_17[iVar0], false);
  										}
  									}
  									else if (PED::IS_PED_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam10, false))
  									{
  										uParam0->f_1[iVar0] = func_32(uParam0->f_17[iVar0], 0, 0);
  										HUD::SET_BLIP_DISPLAY(uParam0->f_1[iVar0], 2);
  										iVar6 = 0;
  									}
  								}
  							}
  							else if (!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  							{
  								if (func_68(uParam0, uParam0->f_17[iVar0], fParam8, bParam11))
  								{
  									if (!PED::IS_PED_RAGDOLL(uParam0->f_17[iVar0]) && !TASK::IS_PED_GETTING_UP(uParam0->f_17[iVar0]))
  									{
  										iVar14 = TASK::GET_SCRIPT_TASK_STATUS(uParam0->f_17[iVar0], -1794415470);
  										if (iVar14 == 7)
  										{
  											TASK::CLEAR_PED_TASKS(uParam0->f_17[iVar0]);
  										}
  										PED::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(uParam0->f_17[iVar0], false);
  										PED::SET_PED_AS_GROUP_MEMBER(uParam0->f_17[iVar0], func_40());
  									}
  								}
  							}
  						}
  						else if (PED::IS_PED_SITTING_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iParam10))
  						{
  							if (!PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()))
  							{
  								if (!MISC::IS_BIT_SET(uParam0->f_13, 21))
  								{
  									PED::SET_PED_AS_GROUP_MEMBER(uParam0->f_17[iVar0], func_40());
  								}
  							}
  							else if (MISC::IS_BIT_SET(uParam0->f_13, 21))
  							{
  								PED::REMOVE_PED_FROM_GROUP(uParam0->f_17[iVar0]);
  								MISC::SET_BIT(&(uParam0->f_13), 21);
  							}
  						}
  						else if (PED::IS_PED_GROUP_MEMBER(uParam0->f_17[iVar0], func_40()) && !FIRE::IS_ENTITY_ON_FIRE(iParam10))
  						{
  							PED::REMOVE_PED_FROM_GROUP(uParam0->f_17[iVar0]);
  						}
  					}
  				}
  				else if (HUD::DOES_BLIP_EXIST(uParam0->f_1[iVar0]))
  				{
  					HUD::REMOVE_BLIP(&(uParam0->f_1[iVar0]));
  					func_53(uVar15[iVar0]);
  				}
  			}
  			iVar0++;
  		}
  		iVar0 = 0;
  		while (iVar0 < 3)
  		{
  			if (HUD::DOES_BLIP_EXIST(uParam0->f_1[iVar0]))
  			{
  				iVar7[iVar0] = 1;
  				iVar1++;
  			}
  			iVar0++;
  		}
  		if (!func_48(uParam0, 2))
  		{
  			if (iVar1 > 0)
  			{
  				iVar0 = 0;
  				while (iVar0 < 3)
  				{
  					if (iVar7[iVar0])
  					{
  						if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  						{
  							if (func_65(uParam0->f_17[iVar0]) || ENTITY::IS_ENTITY_AT_ENTITY(uParam0->f_17[iVar0], PLAYER::PLAYER_PED_ID(), uParam0->f_8, uParam0->f_8, uParam0->f_8, false, true, 0))
  							{
  								iVar1 = (iVar1 - 1);
  								iVar7[iVar0] = 0;
  							}
  						}
  					}
  					else if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  					{
  						if (!ENTITY::IS_ENTITY_AT_ENTITY(uParam0->f_17[iVar0], PLAYER::PLAYER_PED_ID(), (uParam0->f_8 * 0.85f), (uParam0->f_8 * 0.85f), uParam0->f_8, false, true, 0) && !func_65(uParam0->f_17[iVar0]))
  						{
  						}
  					}
  					iVar0++;
  				}
  			}
  			iVar5 = MISC::GET_GAME_TIMER();
  			if ((iVar5 - uParam0->f_11) > 1500 || iVar3 == 1)
  			{
  				if (iVar1 > 0)
  				{
  					if (uParam0->f_12 < iVar1)
  					{
  						if ((iVar1 == iVar3 || (iVar2 + iVar1) == iVar3) && iVar3 > 1)
  						{
  							if (!MISC::IS_BIT_SET(uParam0->f_13, 5))
  							{
  								func_46(uParam0, sParam7, 0);
  								MISC::SET_BIT(&(uParam0->f_13), 5);
  								uParam0->f_12 = iVar1;
  							}
  							else
  							{
  								uParam0->f_12 = iVar1;
  							}
  						}
  						else
  						{
  							iVar0 = 0;
  							while (iVar0 < 3)
  							{
  								if (iVar7[iVar0])
  								{
  									if (!func_58(iVar0, uParam0))
  									{
  										if (!MISC::IS_STRING_NULL(uVar19[iVar0]))
  										{
  											if (!MISC::ARE_STRINGS_EQUAL(uVar19[iVar0], ""))
  											{
  												func_56(uParam0, uVar15[iVar0], uVar19[iVar0], 0);
  												func_55(iVar0, uParam0);
  												uParam0->f_12 = iVar1;
  											}
  										}
  										if (!func_58(iVar0, uParam0))
  										{
  											func_46(uParam0, uVar15[iVar0], 0);
  											func_55(iVar0, uParam0);
  											uParam0->f_12 = iVar1;
  										}
  									}
  									else
  									{
  										uParam0->f_12 = iVar1;
  									}
  								}
  								iVar0++;
  							}
  						}
  					}
  				}
  				else
  				{
  					uParam0->f_12 = 0;
  				}
  			}
  		}
  		MISC::CLEAR_BIT(&(uParam0->f_13), 10);
  		if (iVar6 && !bVar12)
  		{
  			iVar0 = 0;
  			while (iVar0 < 3)
  			{
  				if (HUD::DOES_BLIP_EXIST(uParam0->f_1[iVar0]))
  				{
  					HUD::REMOVE_BLIP(&(uParam0->f_1[iVar0]));
  					func_53(uVar15[iVar0]);
  				}
  				iVar0++;
  			}
  			func_53("MORE_SEATS");
  			return 1;
  		}
  	}
  	return 0;
  }
  
  void func_55(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			MISC::SET_BIT(&(uParam1->f_13), 14);
  			break;
  		
  		case 1:
  			MISC::SET_BIT(&(uParam1->f_13), 15);
  			break;
  		
  		case 2:
  			MISC::SET_BIT(&(uParam1->f_13), 16);
  			break;
  	}
  }
  
  void func_56(var uParam0, char* sParam1, char* sParam2, bool bParam3)
  {
  	if (!bParam3)
  	{
  		if (!MISC::IS_STRING_NULL(sParam1))
  		{
  			if (!MISC::ARE_STRINGS_EQUAL(sParam1, ""))
  			{
  				func_57(sParam1, sParam2, 7500, 1);
  			}
  		}
  	}
  	uParam0->f_10 = MISC::GET_GAME_TIMER();
  }
  
  void func_57(char* sParam0, char* sParam1, int iParam2, int iParam3)
  {
  	iParam3 = iParam3;
  	HUD::BEGIN_TEXT_COMMAND_PRINT(sParam0);
  	HUD::ADD_TEXT_COMPONENT_SUBSTRING_TEXT_LABEL(sParam1);
  	HUD::END_TEXT_COMMAND_PRINT(iParam2, true);
  }
  
  int func_58(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return MISC::IS_BIT_SET(uParam1->f_13, 14);
  		
  		case 1:
  			return MISC::IS_BIT_SET(uParam1->f_13, 15);
  		
  		case 2:
  			return MISC::IS_BIT_SET(uParam1->f_13, 16);
  		
  		default:
  	}
  	return 0;
  }
  
  int func_59(int iParam0, float fParam1)
  {
  	int iVar0;
  	
  	if (PED::IS_PED_IN_ANY_VEHICLE(iParam0, false))
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam0, false);
  		if (!ENTITY::IS_ENTITY_DEAD(iVar0, false))
  		{
  			if (ENTITY::GET_ENTITY_SPEED(iVar0) > fParam1)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_60(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (!PED::IS_PED_GROUP_MEMBER(iParam0, func_40()))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_ENTERING(iParam0);
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam1, false))
  			{
  				if (ENTITY::IS_ENTITY_AT_ENTITY(iParam0, iParam1, (20f + 10f), (20f + 10f), 10f, false, true, 0))
  				{
  					if (iVar0 == iParam1)
  					{
  						return 1;
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_61(int iParam0, int iParam1)
  {
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(iParam1))
  		{
  			if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam1, false))
  			{
  				if (PED::IS_PED_SITTING_IN_VEHICLE(iParam0, iParam1))
  				{
  					return 1;
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  void func_62(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			MISC::SET_BIT(&(uParam1->f_13), 17);
  			break;
  		
  		case 1:
  			MISC::SET_BIT(&(uParam1->f_13), 18);
  			break;
  		
  		case 2:
  			MISC::SET_BIT(&(uParam1->f_13), 19);
  			break;
  	}
  }
  
  void func_63(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			MISC::CLEAR_BIT(&(uParam1->f_13), 17);
  			break;
  		
  		case 1:
  			MISC::CLEAR_BIT(&(uParam1->f_13), 18);
  			break;
  		
  		case 2:
  			MISC::CLEAR_BIT(&(uParam1->f_13), 19);
  			break;
  	}
  }
  
  int func_64(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			return MISC::IS_BIT_SET(uParam1->f_13, 17);
  		
  		case 1:
  			return MISC::IS_BIT_SET(uParam1->f_13, 18);
  		
  		case 2:
  			return MISC::IS_BIT_SET(uParam1->f_13, 19);
  		
  		default:
  	}
  	return 0;
  }
  
  int func_65(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID());
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  		{
  			if (!PED::IS_PED_INJURED(iParam0))
  			{
  				iVar1 = PED::GET_VEHICLE_PED_IS_USING(iParam0);
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar1, false))
  				{
  					if (iVar0 == iVar1)
  					{
  						if (ENTITY::IS_ENTITY_AT_ENTITY(PLAYER::PLAYER_PED_ID(), iParam0, 20f, 20f, 20f, false, true, 0) && ENTITY::IS_ENTITY_AT_ENTITY(iParam0, iVar1, 20f, 20f, 20f, false, true, 0))
  						{
  							return 1;
  						}
  					}
  				}
  			}
  		}
  	}
  	return 0;
  }
  
  int func_66(int iParam0, var uParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	int iVar3;
  	int iVar4;
  	int iVar5;
  	
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		if (ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("bus") || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("coach"))
  		{
  			iVar0 = 0;
  			iVar1 = 0;
  			iVar2 = 0;
  			iVar2 = 0;
  			while (iVar2 < 3)
  			{
  				if (!PED::IS_PED_INJURED(uParam1->f_17[iVar2]))
  				{
  					iVar0++;
  				}
  				iVar2++;
  			}
  			iVar3 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 0, 0);
  			if (!PED::IS_PED_INJURED(iVar3))
  			{
  				if ((iVar3 == uParam1->f_17[0] || iVar3 == uParam1->f_17[1]) || iVar3 == uParam1->f_17[2])
  				{
  					iVar1++;
  				}
  			}
  			else
  			{
  				iVar1++;
  			}
  			iVar4 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 1, 0);
  			if (!PED::IS_PED_INJURED(iVar4))
  			{
  				if ((iVar4 == uParam1->f_17[0] || iVar4 == uParam1->f_17[1]) || iVar4 == uParam1->f_17[2])
  				{
  					iVar1++;
  				}
  			}
  			else
  			{
  				iVar1++;
  			}
  			iVar5 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, 2, 0);
  			if (!PED::IS_PED_INJURED(iVar5))
  			{
  				if ((iVar5 == uParam1->f_17[0] || iVar5 == uParam1->f_17[1]) || iVar5 == uParam1->f_17[2])
  				{
  					iVar1++;
  				}
  			}
  			else
  			{
  				iVar1++;
  			}
  			if (iVar1 < iVar0)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_67(var uParam0)
  {
  	int iVar0;
  	
  	if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
  		if (func_52(iVar0, uParam0, 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_68(var uParam0, int iParam1, float fParam2, bool bParam3)
  {
  	int iVar0;
  	
  	if (!PED::IS_PED_INJURED(iParam1))
  	{
  		if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(iParam1))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_IN(iParam1, false);
  			if (!ENTITY::IS_ENTITY_DEAD(iVar0, false))
  			{
  				if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  				{
  					if (PED::IS_PED_SITTING_IN_VEHICLE(PLAYER::PLAYER_PED_ID(), iVar0))
  					{
  						if (func_67(uParam0))
  						{
  							return 1;
  						}
  					}
  					else if (bParam3)
  					{
  						return 1;
  					}
  				}
  				else if (ENTITY::IS_ENTITY_AT_ENTITY(PLAYER::PLAYER_PED_ID(), iParam1, fParam2, fParam2, 3f, false, true, 0))
  				{
  					return 1;
  				}
  			}
  		}
  		else if (ENTITY::IS_ENTITY_AT_ENTITY(PLAYER::PLAYER_PED_ID(), iParam1, fParam2, fParam2, 3f, false, true, 0))
  		{
  			if (!bParam3)
  			{
  				iVar0 = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID());
  				if (ENTITY::DOES_ENTITY_EXIST(iVar0))
  				{
  					if (func_52(iVar0, uParam0, 0))
  					{
  						if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  						{
  							if (func_69(iVar0))
  							{
  								return 1;
  							}
  						}
  					}
  				}
  				else
  				{
  					return 1;
  				}
  			}
  			else
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  int func_69(int iParam0)
  {
  	float fVar0;
  	
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		fVar0 = ENTITY::GET_ENTITY_SPEED(iParam0);
  		if (fVar0 > -0.5f && fVar0 < 0.5f)
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_70(int iParam0, int iParam1)
  {
  	int iVar0;
  	
  	if (!PED::IS_PED_INJURED(iParam0))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam1, false))
  		{
  			iVar0 = PED::GET_VEHICLE_PED_IS_USING(iParam0);
  			if (iVar0 == iParam1)
  			{
  				return 1;
  			}
  		}
  	}
  	return 0;
  }
  
  void func_71()
  {
  	int iVar0;
  	int iVar1;
  	
  	if (PED::IS_PED_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID(), true))
  	{
  		iVar0 = PED::GET_VEHICLE_PED_IS_ENTERING(PLAYER::PLAYER_PED_ID());
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false))
  		{
  			iVar1 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iVar0, 0, 0);
  			if (!PED::IS_PED_INJURED(iVar1))
  			{
  				if (iVar1 != PLAYER::PLAYER_PED_ID())
  				{
  					if (ENTITY::IS_ENTITY_A_MISSION_ENTITY(iVar1))
  					{
  						if (!PED::IS_PED_HEADTRACKING_ENTITY(iVar1, PLAYER::PLAYER_PED_ID()))
  						{
  							TASK::TASK_LOOK_AT_ENTITY(iVar1, PLAYER::PLAYER_PED_ID(), 2000, 2048, 2);
  						}
  					}
  				}
  			}
  		}
  	}
  }
  
  void func_72(var uParam0)
  {
  	int iVar0;
  	
  	if (!MISC::IS_BIT_SET(uParam0->f_13, 25))
  	{
  		if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  		{
  			PED::SET_PED_CONFIG_FLAG(PLAYER::PLAYER_PED_ID(), 32, false);
  		}
  		iVar0 = 0;
  		while (iVar0 < 3)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_17[iVar0]))
  			{
  				if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  				{
  					PED::SET_PED_CONFIG_FLAG(uParam0->f_17[iVar0], 32, false);
  					PED::SET_PED_CONFIG_FLAG(uParam0->f_17[iVar0], 305, true);
  					PED::SET_PED_CONFIG_FLAG(uParam0->f_17[iVar0], 268, true);
  					PED::SET_PED_GET_OUT_UPSIDE_DOWN_VEHICLE(uParam0->f_17[iVar0], false);
  				}
  			}
  			iVar0++;
  		}
  		MISC::SET_BIT(&(uParam0->f_13), 25);
  	}
  }
  
  void func_73(var uParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(uParam0->f_17[iVar0]))
  		{
  			if (!PED::IS_PED_INJURED(uParam0->f_17[iVar0]))
  			{
  				if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(uParam0->f_17[iVar0]))
  				{
  					PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(uParam0->f_17[iVar0], false);
  					PED::SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS(uParam0->f_17[iVar0], false);
  				}
  			}
  		}
  		iVar0++;
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (!PED::IS_PED_INJURED(PLAYER::PLAYER_PED_ID()))
  		{
  			if (PED::IS_PED_SITTING_IN_ANY_VEHICLE(PLAYER::PLAYER_PED_ID()))
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(PLAYER::PLAYER_PED_ID(), false);
  				PED::SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS(PLAYER::PLAYER_PED_ID(), false);
  			}
  		}
  	}
  }
  
  var func_74()
  {
  	var uVar0;
  	
  	return uVar0;
  }
  
  Vector3 func_75()
  {
  	return 0f, 0f, 2f;
  }
  
  int func_76(var uParam0)
  {
  	float fVar0;
  	
  	if (!uParam0->f_6)
  	{
  		fVar0 = func_79(PLAYER::PLAYER_PED_ID(), *uParam0, 0);
  		if (!iLocal_327)
  		{
  			if (fVar0 < 400f)
  			{
  				HUD::CLEAR_PRINTS();
  				func_140("FLY_DROP", 7500, 1);
  				AUDIO::REQUEST_SCRIPT_AUDIO_BANK("PLANES", false, -1);
  				iLocal_327 = 1;
  			}
  		}
  		if (!iLocal_328)
  		{
  			if (fVar0 < 300f)
  			{
  				HUD::CLEAR_HELP(true);
  				func_78("LEAFLET", -1);
  				iLocal_328 = 1;
  				iLocal_325 = 1;
  			}
  		}
  		if (fVar0 < uParam0->f_3)
  		{
  			iLocal_329 = 1;
  			if (bLocal_326)
  			{
  				if (uParam0->f_7 == -1)
  				{
  					uParam0->f_7 = MISC::GET_GAME_TIMER();
  				}
  				else if ((MISC::GET_GAME_TIMER() - uParam0->f_7) > 1000)
  				{
  					uParam0->f_6 = 1;
  					if (HUD::DOES_BLIP_EXIST(uParam0->f_4))
  					{
  						HUD::REMOVE_BLIP(&(uParam0->f_4));
  					}
  					if (HUD::DOES_BLIP_EXIST(uParam0->f_5))
  					{
  						HUD::REMOVE_BLIP(&(uParam0->f_5));
  					}
  					AUDIO::PLAY_SOUND_FRONTEND(-1, "CHECKPOINT_NORMAL", "HUD_MINI_GAME_SOUNDSET", false);
  					return 1;
  				}
  			}
  		}
  		if (!uParam0->f_6)
  		{
  			if (!HUD::DOES_BLIP_EXIST(uParam0->f_4))
  			{
  				uParam0->f_4 = func_43(*uParam0, 0);
  				HUD::SET_BLIP_SCALE(uParam0->f_4, 0.75f);
  				HUD::SHOW_HEIGHT_ON_BLIP(uParam0->f_4, false);
  			}
  			if (!HUD::DOES_BLIP_EXIST(uParam0->f_5))
  			{
  				uParam0->f_5 = func_77(*uParam0, uParam0->f_3, 0);
  			}
  		}
  	}
  	return 0;
  }
  
  int func_77(struct<3> Param0, float fParam3, bool bParam4)
  {
  	int iVar0;
  	
  	iVar0 = HUD::ADD_BLIP_FOR_RADIUS(Param0, fParam3);
  	HUD::SET_BLIP_COLOUR(iVar0, 5);
  	HUD::SET_BLIP_ALPHA(iVar0, 64);
  	HUD::SET_BLIP_AS_SHORT_RANGE(iVar0, bParam4);
  	if (!bParam4)
  	{
  		HUD::SET_BLIP_DISPLAY(iVar0, 4);
  	}
  	return iVar0;
  }
  
  void func_78(char* sParam0, int iParam1)
  {
  	HUD::BEGIN_TEXT_COMMAND_DISPLAY_HELP(sParam0);
  	HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, false, true, iParam1);
  }
  
  float func_79(int iParam0, struct<3> Param1, bool bParam4)
  {
  	struct<3> Var0;
  	
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, true) };
  	}
  	else
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, false) };
  	}
  	return MISC::GET_DISTANCE_BETWEEN_COORDS(Var0, Param1, bParam4);
  }
  
  void func_80(struct<3> Param0, float fParam3, int iParam4, int iParam5)
  {
  	struct<3> Var0;
  	var uVar3;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(Global_102423.f_4))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(Global_102423.f_4, false))
  		{
  			if (func_132(24) != Global_102423.f_4)
  			{
  				if (iParam4 == 1)
  				{
  					if (func_129(ENTITY::GET_ENTITY_COORDS(Global_102423.f_4, true), iParam5, &Var0, &uVar3))
  					{
  						Param0 = { Var0 };
  						fParam3 = uVar3;
  					}
  				}
  				func_81(Global_102423.f_4, Param0, fParam3, 24, 0);
  			}
  		}
  	}
  }
  
  void func_81(int iParam0, struct<3> Param1, float fParam4, int iParam5, bool bParam6)
  {
  	struct<60> Var0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		if (iParam5 != 24 && iParam5 != 25)
  		{
  			return;
  		}
  		if (iParam5 == 24)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(Global_75654.f_484[25]) && VEHICLE::IS_VEHICLE_DRIVEABLE(Global_75654.f_484[25], false))
  			{
  				if (Global_75654.f_484[25] == iParam0)
  				{
  					return;
  				}
  			}
  		}
  		if (!bParam6)
  		{
  			if ((VEHICLE::IS_BIG_VEHICLE(iParam0) || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("bus")) || ENTITY::GET_ENTITY_MODEL(iParam0) == joaat("tourbus"))
  			{
  				return;
  			}
  		}
  		func_128(iParam5);
  		Var0.f_9 = 49;
  		Var0.f_59 = 2;
  		func_123(iParam0, &Var0);
  		if (func_122(Param1, 0f, 0f, 0f, 0))
  		{
  			Param1 = { ENTITY::GET_ENTITY_COORDS(iParam0, true) };
  			fParam4 = ENTITY::GET_ENTITY_HEADING(iParam0);
  		}
  		if (iParam5 == 24)
  		{
  			if (MISC::GET_HASH_KEY(SCRIPT::GET_THIS_SCRIPT_NAME()) != joaat("vehicle_gen_controller"))
  			{
  				Global_76642 = MISC::GET_HASH_KEY(SCRIPT::GET_THIS_SCRIPT_NAME());
  			}
  		}
  		func_115(iParam5, &Var0, Param1, fParam4, func_121(iParam0));
  		func_82(iParam5, iParam0, 0);
  	}
  }
  
  void func_82(int iParam0, int iParam1, int iParam2)
  {
  	int iVar0;
  	
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (!func_112(&(Global_75654.f_555[0 /*21*/]), iParam0))
  	{
  		return;
  	}
  	if (!MISC::IS_BIT_SET(Global_75654.f_555[0 /*21*/].f_9, 12) && !MISC::IS_BIT_SET(Global_75654.f_555[0 /*21*/].f_9, 10))
  	{
  		if (Global_75654.f_555[0 /*21*/].f_4 != ENTITY::GET_ENTITY_MODEL(iParam1))
  		{
  			return;
  		}
  	}
  	if (Global_76561 != -1 && Global_76561 != iParam0)
  	{
  		return;
  	}
  	if (ENTITY::DOES_ENTITY_EXIST(iParam1))
  	{
  		if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam1, false))
  		{
  			if (!ENTITY::IS_ENTITY_A_MISSION_ENTITY(iParam1))
  			{
  				ENTITY::SET_ENTITY_AS_MISSION_ENTITY(iParam1, true, true);
  			}
  			if (iParam0 == 24)
  			{
  				Global_111858.f_32745.f_4801 = func_101();
  			}
  			if (iParam1 != Global_75654.f_139[iParam0])
  			{
  				if (iParam0 == 24)
  				{
  					iVar0 = func_132(iParam0);
  					if ((ENTITY::DOES_ENTITY_EXIST(iVar0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iVar0, false)) && iParam1 != iVar0)
  					{
  						func_83(iVar0, 145);
  					}
  				}
  				Global_76560 = iParam1;
  				Global_76561 = iParam0;
  				Global_76562 = iParam2;
  			}
  		}
  	}
  }
  
  void func_83(int iParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	int iVar2;
  	
  	if (!func_84(iParam0))
  	{
  		return;
  	}
  	if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
  	{
  		iVar0 = VEHICLE::GET_PED_IN_VEHICLE_SEAT(iParam0, -1, 0);
  		if (!ENTITY::DOES_ENTITY_EXIST(iVar0))
  		{
  			iVar0 = VEHICLE::GET_LAST_PED_IN_VEHICLE_SEAT(iParam0, -1);
  		}
  		if (ENTITY::DOES_ENTITY_EXIST(iVar0) && !PED::IS_PED_INJURED(iVar0))
  		{
  			if (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("player_zero"))
  			{
  				iParam1 = 0;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("player_one"))
  			{
  				iParam1 = 1;
  			}
  			else if (ENTITY::GET_ENTITY_MODEL(iVar0) == joaat("player_two"))
  			{
  				iParam1 = 2;
  			}
  		}
  		if ((iParam1 != 0 && iParam1 != 1) && iParam1 != 2)
  		{
  			iParam1 = Global_111858.f_2359.f_539.f_4321;
  		}
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		iVar2 = 0;
  		while (iVar2 < 2)
  		{
  			if (ENTITY::GET_ENTITY_MODEL(iParam0) == Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66)
  			{
  				if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
  				{
  					if (MISC::ARE_STRINGS_EQUAL(VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0), &(Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_1)))
  					{
  						Global_111858.f_32745.f_5038[iVar1 /*157*/][iVar2 /*78*/].f_66 = 0;
  						Global_111858.f_32745.f_5592[iVar1] = iVar2;
  					}
  				}
  			}
  			iVar2++;
  		}
  		iVar1 = (iVar1 + 1);
  	}
  	iVar1 = 0;
  	while (iVar1 < 3)
  	{
  		if (ENTITY::GET_ENTITY_MODEL(iParam0) == Global_111858.f_32745.f_5600[iVar1 /*78*/].f_66)
  		{
  			if (!MISC::IS_STRING_NULL_OR_EMPTY(&(Global_111858.f_32745.f_5600[iVar1 /*78*/].f_1)))
  			{
  				if (MISC::ARE_STRINGS_EQUAL(VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0), &(Global_111858.f_32745.f_5600[iVar1 /*78*/].f_1)))
  				{
  					Global_111858.f_32745.f_5600[iVar1 /*78*/].f_66 = 0;
  				}
  			}
  		}
  		iVar1++;
  	}
  	Global_111858.f_32745.f_5590 = iParam1;
  	Global_76559 = iParam0;
  	Global_111858.f_32745.f_5588 = 1;
  	func_123(iParam0, &(Global_111858.f_32745.f_5510));
  }
  
  int func_84(int iParam0)
  {
  	if ((((((((((!ENTITY::DOES_ENTITY_EXIST(iParam0) || !VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false)) || func_99(iParam0, 0, 0)) || func_99(iParam0, 1, 0)) || func_99(iParam0, 2, 0)) || func_121(iParam0) != 145) || func_98(iParam0)) || func_97(iParam0)) || func_96(iParam0)) || func_95(iParam0)) || !func_85(ENTITY::GET_ENTITY_MODEL(iParam0)))
  	{
  		if (func_97(iParam0))
  		{
  		}
  		if (func_97(iParam0))
  		{
  		}
  		if (func_99(iParam0, 0, 0))
  		{
  		}
  		if (func_99(iParam0, 1, 0))
  		{
  		}
  		if (func_99(iParam0, 2, 0))
  		{
  		}
  		if (func_121(iParam0) != 145)
  		{
  		}
  		return 0;
  	}
  	return 1;
  }
  
  int func_85(int iParam0)
  {
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!func_86(iParam0, 0))
  	{
  		return 0;
  	}
  	if (((VEHICLE::IS_THIS_MODEL_A_BOAT(iParam0) || VEHICLE::IS_THIS_MODEL_A_PLANE(iParam0)) || VEHICLE::IS_THIS_MODEL_A_HELI(iParam0)) || VEHICLE::IS_THIS_MODEL_A_TRAIN(iParam0))
  	{
  		return 0;
  	}
  	switch (iParam0)
  	{
  		case joaat("bus"):
  		case joaat("stretch"):
  		case joaat("barracks"):
  		case joaat("armytanker"):
  		case joaat("rhino"):
  		case joaat("armytrailer"):
  		case joaat("barracks2"):
  		case joaat("flatbed"):
  		case joaat("ripley"):
  		case joaat("towtruck"):
  		case joaat("towtruck2"):
  		case joaat("airbus"):
  		case joaat("coach"):
  		case joaat("rentalbus"):
  		case joaat("tourbus"):
  		case joaat("firetruk"):
  		case joaat("pbus"):
  		case joaat("trash"):
  		case joaat("benson"):
  		case joaat("boattrailer"):
  		case joaat("biff"):
  		case joaat("hauler"):
  		case joaat("docktrailer"):
  		case joaat("phantom"):
  		case joaat("pounder"):
  		case joaat("tractor2"):
  		case joaat("bulldozer"):
  		case joaat("handler"):
  		case joaat("tiptruck"):
  		case joaat("cutter"):
  		case joaat("dump"):
  		case joaat("mixer"):
  		case joaat("mixer2"):
  		case joaat("rubble"):
  		case joaat("scrap"):
  		case joaat("tiptruck2"):
  		case joaat("camper"):
  		case joaat("taco"):
  		case joaat("boxville"):
  		case joaat("boxville2"):
  		case joaat("boxville3"):
  		case joaat("journey"):
  		case joaat("mule"):
  		case joaat("mule2"):
  		case joaat("police"):
  		case joaat("police2"):
  		case joaat("police3"):
  		case joaat("police4"):
  		case joaat("policeb"):
  		case joaat("policeold1"):
  		case joaat("policeold2"):
  		case joaat("policet"):
  		case joaat("taxi"):
  		case joaat("submersible"):
  		case joaat("submersible2"):
  		case joaat("monster"):
  			return 0;
  			break;
  	}
  	return 1;
  }
  
  int func_86(int iParam0, bool bParam1)
  {
  	int iVar0;
  	struct<2> Var1;
  	
  	if (iParam0 == 0)
  	{
  		return 0;
  	}
  	if (!STREAMING::IS_MODEL_A_VEHICLE(iParam0))
  	{
  		return 0;
  	}
  	if (((((iParam0 == joaat("dominator2") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS()) || (iParam0 == joaat("buffalo3") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS())) || (iParam0 == joaat("gauntlet2") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS())) || iParam0 == joaat("blimp2")) || (iParam0 == joaat("stalion2") && !NETWORK::NETWORK_IS_GAME_IN_PROGRESS()))
  	{
  		if (!func_94())
  		{
  			return 0;
  		}
  	}
  	else
  	{
  		iVar0 = 0;
  		while (iVar0 < FILES::GET_NUM_DLC_VEHICLES())
  		{
  			if (FILES::GET_DLC_VEHICLE_DATA(iVar0, &Var1))
  			{
  				if (iParam0 == Var1.f_1)
  				{
  					if (FILES::IS_CONTENT_ITEM_LOCKED(Var1))
  					{
  						return 0;
  					}
  				}
  			}
  			iVar0++;
  		}
  	}
  	if (iParam0 == joaat("blimp"))
  	{
  		if ((((!func_93() && !func_92()) && !func_91()) && !func_90()) && !func_94())
  		{
  			return 0;
  		}
  	}
  	if ((iParam0 == joaat("hotknife") || iParam0 == joaat("carbonrs")) || iParam0 == joaat("khamelion"))
  	{
  		if ((MISC::IS_DURANGO_VERSION() || MISC::IS_PC_VERSION()) || MISC::IS_ORBIS_VERSION())
  		{
  		}
  		else if (!func_91())
  		{
  			return 0;
  		}
  	}
  	if (bParam1)
  	{
  		if (!func_89(iParam0))
  		{
  			return 0;
  		}
  	}
  	if (!func_87(iParam0))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_87(int iParam0)
  {
  	int iVar0;
  	var uVar1;
  	char cVar2[64];
  	
  	if (!func_88())
  	{
  		return 1;
  	}
  	NETSHOPPING::_NET_GAMESERVER_GET_TRANSACTION_MANAGER_DATA(&iVar0, &uVar1);
  	if (iVar0 == 4)
  	{
  		return 1;
  	}
  	switch (iParam0)
  	{
  		case joaat("dune4"):
  			StringCopy(&cVar2, "VE_DUNE4_t0_v3", 64);
  			break;
  		
  		case joaat("voltic2"):
  			StringCopy(&cVar2, "VE_VOLTIC2_t0_v3", 64);
  			break;
  		
  		case joaat("ruiner2"):
  			StringCopy(&cVar2, "VE_RUINER2_t0_v3", 64);
  			break;
  		
  		case joaat("phantom2"):
  			StringCopy(&cVar2, "VE_PHANTOM2_t0_v3", 64);
  			break;
  		
  		case joaat("technical2"):
  			StringCopy(&cVar2, "VE_TECHNICAL2_t0_v3", 64);
  			break;
  		
  		case joaat("boxville5"):
  			StringCopy(&cVar2, "VE_BOXVILLE5_t0_v3", 64);
  			break;
  		
  		case joaat("wastelander"):
  			StringCopy(&cVar2, "VE_WASTELANDER_t0_v3", 64);
  			break;
  		
  		case joaat("blazer5"):
  			StringCopy(&cVar2, "VE_BLAZER5_t0_v3", 64);
  			break;
  		
  		default:
  			return 1;
  			break;
  	}
  	if (!NETSHOPPING::_NET_GAMESERVER_CATALOG_ITEM_EXISTS(&cVar2))
  	{
  		return 0;
  	}
  	return 1;
  }
  
  int func_88()
  {
  	if (MISC::IS_PC_VERSION())
  	{
  		return NETSHOPPING::_NET_GAMESERVER_USE_SERVER_TRANSACTIONS();
  	}
  	return 0;
  }
  
  int func_89(int iParam0)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (Global_2515213)
  	{
  		return 1;
  	}
  	iVar0 = 1;
  	iVar1 = NETWORK::GET_CLOUD_TIME_AS_INT();
  	if (iParam0 == joaat("btype3"))
  	{
  		if ((!Global_262145.f_6600 && !Global_262145.f_12930) && iVar1 < Global_262145.f_12931)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("faction3"))
  	{
  		if (!Global_262145.f_14230 && iVar1 < Global_262145.f_14242)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
  	{
  		if (!Global_262145.f_14226 && iVar1 < Global_262145.f_14238)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sabregt2"))
  	{
  		if (!Global_262145.f_14227 && iVar1 < Global_262145.f_14239)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tornado5"))
  	{
  		if (!Global_262145.f_14228 && iVar1 < Global_262145.f_14240)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("minivan2"))
  	{
  		if (!Global_262145.f_14229 && iVar1 < Global_262145.f_14241)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("slamvan3"))
  	{
  		if (!Global_262145.f_14231 && iVar1 < Global_262145.f_14243)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("prototipo"))
  	{
  		if (!Global_262145.f_14232 && iVar1 < Global_262145.f_14235)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seven70"))
  	{
  		if (!Global_262145.f_14233 && iVar1 < Global_262145.f_14236)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pfister811"))
  	{
  		if (!Global_262145.f_14234 && iVar1 < Global_262145.f_14237)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("bf400"))
  	{
  		if (!Global_262145.f_16861 && iVar1 < Global_262145.f_16826)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("brioso"))
  	{
  		if (!Global_262145.f_16856 && iVar1 < Global_262145.f_16821)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cliffhanger"))
  	{
  		if (!Global_262145.f_16860 && iVar1 < Global_262145.f_16825)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("contender"))
  	{
  		if (!Global_262145.f_16859 && iVar1 < Global_262145.f_16824)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("le7b"))
  	{
  		if (!Global_262145.f_16853 && iVar1 < Global_262145.f_16818)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("omnis"))
  	{
  		if (!Global_262145.f_16854 && iVar1 < Global_262145.f_16819)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("trophytruck"))
  	{
  		if (!Global_262145.f_16857 && iVar1 < Global_262145.f_16822)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("trophytruck2"))
  	{
  		if (!Global_262145.f_16858 && iVar1 < Global_262145.f_16823)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tropos"))
  	{
  		if (!Global_262145.f_16855 && iVar1 < Global_262145.f_16820)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gargoyle"))
  	{
  		if (!Global_262145.f_16863 && iVar1 < Global_262145.f_16828)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rallytruck"))
  	{
  		if (!Global_262145.f_16864 && iVar1 < Global_262145.f_16829)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tampa2"))
  	{
  		if (!Global_262145.f_16852 && iVar1 < Global_262145.f_16817)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tyrus"))
  	{
  		if (!Global_262145.f_16851 && iVar1 < Global_262145.f_16816)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sheava"))
  	{
  		if (!Global_262145.f_16850 && iVar1 < Global_262145.f_16815)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("lynx"))
  	{
  		if (!Global_262145.f_16862 && iVar1 < Global_262145.f_16827)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stalion2"))
  	{
  		if (!Global_262145.f_16865 && iVar1 < Global_262145.f_16830)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet2"))
  	{
  		if (!Global_262145.f_16866 && iVar1 < Global_262145.f_16831)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dominator2"))
  	{
  		if (!Global_262145.f_16867 && iVar1 < Global_262145.f_16832)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("buffalo3"))
  	{
  		if (!Global_262145.f_16868 && iVar1 < Global_262145.f_16833)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("defiler"))
  	{
  		if (!Global_262145.f_17015 && iVar1 < Global_262145.f_17037)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nightblade"))
  	{
  		if (!Global_262145.f_17016 && iVar1 < Global_262145.f_17038)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zombiea"))
  	{
  		if (!Global_262145.f_17017 && iVar1 < Global_262145.f_17039)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("esskey"))
  	{
  		if (!Global_262145.f_17018 && iVar1 < Global_262145.f_17040)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("avarus"))
  	{
  		if (!Global_262145.f_17019 && iVar1 < Global_262145.f_17041)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zombieb"))
  	{
  		if (!Global_262145.f_17020 && iVar1 < Global_262145.f_17042)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hakuchou2"))
  	{
  		if (!Global_262145.f_17022 && iVar1 < Global_262145.f_17043)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vortex"))
  	{
  		if (!Global_262145.f_17023 && iVar1 < Global_262145.f_17044)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("shotaro"))
  	{
  		if (!Global_262145.f_17024 && iVar1 < Global_262145.f_17045)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("chimera"))
  	{
  		if (!Global_262145.f_17025 && iVar1 < Global_262145.f_17046)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("raptor"))
  	{
  		if (!Global_262145.f_17026 && iVar1 < Global_262145.f_17047)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("daemon2"))
  	{
  		if (!Global_262145.f_17027 && iVar1 < Global_262145.f_17048)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer4"))
  	{
  		if (!Global_262145.f_17028 && iVar1 < Global_262145.f_17049)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tornado6"))
  	{
  		if (!Global_262145.f_17034 && iVar1 < Global_262145.f_17056)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("youga2"))
  	{
  		if (!Global_262145.f_17031 && iVar1 < Global_262145.f_17052)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("wolfsbane"))
  	{
  		if (!Global_262145.f_17032 && iVar1 < Global_262145.f_17053)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("faggio3"))
  	{
  		if (!Global_262145.f_17033 && iVar1 < Global_262145.f_17054)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("faggio"))
  	{
  		if (!Global_262145.f_17021 && iVar1 < Global_262145.f_17055)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("bagger"))
  	{
  		if (!Global_262145.f_17035 && iVar1 < Global_262145.f_17057)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sanctus"))
  	{
  		if (!Global_262145.f_17029 && iVar1 < Global_262145.f_17050)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manchez"))
  	{
  		if (!Global_262145.f_17030 && iVar1 < Global_262145.f_17051)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ratbike"))
  	{
  		if (!Global_262145.f_17036 && iVar1 < Global_262145.f_17058)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("voltic2"))
  	{
  		if (!Global_262145.f_18667 && iVar1 < Global_262145.f_18764)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ruiner2"))
  	{
  		if (!Global_262145.f_18668 && iVar1 < Global_262145.f_18765)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dune4"))
  	{
  		if (!Global_262145.f_18669 && iVar1 < Global_262145.f_18766)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dune5"))
  	{
  		if (!Global_262145.f_18670 && iVar1 < Global_262145.f_18767)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("phantom2"))
  	{
  		if (!Global_262145.f_18671 && iVar1 < Global_262145.f_18768)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("technical2"))
  	{
  		if (!Global_262145.f_18672 && iVar1 < Global_262145.f_18769)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("boxville5"))
  	{
  		if (!Global_262145.f_18673 && iVar1 < Global_262145.f_18770)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("wastelander"))
  	{
  		if (!Global_262145.f_18674 && iVar1 < Global_262145.f_18771)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer5"))
  	{
  		if (!Global_262145.f_18675 && iVar1 < Global_262145.f_18772)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet2"))
  	{
  		if (!Global_262145.f_18676 && iVar1 < Global_262145.f_18773)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet3"))
  	{
  		if (!Global_262145.f_18677 && iVar1 < Global_262145.f_18774)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("diablous"))
  	{
  		if (!Global_262145.f_18678 && iVar1 < Global_262145.f_18775)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("diablous2"))
  	{
  		if (!Global_262145.f_18679 && iVar1 < Global_262145.f_18776)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("elegy"))
  	{
  		if (!Global_262145.f_18680 && iVar1 < Global_262145.f_18777)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("elegy2"))
  	{
  		if (!Global_262145.f_18681 && iVar1 < Global_262145.f_18778)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fcr"))
  	{
  		if (!Global_262145.f_18682 && iVar1 < Global_262145.f_18779)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fcr2"))
  	{
  		if (!Global_262145.f_18683 && iVar1 < Global_262145.f_18780)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigtb"))
  	{
  		if (!Global_262145.f_18684 && iVar1 < Global_262145.f_18781)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigtb2"))
  	{
  		if (!Global_262145.f_18685 && iVar1 < Global_262145.f_18782)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nero"))
  	{
  		if (!Global_262145.f_18686 && iVar1 < Global_262145.f_18783)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nero2"))
  	{
  		if (!Global_262145.f_18687 && iVar1 < Global_262145.f_18784)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("penetrator"))
  	{
  		if (!Global_262145.f_18688 && iVar1 < Global_262145.f_18785)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("specter"))
  	{
  		if (!Global_262145.f_18689 && iVar1 < Global_262145.f_18786)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("specter2"))
  	{
  		if (!Global_262145.f_18690 && iVar1 < Global_262145.f_18787)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tempesta"))
  	{
  		if (!Global_262145.f_18691 && iVar1 < Global_262145.f_18788)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("gp1"))
  	{
  		if (!Global_262145.f_19748 && iVar1 < Global_262145.f_19744)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("infernus2"))
  	{
  		if (!Global_262145.f_19749 && iVar1 < Global_262145.f_19745)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ruston"))
  	{
  		if (!Global_262145.f_19750 && iVar1 < Global_262145.f_19746)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("turismo2"))
  	{
  		if (!Global_262145.f_19751 && iVar1 < Global_262145.f_19747)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("xa21"))
  	{
  		if (!Global_262145.f_20629 && iVar1 < Global_262145.f_20637)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cheetah2"))
  	{
  		if (!Global_262145.f_20630 && iVar1 < Global_262145.f_20638)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("torero"))
  	{
  		if (!Global_262145.f_20631 && iVar1 < Global_262145.f_20639)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vagner"))
  	{
  		if (!Global_262145.f_20632 && iVar1 < Global_262145.f_20640)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ardent"))
  	{
  		if (!Global_262145.f_20633 && iVar1 < Global_262145.f_20641)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nightshark"))
  	{
  		if (!Global_262145.f_20634 && iVar1 < Global_262145.f_20642)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("microlight"))
  	{
  		if (!Global_262145.f_21409 && iVar1 < Global_262145.f_21429)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("mogul"))
  	{
  		if (!Global_262145.f_21421 && iVar1 < Global_262145.f_21441)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rogue"))
  	{
  		if (!Global_262145.f_21412 && iVar1 < Global_262145.f_21432)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("starling"))
  	{
  		if (!Global_262145.f_21422 && iVar1 < Global_262145.f_21442)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seabreeze"))
  	{
  		if (!Global_262145.f_21410 && iVar1 < Global_262145.f_21430)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tula"))
  	{
  		if (!Global_262145.f_21426 && iVar1 < Global_262145.f_21446)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pyro"))
  	{
  		if (!Global_262145.f_21424 && iVar1 < Global_262145.f_21444)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("molotok"))
  	{
  		if (!Global_262145.f_21425 && iVar1 < Global_262145.f_21445)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nokota"))
  	{
  		if (!Global_262145.f_21420 && iVar1 < Global_262145.f_21440)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("bombushka"))
  	{
  		if (!Global_262145.f_21427 && iVar1 < Global_262145.f_21447)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hunter"))
  	{
  		if (!Global_262145.f_21423 && iVar1 < Global_262145.f_21443)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("havok"))
  	{
  		if (!Global_262145.f_21419 && iVar1 < Global_262145.f_21439)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("howard"))
  	{
  		if (!Global_262145.f_21411 && iVar1 < Global_262145.f_21431)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("alphaz1"))
  	{
  		if (!Global_262145.f_21413 && iVar1 < Global_262145.f_21433)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cyclone"))
  	{
  		if (!Global_262145.f_21414 && iVar1 < Global_262145.f_21434)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("visione"))
  	{
  		if (!Global_262145.f_21415 && iVar1 < Global_262145.f_21435)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vigilante"))
  	{
  		if (!Global_262145.f_21416 && iVar1 < Global_262145.f_21436)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("retinue"))
  	{
  		if (!Global_262145.f_21417 && iVar1 < Global_262145.f_21437)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rapidgt3"))
  	{
  		if (!Global_262145.f_21418 && iVar1 < Global_262145.f_21438)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("deluxo"))
  	{
  		if (!Global_262145.f_22370 && iVar1 < Global_262145.f_22398)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stromberg"))
  	{
  		if (!Global_262145.f_22371 && iVar1 < Global_262145.f_22399)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("riot2"))
  	{
  		if (!Global_262145.f_22372 && iVar1 < Global_262145.f_22400)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("chernobog"))
  	{
  		if (!Global_262145.f_22373 && iVar1 < Global_262145.f_22401)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("khanjali"))
  	{
  		if (!Global_262145.f_22374 && iVar1 < Global_262145.f_22402)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("akula"))
  	{
  		if (!Global_262145.f_22375 && iVar1 < Global_262145.f_22403)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("thruster"))
  	{
  		if (!Global_262145.f_22376 && iVar1 < Global_262145.f_22404)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("barrage"))
  	{
  		if (!Global_262145.f_22377 && iVar1 < Global_262145.f_22405)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("volatol"))
  	{
  		if (!Global_262145.f_22378 && iVar1 < Global_262145.f_22406)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet4"))
  	{
  		if (!Global_262145.f_22379 && iVar1 < Global_262145.f_22407)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("neon"))
  	{
  		if (!Global_262145.f_22380 && iVar1 < Global_262145.f_22408)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("streiter"))
  	{
  		if (!Global_262145.f_22381 && iVar1 < Global_262145.f_22409)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sentinel3"))
  	{
  		if (!Global_262145.f_22382 && iVar1 < Global_262145.f_22410)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite"))
  	{
  		if (!Global_262145.f_22383 && iVar1 < Global_262145.f_22411)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sc1"))
  	{
  		if (!Global_262145.f_22384 && iVar1 < Global_262145.f_22412)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("autarch"))
  	{
  		if (!Global_262145.f_22385 && iVar1 < Global_262145.f_22413)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gt500"))
  	{
  		if (!Global_262145.f_22386 && iVar1 < Global_262145.f_22414)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hustler"))
  	{
  		if (!Global_262145.f_22387 && iVar1 < Global_262145.f_22415)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("revolter"))
  	{
  		if (!Global_262145.f_22388 && iVar1 < Global_262145.f_22416)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pariah"))
  	{
  		if (!Global_262145.f_22389 && iVar1 < Global_262145.f_22417)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("raiden"))
  	{
  		if (!Global_262145.f_22390 && iVar1 < Global_262145.f_22418)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("savestra"))
  	{
  		if (!Global_262145.f_22391 && iVar1 < Global_262145.f_22419)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("riata"))
  	{
  		if (!Global_262145.f_22392 && iVar1 < Global_262145.f_22420)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hermes"))
  	{
  		if (!Global_262145.f_22393 && iVar1 < Global_262145.f_22421)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("comet5"))
  	{
  		if (!Global_262145.f_22394 && iVar1 < Global_262145.f_22422)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("z190"))
  	{
  		if (!Global_262145.f_22395 && iVar1 < Global_262145.f_22423)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("viseris"))
  	{
  		if (!Global_262145.f_22396 && iVar1 < Global_262145.f_22424)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("kamacho"))
  	{
  		if (!Global_262145.f_22397 && iVar1 < Global_262145.f_22425)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("gb200"))
  	{
  		if (!Global_262145.f_23586 && iVar1 < Global_262145.f_23602)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("fagaloa"))
  	{
  		if (!Global_262145.f_23587 && iVar1 < Global_262145.f_23603)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("ellie"))
  	{
  		if (!Global_262145.f_23591 && iVar1 < Global_262145.f_23607)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("issi3"))
  	{
  		if (!Global_262145.f_23594 && iVar1 < Global_262145.f_23610)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("michelli"))
  	{
  		if (!Global_262145.f_23599 && iVar1 < Global_262145.f_23615)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("flashgt"))
  	{
  		if (!Global_262145.f_23593 && iVar1 < Global_262145.f_23609)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hotring"))
  	{
  		if (!Global_262145.f_23585 && iVar1 < Global_262145.f_23601)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tezeract"))
  	{
  		if (!Global_262145.f_23592 && iVar1 < Global_262145.f_23608)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tyrant"))
  	{
  		if (!Global_262145.f_23598 && iVar1 < Global_262145.f_23614)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dominator3"))
  	{
  		if (!Global_262145.f_23597 && iVar1 < Global_262145.f_23613)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("taipan"))
  	{
  		if (!Global_262145.f_23588 && iVar1 < Global_262145.f_23604)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("entity2"))
  	{
  		if (!Global_262145.f_23590 && iVar1 < Global_262145.f_23606)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jester3"))
  	{
  		if (!Global_262145.f_23600 && iVar1 < Global_262145.f_23616)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("cheburek"))
  	{
  		if (!Global_262145.f_23596 && iVar1 < Global_262145.f_23612)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("caracara"))
  	{
  		if (!Global_262145.f_23589 && iVar1 < Global_262145.f_23605)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seasparrow"))
  	{
  		if (!Global_262145.f_23595 && iVar1 < Global_262145.f_23611)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("terbyte"))
  	{
  		if (!Global_262145.f_23676 && iVar1 < Global_262145.f_23663)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pbus2"))
  	{
  		if (!Global_262145.f_23677 && iVar1 < Global_262145.f_23664)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("mule4"))
  	{
  		if (!Global_262145.f_23682 && iVar1 < Global_262145.f_23669)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("pounder2"))
  	{
  		if (!Global_262145.f_23681 && iVar1 < Global_262145.f_23668)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("swinger"))
  	{
  		if (!Global_262145.f_23679 && iVar1 < Global_262145.f_23666)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("menacer"))
  	{
  		if (!Global_262145.f_23685 && iVar1 < Global_262145.f_23672)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("scramjet"))
  	{
  		if (!Global_262145.f_23687 && iVar1 < Global_262145.f_23674)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("strikeforce"))
  	{
  		if (!Global_262145.f_23688 && iVar1 < Global_262145.f_23675)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("oppressor2"))
  	{
  		if (!Global_262145.f_23686 && iVar1 < Global_262145.f_23673)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("patriot2"))
  	{
  		if (!Global_262145.f_23678 && iVar1 < Global_262145.f_23665)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stafford"))
  	{
  		if (!Global_262145.f_23680 && iVar1 < Global_262145.f_23667)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("freecrawler"))
  	{
  		if (!Global_262145.f_23684 && iVar1 < Global_262145.f_23671)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blimp3"))
  	{
  		if (!Global_262145.f_23683 && iVar1 < Global_262145.f_23670)
  		{
  			iVar0 = 0;
  		}
  	}
  	if (iParam0 == joaat("monster3"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus2"))
  	{
  	}
  	else if (iParam0 == joaat("cerberus3"))
  	{
  	}
  	else if (iParam0 == joaat("brutus"))
  	{
  	}
  	else if (iParam0 == joaat("brutus2"))
  	{
  	}
  	else if (iParam0 == joaat("brutus3"))
  	{
  	}
  	else if (iParam0 == joaat("scarab"))
  	{
  	}
  	else if (iParam0 == joaat("scarab2"))
  	{
  	}
  	else if (iParam0 == joaat("scarab3"))
  	{
  	}
  	else if (iParam0 == joaat("imperator"))
  	{
  	}
  	else if (iParam0 == joaat("imperator2"))
  	{
  	}
  	else if (iParam0 == joaat("imperator3"))
  	{
  	}
  	else if (iParam0 == joaat("zr380"))
  	{
  	}
  	else if (iParam0 == joaat("zr3802"))
  	{
  	}
  	else if (iParam0 == joaat("zr3803"))
  	{
  	}
  	else if (iParam0 == joaat("impaler"))
  	{
  	}
  	else if (iParam0 == joaat("deveste"))
  	{
  		if (!Global_262145.f_26051 && iVar1 < Global_262145.f_26053)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("toros"))
  	{
  		if (!Global_262145.f_25064 && iVar1 < Global_262145.f_25057)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("clique"))
  	{
  		if (!Global_262145.f_25065 && iVar1 < Global_262145.f_25058)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italigto"))
  	{
  		if (!Global_262145.f_25066 && iVar1 < Global_262145.f_25059)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("deviant"))
  	{
  		if (!Global_262145.f_25067 && iVar1 < Global_262145.f_25060)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vamos"))
  	{
  		if (!Global_262145.f_26052 && iVar1 < Global_262145.f_26054)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tulip"))
  	{
  		if (!Global_262145.f_25068 && iVar1 < Global_262145.f_25061)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("schlagen"))
  	{
  		if (!Global_262145.f_25069 && iVar1 < Global_262145.f_25062)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rcbandito"))
  	{
  		if (!Global_262145.f_25070 && iVar1 < Global_262145.f_25063)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("thrax"))
  	{
  		if (!Global_262145.f_25075 && iVar1 < Global_262145.f_25096)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("drafter"))
  	{
  		if (!Global_262145.f_25076 && iVar1 < Global_262145.f_25097)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("locust"))
  	{
  		if (!Global_262145.f_25077 && iVar1 < Global_262145.f_25098)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("novak"))
  	{
  		if (!Global_262145.f_25078 && iVar1 < Global_262145.f_25099)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zorrusso"))
  	{
  		if (!Global_262145.f_25079 && iVar1 < Global_262145.f_25100)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet3"))
  	{
  		if (!Global_262145.f_25080 && iVar1 < Global_262145.f_25101)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("issi7"))
  	{
  		if (!Global_262145.f_25081 && iVar1 < Global_262145.f_25102)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zion3"))
  	{
  		if (!Global_262145.f_25082 && iVar1 < Global_262145.f_25103)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("nebula"))
  	{
  		if (!Global_262145.f_25083 && iVar1 < Global_262145.f_25104)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("hellion"))
  	{
  		if (!Global_262145.f_25084 && iVar1 < Global_262145.f_25105)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dynasty"))
  	{
  		if (!Global_262145.f_25085 && iVar1 < Global_262145.f_25106)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rrocket"))
  	{
  		if (!Global_262145.f_25086 && iVar1 < Global_262145.f_25107)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("peyote2"))
  	{
  		if (!Global_262145.f_25087 && iVar1 < Global_262145.f_25108)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet4"))
  	{
  		if (!Global_262145.f_25088 && iVar1 < Global_262145.f_25109)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("caracara2"))
  	{
  		if (!Global_262145.f_25089 && iVar1 < Global_262145.f_25110)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jugular"))
  	{
  		if (!Global_262145.f_25090 && iVar1 < Global_262145.f_25111)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("s80"))
  	{
  		if (!Global_262145.f_25091 && iVar1 < Global_262145.f_25112)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("krieger"))
  	{
  		if (!Global_262145.f_25092 && iVar1 < Global_262145.f_25113)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("emerus"))
  	{
  		if (!Global_262145.f_25093 && iVar1 < Global_262145.f_25114)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("neo"))
  	{
  		if (!Global_262145.f_25094 && iVar1 < Global_262145.f_25115)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("paragon"))
  	{
  		if (!Global_262145.f_25095 && iVar1 < Global_262145.f_25116)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("asbo"))
  	{
  		if (!Global_262145.f_27895 && iVar1 < Global_262145.f_27916)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("kanjo"))
  	{
  		if (!Global_262145.f_27896 && iVar1 < Global_262145.f_27917)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("everon"))
  	{
  		if (!Global_262145.f_27897 && iVar1 < Global_262145.f_27918)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("retinue2"))
  	{
  		if (!Global_262145.f_27898 && iVar1 < Global_262145.f_27919)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite2"))
  	{
  		if (!Global_262145.f_27899 && iVar1 < Global_262145.f_27920)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sugoi"))
  	{
  		if (!Global_262145.f_27900 && iVar1 < Global_262145.f_27921)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("sultan2"))
  	{
  		if (!Global_262145.f_27901 && iVar1 < Global_262145.f_27922)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("outlaw"))
  	{
  		if (!Global_262145.f_27902 && iVar1 < Global_262145.f_27923)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vagrant"))
  	{
  		if (!Global_262145.f_27903 && iVar1 < Global_262145.f_27924)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("komoda"))
  	{
  		if (!Global_262145.f_27904 && iVar1 < Global_262145.f_27925)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stryder"))
  	{
  		if (!Global_262145.f_27905 && iVar1 < Global_262145.f_27926)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("furia"))
  	{
  		if (!Global_262145.f_27906 && iVar1 < Global_262145.f_27927)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("zhaba"))
  	{
  		if (!Global_262145.f_27907 && iVar1 < Global_262145.f_27928)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("jb7002"))
  	{
  		if (!Global_262145.f_27908 && iVar1 < Global_262145.f_27929)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("firetruk"))
  	{
  		if (!Global_262145.f_27909 && iVar1 < Global_262145.f_27930)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("burrito2"))
  	{
  		if (!Global_262145.f_27910 && iVar1 < Global_262145.f_27931)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("boxville"))
  	{
  		if (!Global_262145.f_27911 && iVar1 < Global_262145.f_27932)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("stockade"))
  	{
  		if (!Global_262145.f_27912 && iVar1 < Global_262145.f_27933)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("minitank"))
  	{
  		if (!Global_262145.f_27913 && iVar1 < Global_262145.f_27934)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("lguard"))
  	{
  		if (!Global_262145.f_27914 && iVar1 < Global_262145.f_27935)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("blazer2"))
  	{
  		if (!Global_262145.f_27915 && iVar1 < Global_262145.f_27936)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("formula"))
  	{
  		if ((!Global_262145.f_27938 && iVar1 < Global_262145.f_27939) && !Global_262145.f_27893)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("formula2"))
  	{
  		if ((!Global_262145.f_27941 && iVar1 < Global_262145.f_27942) && !Global_262145.f_27894)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("imorgon"))
  	{
  		if (!Global_262145.f_27946 && iVar1 < Global_262145.f_27949)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("rebla"))
  	{
  		if (!Global_262145.f_27947 && iVar1 < Global_262145.f_27950)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vstr"))
  	{
  		if (!Global_262145.f_27948 && iVar1 < Global_262145.f_27951)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("gauntlet5"))
  	{
  		if (!Global_262145.f_28950 && iVar1 < Global_262145.f_28615)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("club"))
  	{
  		if (!Global_262145.f_28601 && iVar1 < Global_262145.f_28622)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dukes3"))
  	{
  		if (!Global_262145.f_28602 && iVar1 < Global_262145.f_28608)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("yosemite3"))
  	{
  		if (!Global_262145.f_28948 && iVar1 < Global_262145.f_28616)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("peyote3"))
  	{
  		if (!Global_262145.f_28949 && iVar1 < Global_262145.f_28617)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("glendale2"))
  	{
  		if (!Global_262145.f_28595 && iVar1 < Global_262145.f_28614)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("penumbra2"))
  	{
  		if (!Global_262145.f_28596 && iVar1 < Global_262145.f_28623)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("landstalker2"))
  	{
  		if (!Global_262145.f_28597 && iVar1 < Global_262145.f_28613)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("seminole2"))
  	{
  		if (!Global_262145.f_28598 && iVar1 < Global_262145.f_28611)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("tigon"))
  	{
  		if (!Global_262145.f_28944 && iVar1 < Global_262145.f_28618)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("openwheel1"))
  	{
  		if (!Global_262145.f_28945 && iVar1 < Global_262145.f_28619)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("openwheel2"))
  	{
  		if (!Global_262145.f_28946 && iVar1 < Global_262145.f_28620)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("coquette4"))
  	{
  		if (!Global_262145.f_28947 && iVar1 < Global_262145.f_28621)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manana2"))
  	{
  		if (!Global_262145.f_28599 && iVar1 < Global_262145.f_28610)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("youga3"))
  	{
  		if (!Global_262145.f_28600 && iVar1 < Global_262145.f_28612)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("toreador"))
  	{
  		if (!Global_262145.f_29392 && iVar1 < Global_262145.f_29375)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("annihilator2"))
  	{
  		if (!Global_262145.f_29393 && iVar1 < Global_262145.f_29376)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("alkonost"))
  	{
  		if (!Global_262145.f_29394 && iVar1 < Global_262145.f_29377)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("patrolboat"))
  	{
  		if (!Global_262145.f_29395 && iVar1 < Global_262145.f_29378)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("longfin"))
  	{
  		if (!Global_262145.f_29396 && iVar1 < Global_262145.f_29379)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("winky"))
  	{
  		if (!Global_262145.f_29397 && iVar1 < Global_262145.f_29380)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("veto"))
  	{
  		if (!Global_262145.f_29398 && iVar1 < Global_262145.f_29381)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("veto2"))
  	{
  		if (!Global_262145.f_29399 && iVar1 < Global_262145.f_29382)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("italirsx"))
  	{
  		if (!Global_262145.f_29400 && iVar1 < Global_262145.f_29383)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("weevil"))
  	{
  		if (Global_262145.f_29409)
  		{
  		}
  		else if (!Global_262145.f_29401 && iVar1 < Global_262145.f_29384)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("manchez2"))
  	{
  		if (!Global_262145.f_29402 && iVar1 < Global_262145.f_29385)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("slamtruck"))
  	{
  		if (!Global_262145.f_29403 && iVar1 < Global_262145.f_29386)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("vetir"))
  	{
  		if (!Global_262145.f_29404 && iVar1 < Global_262145.f_29387)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("squaddie"))
  	{
  		if (!Global_262145.f_29405 && iVar1 < Global_262145.f_29388)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("brioso2"))
  	{
  		if (Global_262145.f_29410)
  		{
  		}
  		else if (!Global_262145.f_29406 && iVar1 < Global_262145.f_29389)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("dinghy5"))
  	{
  		if (!Global_262145.f_29407 && iVar1 < Global_262145.f_29390)
  		{
  			iVar0 = 0;
  		}
  	}
  	else if (iParam0 == joaat("verus"))
  	{
  		if (!Global_262145.f_29408 && iVar1 < Global_262145.f_29391)
  		{
  			iVar0 = 0;
  		}
  	}
  	return iVar0;
  }
  
  int func_90()
  {
  	return 0;
  }
  
  int func_91()
  {
  	return 1;
  }
  
  int func_92()
  {
  	return 1;
  }
  
  int func_93()
  {
  	if (DLC::IS_DLC_PRESENT(-1226939934))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_94()
  {
  	int iVar0;
  	
  	if (NETWORK::NETWORK_IS_SIGNED_IN())
  	{
  		if (NETWORK::NETWORK_HAS_VALID_ROS_CREDENTIALS())
  		{
  			if (NETWORK::_NETWORK_GET_ROS_PRIVILEGE_24())
  			{
  				STATS::STAT_GET_INT(joaat("SP_UNLOCK_EXCLUS_CONTENT"), &iVar0, -1);
  				MISC::SET_BIT(&iVar0, 2);
  				MISC::SET_BIT(&iVar0, 4);
  				MISC::SET_BIT(&iVar0, 6);
  				MISC::SET_BIT(&Global_25, 2);
  				MISC::SET_BIT(&Global_25, 4);
  				MISC::SET_BIT(&Global_25, 6);
  				STATS::STAT_SET_INT(joaat("SP_UNLOCK_EXCLUS_CONTENT"), iVar0, true);
  				if (MISC::ARE_PROFILE_SETTINGS_VALID())
  				{
  					iVar0 = MISC::GET_PROFILE_SETTING(866);
  					MISC::SET_BIT(&iVar0, 0);
  					STATS::_SET_HAS_CONTENT_UNLOCKS_FLAGS(iVar0);
  				}
  				return 1;
  			}
  		}
  	}
  	if (Global_150693 == 2)
  	{
  		return 1;
  	}
  	else if (Global_150693 == 3)
  	{
  		return 0;
  	}
  	if (MISC::ARE_PROFILE_SETTINGS_VALID())
  	{
  		if (MISC::IS_BIT_SET(MISC::GET_PROFILE_SETTING(866), 0))
  		{
  			return 1;
  		}
  	}
  	return 0;
  }
  
  int func_95(int iParam0)
  {
  	int iVar0;
  	char* sVar1;
  	
  	iVar0 = ENTITY::GET_ENTITY_MODEL(iParam0);
  	sVar1 = VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0);
  	if (iVar0 == joaat("speedo") && MISC::ARE_STRINGS_EQUAL(sVar1, "LAMAR G "))
  	{
  		return 1;
  	}
  	if (!func_86(iVar0, 0))
  	{
  		return 1;
  	}
  	return 0;
  }
  
  int func_96(int iParam0)
  {
  	int iVar0;
  	
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_96316[iVar0]))
  		{
  			if (Global_96316[iVar0] == iParam0)
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_97(int iParam0)
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(iParam0) && VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		iVar0 = 0;
  		while (iVar0 < 9)
  		{
  			if (ENTITY::DOES_ENTITY_EXIST(Global_96286[iVar0]) && VEHICLE::IS_VEHICLE_DRIVEABLE(Global_96286[iVar0], false))
  			{
  				if (Global_96286[iVar0] == iParam0 && ENTITY::GET_ENTITY_MODEL(Global_96286[iVar0]) == ENTITY::GET_ENTITY_MODEL(iParam0))
  				{
  					return 1;
  				}
  			}
  			iVar0++;
  		}
  	}
  	return 0;
  }
  
  int func_98(int iParam0)
  {
  	int iVar0;
  	
  	if (ENTITY::DOES_ENTITY_EXIST(Global_75654.f_484[24]))
  	{
  		if (iParam0 == Global_75654.f_484[24])
  		{
  			return 0;
  		}
  	}
  	iVar0 = 0;
  	while (iVar0 < 68)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_75654.f_484[iVar0]))
  		{
  			if ((((((((((((iVar0 != 24 && iVar0 != 21) && iVar0 != 22) && iVar0 != 23) && iVar0 != 27) && iVar0 != 30) && iVar0 != 33) && iVar0 != 28) && iVar0 != 31) && iVar0 != 34) && iVar0 != 26) && iVar0 != 29) && iVar0 != 32)
  			{
  				if (iParam0 == Global_75654.f_484[iVar0])
  				{
  					return 1;
  				}
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_99(int iParam0, int iParam1, bool bParam2)
  {
  	int iVar0;
  	char* sVar1;
  	int iVar9;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0) || !VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (func_100(iParam1, iVar0, &sVar1, &iVar9))
  	{
  		if (!bParam2 || MISC::IS_BIT_SET(Global_111858.f_7225[iVar9], 0))
  		{
  			if (VEHICLE::IS_VEHICLE_IN_GARAGE_AREA(&sVar1, iParam0))
  			{
  				return 1;
  			}
  		}
  		iVar0++;
  	}
  	return 0;
  }
  
  int func_100(int iParam0, int iParam1, char* sParam2, var uParam3)
  {
  	StringCopy(sParam2, "", 32);
  	switch (iParam0)
  	{
  		case 0:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Michael - Beverly Hills", 32);
  				*uParam3 = 0;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Trevor - Countryside", 32);
  				*uParam3 = 1;
  				return 1;
  			}
  			break;
  		
  		case 1:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Franklin - Aunt", 32);
  				*uParam3 = 5;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Franklin - Hills", 32);
  				*uParam3 = 6;
  				return 1;
  			}
  			break;
  		
  		case 2:
  			if (iParam1 == 0)
  			{
  				StringCopy(sParam2, "Trevor - Countryside", 32);
  				*uParam3 = 2;
  				return 1;
  			}
  			else if (iParam1 == 1)
  			{
  				StringCopy(sParam2, "Trevor - City", 32);
  				*uParam3 = 3;
  				return 1;
  			}
  			else if (iParam1 == 2)
  			{
  				StringCopy(sParam2, "Trevor - Stripclub", 32);
  				*uParam3 = 4;
  				return 1;
  			}
  			break;
  	}
  	return 0;
  }
  
  var func_101()
  {
  	var uVar0;
  	
  	func_111(&uVar0, CLOCK::GET_CLOCK_SECONDS());
  	func_110(&uVar0, CLOCK::GET_CLOCK_MINUTES());
  	func_109(&uVar0, CLOCK::GET_CLOCK_HOURS());
  	func_104(&uVar0, CLOCK::GET_CLOCK_DAY_OF_MONTH());
  	func_103(&uVar0, CLOCK::GET_CLOCK_MONTH());
  	func_102(&uVar0, CLOCK::GET_CLOCK_YEAR());
  	return uVar0;
  }
  
  void func_102(var uParam0, int iParam1)
  {
  	if (iParam1 <= 0)
  	{
  		return;
  	}
  	if (iParam1 > 2043 || iParam1 < 1979)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 2080374784);
  	if (iParam1 < 2011)
  	{
  		*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT((2011 - iParam1), 26));
  		*uParam0 |= -2147483648;
  	}
  	else
  	{
  		*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT((iParam1 - 2011), 26));
  		*uParam0 = (*uParam0 - *uParam0 & -2147483648);
  	}
  }
  
  void func_103(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 11)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15);
  	*uParam0 = (*uParam0 || iParam1);
  }
  
  void func_104(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	iVar0 = func_108(*uParam0);
  	iVar1 = func_106(*uParam0);
  	if (iParam1 < 1 || iParam1 > func_105(iVar0, iVar1))
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 496);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 4));
  }
  
  int func_105(int iParam0, int iParam1)
  {
  	if (iParam1 < 0)
  	{
  		iParam1 = 0;
  	}
  	switch (iParam0)
  	{
  		case 0:
  		case 2:
  		case 4:
  		case 6:
  		case 7:
  		case 9:
  		case 11:
  			return 31;
  			break;
  		
  		case 3:
  		case 5:
  		case 8:
  		case 10:
  			return 30;
  			break;
  		
  		case 1:
  			if ((iParam1 % 4) == 0)
  			{
  				if ((iParam1 % 100) != 0)
  				{
  					return 29;
  				}
  				else if ((iParam1 % 400) == 0)
  				{
  					return 29;
  				}
  			}
  			return 28;
  			break;
  	}
  	return 30;
  }
  
  var func_106(int iParam0)
  {
  	return (SYSTEM::SHIFT_RIGHT(iParam0, 26) & 31 * func_107(MISC::IS_BIT_SET(iParam0, 31), -1, 1)) + 2011;
  }
  
  int func_107(bool bParam0, int iParam1, int iParam2)
  {
  	if (bParam0)
  	{
  		return iParam1;
  	}
  	return iParam2;
  }
  
  int func_108(var uParam0)
  {
  	return uParam0 & 15;
  }
  
  void func_109(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 > 24)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 15872);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 9));
  }
  
  void func_110(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 1032192);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 14));
  }
  
  void func_111(var uParam0, int iParam1)
  {
  	if (iParam1 < 0 || iParam1 >= 60)
  	{
  		return;
  	}
  	*uParam0 = (*uParam0 - *uParam0 & 66060288);
  	*uParam0 = (*uParam0 || SYSTEM::SHIFT_LEFT(iParam1, 20));
  }
  
  int func_112(var uParam0, int iParam1)
  {
  	int iVar0;
  	int iVar1;
  	
  	*uParam0 = { 0f, 0f, 0f };
  	uParam0->f_3 = 0f;
  	uParam0->f_4 = 0;
  	StringCopy(&(uParam0->f_5), "", 16);
  	uParam0->f_9 = 0;
  	uParam0->f_10 = 0;
  	uParam0->f_11 = 0;
  	uParam0->f_12 = 145;
  	uParam0->f_13 = -1;
  	uParam0->f_14 = 0;
  	uParam0->f_15 = { 0f, 0f, 0f };
  	uParam0->f_18 = { 0f, 0f, 0f };
  	switch (iParam1)
  	{
  		case 0:
  			*uParam0 = { -831.8538f, 172.1154f, 69.9058f };
  			uParam0->f_3 = 157.5705f;
  			uParam0->f_4 = func_113(0, 1);
  			uParam0->f_12 = 0;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 1:
  			*uParam0 = { 1970.943f, 3801.684f, 31.1396f };
  			uParam0->f_3 = 301.3964f;
  			uParam0->f_4 = func_113(0, 1);
  			uParam0->f_12 = 0;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 2:
  			*uParam0 = { -22.6297f, -1439.137f, 29.6549f };
  			uParam0->f_3 = 180.0808f;
  			uParam0->f_4 = func_113(1, 1);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 3:
  			*uParam0 = { -22.5229f, -1434.699f, 29.6552f };
  			uParam0->f_3 = 141.6114f;
  			uParam0->f_4 = func_113(1, 2);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 19);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 4:
  			*uParam0 = { 10.9281f, 545.669f, 174.7951f };
  			uParam0->f_3 = 61.392f;
  			uParam0->f_4 = func_113(1, 1);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 5:
  			*uParam0 = { 6.1093f, 544.9742f, 174.2835f };
  			uParam0->f_3 = 92.1548f;
  			uParam0->f_4 = func_113(1, 2);
  			uParam0->f_12 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 19);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 6:
  			*uParam0 = { 1981.416f, 3808.131f, 31.1384f };
  			uParam0->f_3 = 117.2557f;
  			uParam0->f_4 = func_113(2, 1);
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 7:
  			*uParam0 = { -1158.488f, -1529.367f, 3.8995f };
  			uParam0->f_3 = 35.7505f;
  			uParam0->f_4 = func_113(2, 1);
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 8:
  			*uParam0 = { 148.2868f, -1270.569f, 28.2252f };
  			uParam0->f_3 = 208.4685f;
  			uParam0->f_4 = func_113(2, 1);
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 20);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			iVar0 = 1;
  			break;
  		
  		case 9:
  			*uParam0 = { 1459.509f, -1380.45f, 78.3259f };
  			uParam0->f_3 = 99.6211f;
  			uParam0->f_4 = joaat("scorcher");
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 10:
  			*uParam0 = { -1518.947f, -1387.865f, -0.5134f };
  			uParam0->f_3 = 98.3867f;
  			uParam0->f_4 = joaat("seashark");
  			iVar0 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			break;
  		
  		case 11:
  			*uParam0 = { 353.0926f, 3577.593f, 32.351f };
  			uParam0->f_3 = 16.6205f;
  			uParam0->f_4 = joaat("duster");
  			iVar0 = 1;
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			break;
  		
  		case 12:
  			uParam0->f_14 = 0;
  			*uParam0 = { -1652.004f, -3142.348f, 12.9921f };
  			uParam0->f_3 = 329.1082f;
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 359;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 13:
  			uParam0->f_14 = 1;
  			*uParam0 = { -1271.649f, -3380.685f, 12.9451f };
  			uParam0->f_3 = 329.5137f;
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 359;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 14:
  			uParam0->f_14 = 2;
  			*uParam0 = { 1735.586f, 3294.531f, 40.1651f };
  			uParam0->f_3 = 194.9525f;
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 359;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 15:
  			uParam0->f_14 = 3;
  			*uParam0 = { -846.27f, -1363.19f, 0.22f };
  			uParam0->f_3 = 108.78f;
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 356;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 16:
  			uParam0->f_14 = 4;
  			*uParam0 = { -849.47f, -1354.99f, 0.24f };
  			uParam0->f_3 = 109.84f;
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 356;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 17:
  			uParam0->f_14 = 5;
  			*uParam0 = { -852.47f, -1346.2f, 0.21f };
  			uParam0->f_3 = 108.76f;
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 356;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 18:
  			uParam0->f_14 = 6;
  			*uParam0 = { -745.857f, -1433.904f, 4.0005f };
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 360;
  			uParam0->f_15 = { -756.2952f, -1441.609f, 2.9184f };
  			uParam0->f_18 = { -738.0606f, -1423.068f, 8.2835f };
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 19:
  			uParam0->f_14 = 7;
  			*uParam0 = { -761.8486f, -1453.829f, 4.0005f };
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 360;
  			uParam0->f_15 = { -772.8158f, -1459.957f, 3.2894f };
  			uParam0->f_18 = { -754.3353f, -1440.836f, 8.3334f };
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 20:
  			uParam0->f_14 = 8;
  			*uParam0 = { 1769.3f, 3244f, 41.1f };
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 360;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			iVar0 = 1;
  			break;
  		
  		case 21:
  			uParam0->f_14 = 9;
  			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = 0;
  			uParam0->f_13 = 357;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			MISC::SET_BIT(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 22:
  			uParam0->f_14 = 10;
  			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = 1;
  			uParam0->f_13 = 357;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			MISC::SET_BIT(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 23:
  			uParam0->f_14 = 11;
  			*uParam0 = { 192.7897f, -1020.539f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = 2;
  			uParam0->f_13 = 357;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 14);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 28);
  			MISC::SET_BIT(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 26:
  		case 27:
  		case 28:
  			iVar1 = (iParam1 - 26);
  			uParam0->f_14 = (12 + iVar1);
  			*uParam0 = { 196.2794f, -1020.479f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = (0 + iVar1);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 27);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 29:
  		case 30:
  		case 31:
  			iVar1 = (iParam1 - 29);
  			uParam0->f_14 = (15 + iVar1);
  			*uParam0 = { 199.8872f, -1020.048f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = (0 + iVar1);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 27);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 32:
  		case 33:
  		case 34:
  			iVar1 = (iParam1 - 32);
  			uParam0->f_14 = (18 + iVar1);
  			*uParam0 = { 203.6006f, -1019.776f, -99.98f };
  			uParam0->f_3 = 180f;
  			uParam0->f_4 = 0;
  			uParam0->f_12 = (0 + iVar1);
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			MISC::SET_BIT(&(uParam0->f_9), 7);
  			MISC::SET_BIT(&(uParam0->f_9), 27);
  			MISC::SET_BIT(&(uParam0->f_9), 24);
  			MISC::SET_BIT(&(uParam0->f_9), 29);
  			iVar0 = 1;
  			break;
  		
  		case 24:
  			uParam0->f_14 = 21;
  			*uParam0 = { 0f, 0f, 0f };
  			uParam0->f_3 = 0f;
  			uParam0->f_4 = 0;
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 11);
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			iVar0 = 1;
  			break;
  		
  		case 25:
  			uParam0->f_14 = 22;
  			*uParam0 = { 723.2515f, -632.0496f, 27.1484f };
  			uParam0->f_3 = 12.9316f;
  			uParam0->f_4 = joaat("tailgater");
  			MISC::SET_BIT(&(uParam0->f_9), 10);
  			MISC::SET_BIT(&(uParam0->f_9), 11);
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::SET_BIT(&(uParam0->f_9), 12);
  			iVar0 = 1;
  			break;
  		
  		case 35:
  			*uParam0 = { -51.23f, 3111.9f, 24.95f };
  			uParam0->f_3 = 46.78f;
  			uParam0->f_4 = joaat("proptrailer");
  			MISC::SET_BIT(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 36:
  			*uParam0 = { -55.7984f, -1096.586f, 25.4223f };
  			uParam0->f_3 = 308.0596f;
  			uParam0->f_4 = joaat("bjxl");
  			uParam0->f_10 = 126;
  			uParam0->f_11 = 126;
  			MISC::SET_BIT(&(uParam0->f_9), 9);
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			iVar0 = 1;
  			break;
  		
  		case 37:
  			*uParam0 = { -2892.93f, 3192.37f, 11.66f };
  			uParam0->f_3 = -132.35f;
  			uParam0->f_4 = joaat("velum");
  			uParam0->f_10 = 157;
  			uParam0->f_11 = 157;
  			MISC::SET_BIT(&(uParam0->f_9), 9);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			iVar0 = 1;
  			break;
  		
  		case 38:
  			*uParam0 = { 1744.308f, 3270.673f, 40.2076f };
  			uParam0->f_3 = 125f;
  			uParam0->f_4 = joaat("cargobob3");
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 39:
  			*uParam0 = { 1751.44f, 3322.643f, 42.1855f };
  			uParam0->f_3 = 268.134f;
  			uParam0->f_4 = joaat("submersible");
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			iVar0 = 1;
  			break;
  		
  		case 41:
  			*uParam0 = { 1377.104f, -2076.2f, 52f };
  			uParam0->f_3 = 37.5f;
  			uParam0->f_4 = joaat("towtruck");
  			MISC::SET_BIT(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 40:
  			*uParam0 = { 1380.42f, -2072.77f, 51.7607f };
  			uParam0->f_3 = 37.5f;
  			uParam0->f_4 = joaat("trash");
  			MISC::SET_BIT(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 42:
  			*uParam0 = { 1359.389f, 3618.441f, 33.8907f };
  			uParam0->f_3 = 108.2337f;
  			uParam0->f_4 = joaat("barracks");
  			MISC::SET_BIT(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 43:
  			*uParam0 = { 693.1154f, -1018.155f, 21.6387f };
  			uParam0->f_3 = 177.6454f;
  			uParam0->f_4 = joaat("firetruk");
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 8);
  			iVar0 = 1;
  			break;
  		
  		case 44:
  			*uParam0 = { -73.6963f, 495.124f, 143.5226f };
  			uParam0->f_3 = 155.5994f;
  			uParam0->f_4 = joaat("vacca");
  			iVar0 = 1;
  			break;
  		
  		case 45:
  			*uParam0 = { -67.6314f, 891.8266f, 234.5348f };
  			uParam0->f_3 = 294.993f;
  			uParam0->f_4 = joaat("surano");
  			iVar0 = 1;
  			break;
  		
  		case 46:
  			*uParam0 = { 533.9048f, -169.2469f, 53.7005f };
  			uParam0->f_3 = 1.2998f;
  			uParam0->f_4 = joaat("tornado2");
  			iVar0 = 1;
  			break;
  		
  		case 47:
  			*uParam0 = { -726.8914f, -408.6952f, 34.0416f };
  			uParam0->f_3 = 267.7392f;
  			uParam0->f_4 = joaat("superd");
  			iVar0 = 1;
  			break;
  		
  		case 48:
  			*uParam0 = { -1321.519f, 261.3993f, 61.5709f };
  			uParam0->f_3 = 350.7697f;
  			uParam0->f_4 = joaat("double");
  			iVar0 = 1;
  			break;
  		
  		case 49:
  			*uParam0 = { -1267.999f, 451.6463f, 93.7071f };
  			uParam0->f_3 = 48.9311f;
  			uParam0->f_4 = joaat("double");
  			iVar0 = 1;
  			break;
  		
  		case 50:
  			*uParam0 = { -1062.076f, -226.7637f, 37.157f };
  			uParam0->f_3 = 234.2767f;
  			uParam0->f_4 = joaat("double");
  			iVar0 = 1;
  			break;
  		
  		case 51:
  			*uParam0 = { 68.16914f, -1558.958f, 29.46904f };
  			uParam0->f_3 = 49.90575f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 52:
  			*uParam0 = { 589.4399f, 2736.708f, 42.03316f };
  			uParam0->f_3 = -175.7105f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 53:
  			*uParam0 = { -488.774f, -344.5721f, 34.36356f };
  			uParam0->f_3 = 82.4042f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 54:
  			*uParam0 = { 288.8808f, -585.4728f, 43.15428f };
  			uParam0->f_3 = -20.80707f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 55:
  			*uParam0 = { 304.8294f, -1383.674f, 31.67744f };
  			uParam0->f_3 = -41.11603f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 56:
  			*uParam0 = { 1126.194f, -1481.486f, 34.7016f };
  			uParam0->f_3 = -91.43369f;
  			uParam0->f_4 = joaat("rumpo2");
  			uParam0->f_12 = 2;
  			MISC::SET_BIT(&(uParam0->f_9), 26);
  			iVar0 = 1;
  			break;
  		
  		case 57:
  			*uParam0 = { -1598.36f, 5252.84f, 0f };
  			uParam0->f_3 = 28.14f;
  			uParam0->f_4 = joaat("submersible");
  			uParam0->f_13 = 308;
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 58:
  			*uParam0 = { -1602.62f, 5260.37f, 0.86f };
  			uParam0->f_3 = 25.32f;
  			uParam0->f_4 = joaat("dinghy");
  			uParam0->f_13 = 404;
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 22);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 59:
  			*uParam0 = { 2116.571f, 4763.279f, 40.1596f };
  			uParam0->f_3 = 198.723f;
  			uParam0->f_4 = joaat("bfinjection");
  			iVar0 = 1;
  			break;
  		
  		case 60:
  			*uParam0 = { 1133.21f, 120.2f, 80.9f };
  			uParam0->f_3 = 134.4f;
  			if (func_94())
  			{
  				uParam0->f_4 = joaat("blimp2");
  			}
  			else
  			{
  				uParam0->f_4 = joaat("blimp");
  			}
  			uParam0->f_13 = 401;
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 1);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			iVar0 = 1;
  			break;
  		
  		case 61:
  			*uParam0 = { -806.31f, -2679.65f, 13.9f };
  			uParam0->f_3 = 150.54f;
  			if (func_94())
  			{
  				uParam0->f_4 = joaat("blimp2");
  			}
  			else
  			{
  				uParam0->f_4 = joaat("blimp");
  			}
  			uParam0->f_13 = 401;
  			MISC::SET_BIT(&(uParam0->f_9), 13);
  			MISC::SET_BIT(&(uParam0->f_9), 2);
  			MISC::SET_BIT(&(uParam0->f_9), 1);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			iVar0 = 1;
  			break;
  		
  		case 62:
  			*uParam0 = { 1985.85f, 3828.96f, 31.98f };
  			uParam0->f_3 = -16.58f;
  			uParam0->f_4 = joaat("blazer3");
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 63:
  			*uParam0 = { 3870.75f, 4464.67f, 0f };
  			uParam0->f_3 = 0f;
  			uParam0->f_4 = joaat("submersible2");
  			uParam0->f_13 = 308;
  			MISC::SET_BIT(&(uParam0->f_9), 0);
  			MISC::SET_BIT(&(uParam0->f_9), 21);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			iVar0 = 1;
  			break;
  		
  		case 64:
  			*uParam0 = { 1257.729f, -2564.474f, 41.717f };
  			uParam0->f_3 = 284.5561f;
  			uParam0->f_4 = joaat("dukes2");
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 65:
  			*uParam0 = { 643.2823f, 3014.152f, 42.2733f };
  			uParam0->f_3 = 128.0554f;
  			uParam0->f_4 = joaat("dukes2");
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 66:
  			*uParam0 = { 38.9368f, 850.8677f, 196.3f };
  			uParam0->f_3 = 311.6813f;
  			uParam0->f_4 = joaat("dodo");
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  		
  		case 67:
  			*uParam0 = { 1333.875f, 4262.226f, 30.78f };
  			uParam0->f_3 = 262.5293f;
  			uParam0->f_4 = joaat("dodo");
  			MISC::SET_BIT(&(uParam0->f_9), 30);
  			MISC::SET_BIT(&(uParam0->f_9), 23);
  			MISC::SET_BIT(&(uParam0->f_9), 6);
  			iVar0 = 1;
  			break;
  	}
  	if (MISC::IS_BIT_SET(uParam0->f_9, 10))
  	{
  		uParam0->f_4 = Global_111858.f_32745.f_69[uParam0->f_14 /*78*/].f_66;
  		if (iParam1 == 14)
  		{
  			if (((((uParam0->f_4 == joaat("miljet") || uParam0->f_4 == joaat("besra")) || uParam0->f_4 == joaat("luxor")) || uParam0->f_4 == joaat("shamal")) || uParam0->f_4 == joaat("titan")) || uParam0->f_4 == joaat("luxor2"))
  			{
  				*uParam0 = { 1678.8f, 3229.6f, 41.8f };
  				uParam0->f_3 = 106.0906f;
  			}
  		}
  		if (!func_122(Global_111858.f_32745.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111858.f_32745.f_1864[uParam0->f_14 /*3*/] };
  		}
  		if (Global_111858.f_32745.f_1934[uParam0->f_14] != -1f)
  		{
  			uParam0->f_3 = Global_111858.f_32745.f_1934[uParam0->f_14];
  		}
  	}
  	if (MISC::IS_BIT_SET(uParam0->f_9, 19))
  	{
  		if (!func_122(Global_111858.f_2359.f_539.f_3588[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111858.f_2359.f_539.f_3588[1 /*10*/][uParam0->f_12 /*3*/] };
  			uParam0->f_3 = Global_111858.f_2359.f_539.f_3609[1 /*4*/][uParam0->f_12];
  		}
  	}
  	else if (MISC::IS_BIT_SET(uParam0->f_9, 20))
  	{
  		if (!func_122(Global_111858.f_2359.f_539.f_3588[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
  		{
  			*uParam0 = { Global_111858.f_2359.f_539.f_3588[0 /*10*/][uParam0->f_12 /*3*/] };
  			uParam0->f_3 = Global_111858.f_2359.f_539.f_3609[0 /*4*/][uParam0->f_12];
  		}
  	}
  	return iVar0;
  }
  
  int func_113(int iParam0, int iParam1)
  {
  	struct<82> Var0;
  	
  	if (func_16(iParam0))
  	{
  		Var0.f_11 = 12;
  		Var0.f_31 = 49;
  		Var0.f_81 = 2;
  		func_114(iParam0, &Var0, iParam1);
  		return Var0;
  	}
  	else if (iParam0 != 145)
  	{
  	}
  	return 0;
  }
  
  void func_114(int iParam0, var uParam1, int iParam2)
  {
  	int iVar0;
  	
  	uParam1->f_88 = 1;
  	uParam1->f_84 = 255;
  	uParam1->f_85 = 255;
  	uParam1->f_86 = 255;
  	uParam1->f_97 = 1;
  	uParam1->f_3 = 1000;
  	uParam1->f_1 = 0;
  	switch (iParam0)
  	{
  		case 0:
  			iVar0 = joaat("tailgater");
  			if (Global_111858.f_9081.f_99.f_58[128] && !Global_111858.f_9081.f_99.f_58[131])
  			{
  				iVar0 = joaat("premier");
  			}
  			switch (iVar0)
  			{
  				case joaat("tailgater"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 3f;
  					uParam1->f_4 = 0;
  					uParam1->f_9 = 1;
  					uParam1->f_11[0] = 1;
  					StringCopy(&(uParam1->f_27), "5MDS003", 16);
  					break;
  				
  				case joaat("premier"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 14.9f;
  					uParam1->f_5 = 43;
  					uParam1->f_6 = 43;
  					uParam1->f_7 = 0;
  					uParam1->f_8 = 156;
  					uParam1->f_9 = 0;
  					StringCopy(&(uParam1->f_27), "880HS955", 16);
  					break;
  			}
  			break;
  		
  		case 2:
  			iVar0 = joaat("bodhi2");
  			switch (iVar0)
  			{
  				case joaat("bodhi2"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 14f;
  					uParam1->f_5 = 32;
  					uParam1->f_6 = 0;
  					uParam1->f_7 = 0;
  					uParam1->f_8 = 156;
  					StringCopy(&(uParam1->f_27), "BETTY 32", 16);
  					if (Global_111858.f_9081.f_99.f_58[119])
  					{
  						uParam1->f_11[1] = 1;
  					}
  					break;
  			}
  			break;
  		
  		case 1:
  			if (iParam2 == 1)
  			{
  				iVar0 = joaat("buffalo2");
  			}
  			else if (iParam2 == 2)
  			{
  				iVar0 = joaat("bagger");
  			}
  			else if (Global_111858.f_9081.f_99.f_58[118])
  			{
  				iVar0 = joaat("bagger");
  			}
  			else
  			{
  				iVar0 = joaat("buffalo2");
  			}
  			switch (iVar0)
  			{
  				case joaat("bagger"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 6f;
  					uParam1->f_5 = 53;
  					uParam1->f_6 = 0;
  					uParam1->f_7 = 59;
  					uParam1->f_8 = 156;
  					StringCopy(&(uParam1->f_27), "FC88", 16);
  					break;
  				
  				case joaat("buffalo2"):
  					*uParam1 = iVar0;
  					uParam1->f_2 = 0f;
  					uParam1->f_5 = 111;
  					uParam1->f_6 = 111;
  					uParam1->f_7 = 0;
  					uParam1->f_8 = 156;
  					uParam1->f_10 = 1;
  					StringCopy(&(uParam1->f_27), "FC1988", 16);
  					uParam1->f_11[0] = 1;
  					uParam1->f_11[1] = 1;
  					uParam1->f_11[2] = 1;
  					uParam1->f_11[3] = 1;
  					uParam1->f_11[4] = 1;
  					uParam1->f_11[5] = 1;
  					uParam1->f_11[6] = 1;
  					uParam1->f_11[7] = 1;
  					uParam1->f_11[8] = 1;
  					break;
  			}
  			break;
  		
  		default:
  			break;
  	}
  }
  
  void func_115(int iParam0, var uParam1, struct<3> Param2, float fParam5, int iParam6)
  {
  	if (func_112(&(Global_75654.f_555[0 /*21*/]), iParam0))
  	{
  		if (MISC::IS_BIT_SET(Global_75654.f_555[0 /*21*/].f_9, 10))
  		{
  			func_120(iParam0);
  			func_119(uParam1, &(Global_111858.f_32745.f_69[Global_75654.f_555[0 /*21*/].f_14 /*78*/]));
  			if (MISC::IS_BIT_SET(Global_75654.f_555[0 /*21*/].f_9, 11))
  			{
  				Global_111858.f_32745.f_1864[Global_75654.f_555[0 /*21*/].f_14 /*3*/] = { Param2 };
  				Global_111858.f_32745.f_1934[Global_75654.f_555[0 /*21*/].f_14] = fParam5;
  			}
  			else
  			{
  				Global_111858.f_32745.f_1864[Global_75654.f_555[0 /*21*/].f_14 /*3*/] = { 0f, 0f, 0f };
  				Global_111858.f_32745.f_1934[Global_75654.f_555[0 /*21*/].f_14] = -1f;
  			}
  			Global_111858.f_32745.f_1958[Global_75654.f_555[0 /*21*/].f_14] = iParam6 + 1;
  			func_116(iParam0, 1);
  		}
  	}
  }
  
  void func_116(int iParam0, bool bParam1)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam1)
  	{
  		if (!func_118(iParam0, 0))
  		{
  			func_117(iParam0, 1, 0);
  			func_117(iParam0, 2, 0);
  			func_117(iParam0, 3, 0);
  			func_117(iParam0, 4, 0);
  			func_117(iParam0, 0, 1);
  			Global_75654[iParam0] = 1;
  		}
  	}
  	else
  	{
  		func_117(iParam0, 0, 0);
  	}
  }
  
  void func_117(int iParam0, int iParam1, bool bParam2)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (bParam2)
  	{
  		MISC::SET_BIT(&(Global_111858.f_32745[iParam0]), iParam1);
  	}
  	else
  	{
  		MISC::CLEAR_BIT(&(Global_111858.f_32745[iParam0]), iParam1);
  	}
  }
  
  bool func_118(int iParam0, int iParam1)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return MISC::IS_BIT_SET(Global_111858.f_32745[iParam0], iParam1);
  }
  
  void func_119(var uParam0, var uParam1)
  {
  	uParam1->f_66 = uParam0->f_66;
  	*uParam1 = *uParam0;
  	uParam1->f_1 = { uParam0->f_1 };
  	uParam1->f_5 = uParam0->f_5;
  	uParam1->f_6 = uParam0->f_6;
  	uParam1->f_7 = uParam0->f_7;
  	uParam1->f_8 = uParam0->f_8;
  	uParam1->f_9 = { uParam0->f_9 };
  	uParam1->f_59 = { uParam0->f_59 };
  	uParam1->f_62 = uParam0->f_62;
  	uParam1->f_63 = uParam0->f_63;
  	uParam1->f_64 = uParam0->f_64;
  	uParam1->f_65 = uParam0->f_65;
  	uParam1->f_77 = uParam0->f_77;
  	uParam1->f_67 = uParam0->f_67;
  	uParam1->f_69 = uParam0->f_69;
  	uParam1->f_68 = uParam0->f_68;
  	uParam1->f_71 = uParam0->f_71;
  	uParam1->f_72 = uParam0->f_72;
  	uParam1->f_73 = uParam0->f_73;
  	uParam1->f_74 = uParam0->f_74;
  	uParam1->f_75 = uParam0->f_75;
  	uParam1->f_76 = uParam0->f_76;
  }
  
  void func_120(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		return;
  	}
  	if (func_112(&(Global_75654.f_555[0 /*21*/]), iParam0))
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_75654.f_139[iParam0]))
  		{
  			ENTITY::SET_ENTITY_AS_MISSION_ENTITY(Global_75654.f_139[iParam0], true, true);
  			ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&(Global_75654.f_139[iParam0]));
  			Global_75654.f_139[iParam0] = 0;
  		}
  		if (MISC::IS_BIT_SET(Global_75654.f_555[0 /*21*/].f_9, 13))
  		{
  			func_116(iParam0, 0);
  		}
  	}
  }
  
  int func_121(int iParam0)
  {
  	int iVar0;
  	
  	if (!ENTITY::DOES_ENTITY_EXIST(iParam0))
  	{
  		return 145;
  	}
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		return 145;
  	}
  	iVar0 = 0;
  	while (iVar0 < 9)
  	{
  		if (ENTITY::DOES_ENTITY_EXIST(Global_96286[iVar0]))
  		{
  			if (Global_96286[iVar0] == iParam0)
  			{
  				return Global_96296[iVar0];
  			}
  		}
  		iVar0++;
  	}
  	return 145;
  }
  
  bool func_122(struct<3> Param0, struct<3> Param3, bool bParam6)
  {
  	if (bParam6)
  	{
  		return (Param0.x == Param3.x && Param0.f_1 == Param3.f_1);
  	}
  	return ((Param0.x == Param3.x && Param0.f_1 == Param3.f_1) && Param0.f_2 == Param3.f_2);
  }
  
  void func_123(int iParam0, var uParam1)
  {
  	int iVar0;
  	
  	if (VEHICLE::IS_VEHICLE_DRIVEABLE(iParam0, false))
  	{
  		func_127(uParam1);
  		uParam1->f_66 = ENTITY::GET_ENTITY_MODEL(iParam0);
  		StringCopy(&(uParam1->f_1), VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(iParam0), 16);
  		*uParam1 = VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX(iParam0);
  		VEHICLE::GET_VEHICLE_COLOURS(iParam0, &(uParam1->f_5), &(uParam1->f_6));
  		VEHICLE::GET_VEHICLE_EXTRA_COLOURS(iParam0, &(uParam1->f_7), &(uParam1->f_8));
  		VEHICLE::GET_VEHICLE_TYRE_SMOKE_COLOR(iParam0, &(uParam1->f_62), &(uParam1->f_63), &(uParam1->f_64));
  		uParam1->f_65 = VEHICLE::GET_VEHICLE_WINDOW_TINT(iParam0);
  		uParam1->f_67 = VEHICLE::GET_VEHICLE_LIVERY(iParam0);
  		uParam1->f_69 = VEHICLE::GET_VEHICLE_WHEEL_TYPE(iParam0);
  		uParam1->f_70 = VEHICLE::GET_VEHICLE_DOOR_LOCK_STATUS(iParam0);
  		VEHICLE::GET_VEHICLE_CUSTOM_SECONDARY_COLOUR(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
  		VEHICLE::_GET_VEHICLE_NEON_LIGHTS_COLOUR(iParam0, &(uParam1->f_74), &(uParam1->f_75), &(uParam1->f_76));
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 2))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 28);
  		}
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 3))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 29);
  		}
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 30);
  		}
  		if (VEHICLE::_IS_VEHICLE_NEON_LIGHT_ENABLED(iParam0, 1))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 31);
  		}
  		if (uParam1->f_65 == -1 && !func_126(uParam1->f_66))
  		{
  			uParam1->f_65 = 0;
  		}
  		if (VEHICLE::IS_VEHICLE_A_CONVERTIBLE(iParam0, false))
  		{
  			uParam1->f_68 = VEHICLE::GET_CONVERTIBLE_ROOF_STATE(iParam0);
  		}
  		if (VEHICLE::IS_THIS_MODEL_A_PLANE(uParam1->f_66))
  		{
  			if (VEHICLE::IS_PLANE_LANDING_GEAR_INTACT(iParam0))
  			{
  				switch (VEHICLE::GET_LANDING_GEAR_STATE(iParam0))
  				{
  					case 3:
  					case 0:
  						MISC::CLEAR_BIT(&(uParam1->f_77), 23);
  						MISC::SET_BIT(&(uParam1->f_77), 22);
  						break;
  					
  					case 4:
  					case 1:
  						MISC::CLEAR_BIT(&(uParam1->f_77), 23);
  						MISC::CLEAR_BIT(&(uParam1->f_77), 22);
  						break;
  					
  					case 5:
  						MISC::SET_BIT(&(uParam1->f_77), 23);
  						break;
  				}
  			}
  			else
  			{
  				MISC::SET_BIT(&(uParam1->f_77), 23);
  			}
  		}
  		if (!VEHICLE::GET_VEHICLE_TYRES_CAN_BURST(iParam0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 9);
  		}
  		if (VEHICLE::IS_VEHICLE_STOLEN(iParam0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 10);
  		}
  		if (VEHICLE::GET_IS_VEHICLE_PRIMARY_COLOUR_CUSTOM(iParam0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 13);
  			VEHICLE::GET_VEHICLE_CUSTOM_PRIMARY_COLOUR(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
  		}
  		if (VEHICLE::GET_IS_VEHICLE_SECONDARY_COLOUR_CUSTOM(iParam0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 12);
  		}
  		func_125(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
  		iVar0 = 0;
  		while (iVar0 <= 11)
  		{
  			if (VEHICLE::IS_VEHICLE_EXTRA_TURNED_ON(iParam0, iVar0 + 1))
  			{
  				MISC::SET_BIT(&(uParam1->f_77), func_124(iVar0 + 1));
  			}
  			iVar0++;
  		}
  		if (GRAPHICS::DOES_VEHICLE_HAVE_CREW_EMBLEM(iParam0, 0))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 11);
  		}
  		else
  		{
  			MISC::CLEAR_BIT(&(uParam1->f_77), 11);
  		}
  		if (DECORATOR::DECOR_EXIST_ON(iParam0, "IgnoredByQuickSave") && DECORATOR::DECOR_GET_BOOL(iParam0, "IgnoredByQuickSave"))
  		{
  			MISC::SET_BIT(&(uParam1->f_77), 27);
  		}
  		else
  		{
  			MISC::CLEAR_BIT(&(uParam1->f_77), 27);
  		}
  	}
  }
  
  int func_124(int iParam0)
  {
  	switch (iParam0)
  	{
  		case 1:
  			return 0;
  			break;
  		
  		case 2:
  			return 1;
  			break;
  		
  		case 3:
  			return 2;
  			break;
  		
  		case 4:
  			return 3;
  			break;
  		
  		case 5:
  			return 4;
  			break;
  		
  		case 6:
  			return 5;
  			break;
  		
  		case 7:
  			return 6;
  			break;
  		
  		case 8:
  			return 7;
  			break;
  		
  		case 9:
  			return 8;
  			break;
  		
  		case 10:
  			return 24;
  			break;
  		
  		case 11:
  			return 25;
  			break;
  		
  		case 12:
  			return 26;
  			break;
  	}
  	return 0;
  }
  
  int func_125(int iParam0, var uParam1, var uParam2)
  {
  	int iVar0;
  	int iVar1;
  	
  	if (!VEHICLE::IS_VEHICLE_DRIVEABLE(*iParam0, false))
  	{
  		return 0;
  	}
  	if (VEHICLE::GET_NUM_MOD_KITS(*iParam0) == 0)
  	{
  		return 0;
  	}
  	iVar0 = 0;
  	while (iVar0 < *uParam1)
  	{
  		iVar1 = iVar0;
  		if ((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21)
  		{
  			(*uParam1)[iVar0] = 0;
  			if (VEHICLE::IS_TOGGLE_MOD_ON(*iParam0, iVar1))
  			{
  				(*uParam1)[iVar0] = 1;
  			}
  		}
  		else if (iVar1 == 22)
  		{
  			if (VEHICLE::IS_TOGGLE_MOD_ON(*iParam0, iVar1))
  			{
  				switch (VEHICLE::_GET_VEHICLE_XENON_LIGHTS_COLOR(*iParam0))
  				{
  					case 255:
  						(*uParam1)[iVar0] = 1;
  						break;
  					
  					case 0:
  						(*uParam1)[iVar0] = 2;
  						break;
  					
  					case 1:
  						(*uParam1)[iVar0] = 3;
  						break;
  					
  					case 2:
  						(*uParam1)[iVar0] = 4;
  						break;
  					
  					case 3:
  						(*uParam1)[iVar0] = 5;
  						break;
  					
  					case 4:
  						(*uParam1)[iVar0] = 6;
  						break;
  					
  					case 5:
  						(*uParam1)[iVar0] = 7;
  						break;
  					
  					case 6:
  						(*uParam1)[iVar0] = 8;
  						break;
  					
  					case 7:
  						(*uParam1)[iVar0] = 9;
  						break;
  					
  					case 8:
  						(*uParam1)[iVar0] = 10;
  						break;
  					
  					case 9:
  						(*uParam1)[iVar0] = 11;
  						break;
  					
  					case 10:
  						(*uParam1)[iVar0] = 12;
  						break;
  					
  					case 11:
  						(*uParam1)[iVar0] = 13;
  						break;
  					
  					case 12:
  						(*uParam1)[iVar0] = 14;
  						break;
  					
  					case 13:
  						(*uParam1)[iVar0] = 15;
  						break;
  				}
  			}
  			else
  			{
  				(*uParam1)[iVar0] = 0;
  			}
  		}
  		else
  		{
  			(*uParam1)[iVar0] = VEHICLE::GET_VEHICLE_MOD(*iParam0, iVar0) + 1;
  			if (iVar0 == 23)
  			{
  				(*uParam2)[0] = VEHICLE::GET_VEHICLE_MOD_VARIATION(*iParam0, iVar0);
  			}
  			else if (iVar0 == 24)
  			{
  				(*uParam2)[1] = VEHICLE::GET_VEHICLE_MOD_VARIATION(*iParam0, iVar0);
  			}
  		}
  		iVar0++;
  	}
  	return 1;
  }
  
  int func_126(int iParam0)
  {
  	switch (iParam0)
  	{
  		case joaat("granger"):
  		case joaat("visione"):
  			return 1;
  		
  		default:
  	}
  	return 0;
  }
  
  void func_127(var uParam0)
  {
  	int iVar0;
  	
  	uParam0->f_66 = 0;
  	uParam0->f_77 = 0;
  	uParam0->f_65 = 0;
  	uParam0->f_62 = 0;
  	uParam0->f_63 = 0;
  	uParam0->f_64 = 0;
  	uParam0->f_74 = 0;
  	uParam0->f_75 = 0;
  	uParam0->f_76 = 0;
  	*uParam0 = 0;
  	StringCopy(&(uParam0->f_1), "", 16);
  	uParam0->f_5 = 0;
  	uParam0->f_6 = 0;
  	uParam0->f_7 = 0;
  	uParam0->f_8 = 0;
  	iVar0 = 0;
  	while (iVar0 < 49)
  	{
  		uParam0->f_9[iVar0] = 0;
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 2)
  	{
  		uParam0->f_59[iVar0] = 0;
  		iVar0++;
  	}
  	uParam0->f_67 = 0;
  	uParam0->f_68 = 0;
  	uParam0->f_69 = 0;
  	uParam0->f_70 = 1;
  	uParam0->f_71 = 0;
  	uParam0->f_72 = 0;
  	uParam0->f_73 = 0;
  }
  
  void func_128(int iParam0)
  {
  	if (iParam0 != 24 && iParam0 != 25)
  	{
  	}
  	func_120(iParam0);
  	func_116(iParam0, 0);
  }
  
  int func_129(struct<3> Param0, int iParam3, var uParam4, var uParam5)
  {
  	int iVar0;
  	
  	iVar0 = func_130(Param0, iParam3, 1);
  	switch (iVar0)
  	{
  		case 0:
  			*uParam4 = { -827.351f, 157.785f, 68.2143f };
  			*uParam5 = 85.1509f;
  			return 1;
  			break;
  		
  		case 1:
  		case 2:
  			*uParam4 = { 1992.523f, 3813.916f, 31.1008f };
  			*uParam5 = 122.1498f;
  			return 1;
  			break;
  		
  		case 3:
  			*uParam4 = { -1184.258f, -1496.556f, 3.3895f };
  			*uParam5 = 303.2098f;
  			return 1;
  			break;
  		
  		case 4:
  			*uParam4 = { 118.1067f, -1325.906f, 28.3706f };
  			*uParam5 = 123.5016f;
  			return 1;
  			break;
  		
  		case 5:
  			*uParam4 = { -18.118f, -1455.126f, 29.5004f };
  			*uParam5 = 273.2822f;
  			return 1;
  			break;
  		
  		case 6:
  			*uParam4 = { 1.5947f, 543.4017f, 173.4644f };
  			*uParam5 = 310.7556f;
  			return 1;
  			break;
  		
  		default:
  			break;
  	}
  	return 0;
  }
  
  int func_130(struct<3> Param0, int iParam3, int iParam4)
  {
  	int iVar0;
  	float fVar1;
  	float fVar2;
  	int iVar3;
  	
  	fVar2 = 1000000f;
  	iVar3 = 10;
  	iVar0 = 0;
  	while (iVar0 <= (10 - 1))
  	{
  		if (Global_93993[iVar0 /*10*/].f_7 != 263)
  		{
  			if (Global_93993[iVar0 /*10*/].f_9 == iParam3 || iParam3 == 145)
  			{
  				if (func_131(iVar0) || iParam4 == 0)
  				{
  					fVar1 = MISC::GET_DISTANCE_BETWEEN_COORDS(Param0, Global_93993[iVar0 /*10*/].f_3, true);
  					if (fVar1 < fVar2)
  					{
  						fVar2 = fVar1;
  						iVar3 = iVar0;
  					}
  				}
  			}
  		}
  		iVar0++;
  	}
  	return iVar3;
  }
  
  bool func_131(int iParam0)
  {
  	return MISC::IS_BIT_SET(Global_111858.f_7225[iParam0], 0);
  }
  
  int func_132(int iParam0)
  {
  	if (iParam0 == -1)
  	{
  		return 0;
  	}
  	return Global_75654.f_139[iParam0];
  }
  
  void func_133(int* iParam0, bool bParam1, bool bParam2)
  {
  	int iVar0;
  	
  	if (MISC::IS_BIT_SET(iParam0->f_13, 30))
  	{
  		bParam1 = true;
  	}
  	func_135(iParam0);
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (HUD::DOES_BLIP_EXIST(iParam0->f_1[iVar0]))
  		{
  			HUD::REMOVE_BLIP(&(iParam0->f_1[iVar0]));
  		}
  		func_134(iVar0, iParam0);
  		func_63(iVar0, iParam0);
  		iVar0++;
  	}
  	iVar0 = 0;
  	while (iVar0 < 31)
  	{
  		if (iVar0 != 8)
  		{
  			MISC::CLEAR_BIT(&(iParam0->f_13), iVar0);
  			MISC::CLEAR_BIT(&(iParam0->f_14), iVar0);
  		}
  		iVar0++;
  	}
  	if (HUD::DOES_BLIP_EXIST(*iParam0))
  	{
  		HUD::REMOVE_BLIP(iParam0);
  	}
  	iParam0->f_6 = 0;
  	iParam0->f_12 = 0;
  	iParam0->f_15 = 0;
  	iVar0 = 0;
  	while (iVar0 < 3)
  	{
  		if (!PED::IS_PED_INJURED(iParam0->f_17[iVar0]))
  		{
  			PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam0->f_17[iVar0], true);
  			PED::SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS(iParam0->f_17[iVar0], true);
  			if (bParam2)
  			{
  				PED::SET_PED_CONFIG_FLAG(iParam0->f_17[iVar0], 32, true);
  				PED::SET_PED_CONFIG_FLAG(iParam0->f_17[iVar0], 305, false);
  			}
  			PED::SET_PED_CONFIG_FLAG(iParam0->f_17[iVar0], 268, false);
  			if (bParam1)
  			{
  				if (PED::IS_PED_GROUP_MEMBER(iParam0->f_17[iVar0], func_40()) && iParam0->f_17[iVar0] != PLAYER::PLAYER_PED_ID())
  				{
  					PED::REMOVE_PED_FROM_GROUP(iParam0->f_17[iVar0]);
  				}
  			}
  			if (!MISC::IS_BIT_SET(iParam0->f_13, 29))
  			{
  				PED::SET_PED_USING_ACTION_MODE(iParam0->f_17[iVar0], false, -1, 0);
  			}
  			iParam0->f_17[iVar0] = 0;
  		}
  		iVar0++;
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(PLAYER::PLAYER_PED_ID(), true);
  		PED::SET_PED_CAN_PLAY_AMBIENT_BASE_ANIMS(PLAYER::PLAYER_PED_ID(), true);
  	}
  	if (PLAYER::IS_PLAYER_PLAYING(PLAYER::PLAYER_ID()))
  	{
  		if (bParam2)
  		{
  			PED::SET_PED_CONFIG_FLAG(PLAYER::PLAYER_PED_ID(), 32, true);
  		}
  	}
  	iParam0->f_21 = 0;
  }
  
  void func_134(int iParam0, var uParam1)
  {
  	switch (iParam0)
  	{
  		case 0:
  			MISC::CLEAR_BIT(&(uParam1->f_13), 14);
  			break;
  		
  		case 1:
  			MISC::CLEAR_BIT(&(uParam1->f_13), 15);
  			break;
  		
  		case 2:
  			MISC::CLEAR_BIT(&(uParam1->f_13), 16);
  			break;
  	}
  }
  
  void func_135(var uParam0)
  {
  	if (HUD::DOES_BLIP_EXIST(uParam0->f_5))
  	{
  		HUD::REMOVE_BLIP(&(uParam0->f_5));
  	}
  }
  
  float func_136(float fParam0, float fParam1, float fParam2)
  {
  	if (fParam0 > fParam2)
  	{
  		return fParam2;
  	}
  	else if (fParam0 < fParam1)
  	{
  		return fParam1;
  	}
  	return fParam0;
  }
  
  bool func_137(char* sParam0)
  {
  	HUD::BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(sParam0);
  	return HUD::END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
  }
  
  float func_138(int iParam0, int iParam1, bool bParam2)
  {
  	struct<3> Var0;
  	struct<3> Var3;
  	
  	if (!ENTITY::IS_ENTITY_DEAD(iParam0, false))
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, true) };
  	}
  	else
  	{
  		Var0 = { ENTITY::GET_ENTITY_COORDS(iParam0, false) };
  	}
  	if (!ENTITY::IS_ENTITY_DEAD(iParam1, false))
  	{
  		Var3 = { ENTITY::GET_ENTITY_COORDS(iParam1, true) };
  	}
  	else
  	{
  		Var3 = { ENTITY::GET_ENTITY_COORDS(iParam1, false) };
  	}
  	return MISC::GET_DISTANCE_BETWEEN_COORDS(Var0, Var3, bParam2);
  }
  
  int func_139(int iParam0, bool bParam1, bool bParam2)
  {
  	return func_33(iParam0, !bParam1, bParam2);
  }
  
  void func_140(char* sParam0, int iParam1, int iParam2)
  {
  	iParam2 = iParam2;
  	HUD::BEGIN_TEXT_COMMAND_PRINT(sParam0);
  	HUD::END_TEXT_COMMAND_PRINT(iParam1, true);
  }
  
  void func_141()
  {
  	func_149(2);
  	func_148();
  }
  
  int func_142()
  {
  	if (Global_21005 != 0 || AUDIO::IS_SCRIPTED_CONVERSATION_ONGOING())
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_143()
  {
  	int iVar0;
  	float fVar1;
  	
  	PATHFIND::SET_IGNORE_NO_GPS_FLAG(true);
  	HUD::REQUEST_ADDITIONAL_TEXT("PPROM", 0);
  	func_147(2, 1);
  	func_146(&uLocal_76, 0, PLAYER::PLAYER_PED_ID(), "MICHAEL", 0, 1);
  	Local_242[0 /*8*/] = { -1039.556f, -1071.264f, 150f };
  	Local_242[0 /*8*/].f_3 = 200f;
  	Local_242[1 /*8*/] = { -1014.976f, 450.128f, 150f };
  	Local_242[1 /*8*/].f_3 = 200f;
  	Local_242[2 /*8*/] = { -598.1714f, -310.67f, 150f };
  	Local_242[2 /*8*/].f_3 = 200f;
  	Local_242[3 /*8*/] = { -392.5704f, 514.8138f, 150f };
  	Local_242[3 /*8*/].f_3 = 200f;
  	Local_242[4 /*8*/] = { 127.7632f, -135.7758f, 150f };
  	Local_242[4 /*8*/].f_3 = 200f;
  	Local_242[5 /*8*/] = { 1033.469f, -570.8278f, 150f };
  	Local_242[5 /*8*/].f_3 = 200f;
  	Local_242[6 /*8*/] = { 246.5894f, -890.811f, 150f };
  	Local_242[6 /*8*/].f_3 = 200f;
  	Local_242[7 /*8*/] = { 1231.393f, -1694.348f, 150f };
  	Local_242[7 /*8*/].f_3 = 200f;
  	Local_242[8 /*8*/] = { 424.9531f, -1904.325f, 150f };
  	Local_242[8 /*8*/].f_3 = 200f;
  	Local_242[9 /*8*/] = { -22.4342f, -1414.275f, 160f };
  	Local_242[9 /*8*/].f_3 = 200f;
  	iVar0 = 0;
  	while (iVar0 <= 9)
  	{
  		if (!func_145(Local_242[iVar0 /*8*/]))
  		{
  			fVar1 = 0f;
  			MISC::GET_GROUND_Z_FOR_3D_COORD(Local_242[iVar0 /*8*/], &fVar1, false, false);
  			Local_242[iVar0 /*8*/].f_2 = fVar1;
  		}
  		iVar0++;
  	}
  	switch (func_144())
  	{
  		case 6:
  			StringCopy(&cLocal_43, "DT", 16);
  			break;
  		
  		case 5:
  			StringCopy(&cLocal_43, "VW", 16);
  			break;
  		
  		case 7:
  			StringCopy(&cLocal_43, "MW", 16);
  			break;
  	}
  	PLAYER::SET_WANTED_LEVEL_MULTIPLIER(0f);
  	while (!HUD::HAS_ADDITIONAL_TEXT_LOADED(0))
  	{
  		SYSTEM::WAIT(0);
  	}
  }
  
  int func_144()
  {
  	return Global_110568.f_20;
  }
  
  int func_145(struct<3> Param0)
  {
  	if ((Param0.x == 0f && Param0.f_1 == 0f) && Param0.f_2 == 0f)
  	{
  		return 1;
  	}
  	return 0;
  }
  
  void func_146(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
  {
  	if ((uParam0[iParam1 /*10*/])->f_7 == 1)
  	{
  	}
  	(*uParam0)[iParam1 /*10*/] = iParam2;
  	StringCopy(&((uParam0[iParam1 /*10*/])->f_1), sParam3, 24);
  	(uParam0[iParam1 /*10*/])->f_7 = 1;
  	(uParam0[iParam1 /*10*/])->f_8 = iParam4;
  	(uParam0[iParam1 /*10*/])->f_9 = iParam5;
  	if (!Global_76833)
  	{
  		if (!PED::IS_PED_INJURED(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_8 == 0)
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam2, false);
  			}
  			else
  			{
  				PED::SET_PED_CAN_PLAY_AMBIENT_ANIMS(iParam2, true);
  			}
  		}
  		if (!PED::IS_PED_INJURED(iParam2))
  		{
  			if ((uParam0[iParam1 /*10*/])->f_9 == 0)
  			{
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam2, false);
  			}
  			else
  			{
  				PED::SET_PED_CAN_USE_AUTO_CONVERSATION_LOOKAT(iParam2, true);
  			}
  		}
  	}
  }
  
  void func_147(int iParam0, int iParam1)
  {
  	MISC::SET_BIT(&Global_31126, iParam0);
  	StringCopy(&(Global_31127[iParam0 /*6*/]), SCRIPT::GET_THIS_SCRIPT_NAME(), 24);
  	Global_31182[iParam0] = iParam1;
  }
  
  void func_148()
  {
  	if (ENTITY::DOES_ENTITY_EXIST(iLocal_241))
  	{
  		ENTITY::SET_VEHICLE_AS_NO_LONGER_NEEDED(&iLocal_241);
  	}
  	if (HUD::DOES_BLIP_EXIST(Local_242[0 /*8*/].f_4))
  	{
  		HUD::REMOVE_BLIP(&(Local_242[0 /*8*/].f_4));
  	}
  	if (HUD::DOES_BLIP_EXIST(Local_242[0 /*8*/].f_5))
  	{
  		HUD::REMOVE_BLIP(&(Local_242[0 /*8*/].f_5));
  	}
  	if (HUD::DOES_BLIP_EXIST(Local_242[1 /*8*/].f_4))
  	{
  		HUD::REMOVE_BLIP(&(Local_242[1 /*8*/].f_4));
  	}
  	if (HUD::DOES_BLIP_EXIST(Local_242[1 /*8*/].f_5))
  	{
  		HUD::REMOVE_BLIP(&(Local_242[1 /*8*/].f_5));
  	}
  	PLAYER::SET_WANTED_LEVEL_MULTIPLIER(1f);
  	PATHFIND::SET_IGNORE_NO_GPS_FLAG(false);
  	SCRIPT::TERMINATE_THIS_THREAD();
  }
  
  void func_149(int iParam0)
  {
  	Global_110568.f_22 = iParam0;
  }
  
  