DEFINE OBJECTS 1
DEFINE OBJECT SANNY BUILDER 4.2.0     

DEFINE MISSIONS 0

DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA script

DEFINE UNKNOWN_EMPTY_SEGMENT 0

DEFINE UNKNOWN_THREADS_MEMORY 0

Alloc($DEFAULT_WAIT_TIME, 14)
Alloc($TIME_MINS, 35)
Alloc($PLAYER_CHAR, 2)
Alloc($PLAYER_ACTOR, 3)
Alloc($PLAYER_GROUP, 11)
Alloc($TIME_HOURS, 34)

//-------------MAIN---------------
script_name 'MAIN'
display_zone_names False
set_car_density_multiplier 0.0
set_max_wanted_level 6
set_deatharrest_state 0
set_time_of_day 8 {minutes} 0
request_collision 422.0 {y} -478.0
load_scene 422.0 {y} -478.0 {z} 8.0
$PLAYER_CHAR = create_player 0 {x} 422.0 {y} -478.0 {z} 8.0
$PLAYER_ACTOR = get_player_char $PLAYER_CHAR
set_char_heading $PLAYER_ACTOR {heading} -90.0
$PLAYER_GROUP = get_player_group $PLAYER_CHAR
set_camera_behind_player 
force_weather_now WeatherType.ExtraSunnyLa
wait 0
give_player_clothes_outside_shop $PLAYER_CHAR {textureName} "PLAYER_FACE" {modelName} "HEAD" {bodyPart} BodyPart.Head
give_player_clothes_outside_shop $PLAYER_CHAR {textureName} "JEANSDENIM" {modelName} "JEANS" {bodyPart} BodyPart.Legs
give_player_clothes_outside_shop $PLAYER_CHAR {textureName} "SNEAKERBINCBLK" {modelName} "SNEAKER" {bodyPart} BodyPart.Shoes
give_player_clothes_outside_shop $PLAYER_CHAR {textureName} "VEST" {modelName} "VEST" {bodyPart} BodyPart.Torso
build_player_model $PLAYER_CHAR
set_player_control $PLAYER_CHAR {state} True
do_fade 0 {direction} Fade.In
set_area_visible 0
set_int_stat StatId.CitiesPassed {value} 4
add_hospital_restart 422.0 {y} -478.0 {z} 8.0 {heading} -90.0 {citiesPassed} 0
add_police_restart 422.0 {y} -478.0 {z} 8.0 {heading} -90.0 {citiesPassed} 0
declare_mission_flag $onmission
$DEFAULT_WAIT_TIME = 250
clear_help 

:MAIN_314
wait $DEFAULT_WAIT_TIME
$TIME_HOURS, $TIME_MINS = get_time_of_day 
goto @MAIN_314
