Skip to content
Permalink
master
Switch branches/tags
Go to file
1 contributor

Users who have contributed to this file

//This script requires a stack size of 2024
SetStaticsCount 748
SetDefaultStatic 5 1//cursor index
SetDefaultStatic 6 1//item count index
SetDefaultStatic 13 25//menu max item count
SetDefaultStatic 71 1//num for need for speed ground/air
SetDefaultStatic 73 -1//fps time
SetDefaultStatic 74 1//rocket gun type
SetDefaultStatic 75 5//forge range
SetDefaultStatic 30 1//num for draw speed mph/kmh
SetDefaultStatic 88 1065353216//saved bone 1f
SetDefaultStatic 110 26//array for drawing menu number maxval
SetDefaultStatic 137 26//array for drawing menu number minval
SetDefaultStatic 164 26//array for drawing menu type
SetDefaultStatic 511 101//array for drawing incremented number
SetDefaultStatic 379 131//array for drawing menu text
SetDefaultStatic 279 16//bitset array for individual player loop
SetDefaultStatic 310 29//saved index for explode online player
SetDefaultStatic 93 1061326684//x value for menu drawing 0.76f
//values are also set here set_static_vars
//> custom native names
SetNativeName 0x029D3841 _get_number_of_instances_of_streamed_script
SetNativeName 0x3FE33BD6 _end_relative_draw
SetNativeName 0x70559AC7 _set_ped_decoration
SetNativeName 0xE943B09C _set_vehicle_engine_power_multiplier
SetNativeName 0x9C720B61 _set_ptfx_asset_next_call
SetNativeName 0x633F8C48 _start_particle_fx_non_looped_at_coord_2
SetNativeName 0x5C57B85D _play_ambient_speech1
SetNativeName 0x3E35563E _set_text_entry
SetNativeName 0x27A244D8 _add_text_component_string
SetNativeName 0x6F8350CE _draw_text
SetNativeName 0x51E7A037 _set_text_entry_for_width
SetNativeName 0xD12A643A _get_text_screen_width
SetNativeName 0xF42C43C7 _set_text_entry_2
SetNativeName 0x574EE85C _set_notification_text_entry
SetNativeName 0x08F7AF78 _draw_notification
SetNativeName 0xB245FC10 _set_text_component_format
SetNativeName 0xB59B530D _display_help_text_from_string_label
SetNativeName 0xB9827942 _get_blip_info_id_iterator
SetNativeName 0x44E1680C _get_ped_head_blend_data
SetNativeName 0x9ACC6446 _has_ptfx_asset_loaded_with_name
SetNativeName 0xCFEA19A9 _request_ptfx_asset_with_name
SetNativeName 0x7DC6D022 _is_vehicle_engine_on
SetNativeName 0x228A2598 _set_screen_draw_position
SetNativeName 0x76C641E4 _start_draw_position
SetNativeName 0x1F950E4B _world_to_screen
SetNativeName 0x3330175B _get_string_height
SetNativeName 0x94B82066 _set_text_gxt_entry
SetNativeName 0xAA318785 _get_wrap_count
SetNativeName 0x38F82261 _draw_subtitle_timed
//<
//> Static Names
SetStaticName 64 MetaDlcVehiclesAddress
//<
//> meta enums
SetEnum MetaVehicleCount 298//number of vehicles in vehicles.meta
SetEnum MetaVehicleDlcCount 66//number of dlc vehicles in vehicles.meta
SetEnum MetaVehicleStartAddr 0xCD78AC70//start address for vehicle meta
SetEnum MetaVehicleItemSize 624//size of one veh in meta struct
//<
//> hud components
SetEnum HUD 0
SetEnum HUD_WANTED_STARS 1
SetEnum HUD_WEAPON_ICON 2
SetEnum HUD_CASH 3
SetEnum HUD_MP_CASH 4
SetEnum HUD_MP_MESSAGE 5
SetEnum HUD_VEHICLE_NAME 6
SetEnum HUD_AREA_NAME 7
SetEnum HUD_VEHICLE_CLASS 8
SetEnum HUD_STREET_NAME 9
SetEnum HUD_HELP_TEXT 10
SetEnum HUD_FLOATING_HELP_TEXT_1 11
SetEnum HUD_FLOATING_HELP_TEXT_2 12
SetEnum HUD_CASH_CHANGE 13
SetEnum HUD_RETICLE 14
SetEnum HUD_SUBTITLE_TEXT 15
SetEnum HUD_RADIO_STATIONS 16
SetEnum HUD_SAVING_GAME 17
SetEnum HUD_GAME_STREAM 18
SetEnum HUD_WEAPON_WHEEL 19
SetEnum HUD_WEAPON_WHEEL_STATS 20
SetEnum MAX_HUD_COMPONENTS 21
SetEnum MAX_HUD_WEAPONS 22
SetEnum MAX_SCRIPTED_HUD_COMPONENTS 141
//<
//> Button Presses
SetEnum INPUT_NEXT_CAMERA 0
SetEnum INPUT_LOOK_LR 1
SetEnum INPUT_LOOK_UD 2
SetEnum INPUT_LOOK_UP_ONLY 3
SetEnum INPUT_LOOK_DOWN_ONLY 4
SetEnum INPUT_LOOK_LEFT_ONLY 5
SetEnum INPUT_LOOK_RIGHT_ONLY 6
SetEnum INPUT_CINEMATIC_SLOWMO 7
SetEnum INPUT_SCRIPTED_FLY_UD 8
SetEnum INPUT_SCRIPTED_FLY_LR 9
SetEnum INPUT_SCRIPTED_FLY_ZUP 10
SetEnum INPUT_SCRIPTED_FLY_ZDOWN 11
SetEnum INPUT_WEAPON_WHEEL_UD 12
SetEnum INPUT_WEAPON_WHEEL_LR 13
SetEnum INPUT_WEAPON_WHEEL_NEXT 14
SetEnum INPUT_WEAPON_WHEEL_PREV 15
SetEnum INPUT_SELECT_NEXT_WEAPON 16
SetEnum INPUT_SELECT_PREV_WEAPON 17
SetEnum INPUT_SKIP_CUTSCENE 18
SetEnum INPUT_CHARACTER_WHEEL 19
SetEnum INPUT_MULTIPLAYER_INFO 20
SetEnum INPUT_SPRINT 21
SetEnum INPUT_JUMP 22
SetEnum INPUT_ENTER 23
SetEnum INPUT_ATTACK 24
SetEnum INPUT_AIM 25
SetEnum INPUT_LOOK_BEHIND 26
SetEnum INPUT_PHONE 27
SetEnum INPUT_SPECIAL_ABILITY 28
SetEnum INPUT_SPECIAL_ABILITY_SECONDARY 29
SetEnum INPUT_MOVE_LR 30
SetEnum INPUT_MOVE_UD 31
SetEnum INPUT_MOVE_UP_ONLY 32
SetEnum INPUT_MOVE_DOWN_ONLY 33
SetEnum INPUT_MOVE_LEFT_ONLY 34
SetEnum INPUT_MOVE_RIGHT_ONLY 35
SetEnum INPUT_DUCK 36
SetEnum INPUT_SELECT_WEAPON 37
SetEnum INPUT_PICKUP 38
SetEnum INPUT_SNIPER_ZOOM 39
SetEnum INPUT_SNIPER_ZOOM_IN_ONLY 40
SetEnum INPUT_SNIPER_ZOOM_OUT_ONLY 41
SetEnum INPUT_SNIPER_ZOOM_IN_SECONDARY 42//added in heist dlc
SetEnum INPUT_SNIPER_ZOOM_OUT_SECONDARY 43//added in heist dlc
SetEnum INPUT_COVER 44
SetEnum INPUT_RELOAD 45
SetEnum INPUT_TALK 46
SetEnum INPUT_DETONATE 47
SetEnum INPUT_HUD_SPECIAL 48
SetEnum INPUT_ARREST 49
SetEnum INPUT_ACCURATE_AIM 50
SetEnum INPUT_CONTEXT 51
SetEnum INPUT_WEAPON_SPECIAL 52
SetEnum INPUT_WEAPON_SPECIAL_TWO 53
SetEnum INPUT_DIVE 54
SetEnum INPUT_VEH_MOVE_LR 55
SetEnum INPUT_VEH_MOVE_UD 56
SetEnum INPUT_VEH_MOVE_UP_ONLY 57
SetEnum INPUT_VEH_MOVE_DOWN_ONLY 58
SetEnum INPUT_VEH_MOVE_LEFT_ONLY 59
SetEnum INPUT_VEH_MOVE_RIGHT_ONLY 60
SetEnum INPUT_VEH_SPECIAL 61
SetEnum INPUT_VEH_GUN_LR 62
SetEnum INPUT_VEH_GUN_UD 63
SetEnum INPUT_VEH_AIM 64
SetEnum INPUT_VEH_ATTACK 65
SetEnum INPUT_VEH_ATTACK2 66
SetEnum INPUT_VEH_ACCELERATE 67
SetEnum INPUT_VEH_BRAKE 68
SetEnum INPUT_VEH_HEADLIGHT 69
SetEnum INPUT_VEH_EXIT 70
SetEnum INPUT_VEH_HANDBRAKE 71
SetEnum INPUT_VEH_HOTWIRE_LEFT 72
SetEnum INPUT_VEH_HOTWIRE_RIGHT 73
SetEnum INPUT_VEH_LOOK_BEHIND 74
SetEnum INPUT_VEH_CIN_CAM 75
SetEnum INPUT_VEH_NEXT_RADIO 76
SetEnum INPUT_VEH_PREV_RADIO 77
SetEnum INPUT_VEH_RADIO_WHEEL 78
SetEnum INPUT_VEH_HORN 79
SetEnum INPUT_VEH_FLY_THROTTLE_UP 80
SetEnum INPUT_VEH_FLY_THROTTLE_DOWN 81
SetEnum INPUT_VEH_FLY_YAW_LEFT 82
SetEnum INPUT_VEH_FLY_YAW_RIGHT 83
SetEnum INPUT_VEH_PASSENGER_AIM 84
SetEnum INPUT_VEH_PASSENGER_ATTACK 85
SetEnum INPUT_VEH_SPECIAL_ABILITY_FRANKLIN 86
SetEnum INPUT_VEH_STUNT_UD 87
SetEnum INPUT_VEH_CINEMATIC_UD 88
SetEnum INPUT_VEH_CINEMATIC_UP_ONLY 89
SetEnum INPUT_VEH_CINEMATIC_DOWN_ONLY 90
SetEnum INPUT_VEH_CINEMATIC_LR 91
SetEnum INPUT_VEH_SELECT_NEXT_WEAPON 92
SetEnum INPUT_VEH_SELECT_PREV_WEAPON 93
SetEnum INPUT_VEH_ROOF 94
SetEnum INPUT_VEH_JUMP 95
SetEnum INPUT_VEH_GRAPPLING_HOOK 96
SetEnum INPUT_VEH_SHUFFLE 97//added in heist dlc
SetEnum INPUT_VEH_FLY_ROLL_LR 98
SetEnum INPUT_VEH_FLY_ROLL_LEFT_ONLY 99
SetEnum INPUT_VEH_FLY_ROLL_RIGHT_ONLY 100
SetEnum INPUT_VEH_FLY_PITCH_UD 101
SetEnum INPUT_VEH_FLY_PITCH_UP_ONLY 102
SetEnum INPUT_VEH_FLY_PITCH_DOWN_ONLY 103
SetEnum INPUT_VEH_FLY_UNDERCARRIAGE 104
SetEnum INPUT_VEH_FLY_ATTACK 105
SetEnum INPUT_VEH_FLY_SELECT_NEXT_WEAPON 106
SetEnum INPUT_VEH_FLY_SELECT_PREV_WEAPON 107
SetEnum INPUT_VEH_FLY_SELECT_TARGET_LEFT 108
SetEnum INPUT_VEH_FLY_SELECT_TARGET_RIGHT 109
SetEnum INPUT_VEH_FLY_VERTICAL_FLIGHT_MODE 110
SetEnum INPUT_VEH_SUB_TURN_LR 111
SetEnum INPUT_VEH_SUB_TURN_LEFT_ONLY 112
SetEnum INPUT_VEH_SUB_TURN_RIGHT_ONLY 113
SetEnum INPUT_VEH_SUB_PITCH_UD 114
SetEnum INPUT_VEH_SUB_PITCH_UP_ONLY 115
SetEnum INPUT_VEH_SUB_PITCH_DOWN_ONLY 116
SetEnum INPUT_VEH_SUB_THROTTLE_UP 117
SetEnum INPUT_VEH_SUB_THROTTLE_DOWN 118
SetEnum INPUT_VEH_SUB_ASCEND 119
SetEnum INPUT_VEH_SUB_DESCEND 120
SetEnum INPUT_VEH_SUB_TURN_HARD_LEFT 121
SetEnum INPUT_VEH_SUB_TURN_HARD_RIGHT 122
SetEnum INPUT_MELEE_ATTACK_LIGHT 123
SetEnum INPUT_MELEE_ATTACK_HEAVY 124
SetEnum INPUT_MELEE_ATTACK_ALTERNATE 125
SetEnum INPUT_MELEE_BLOCK 126
SetEnum INPUT_PARACHUTE_DEPLOY 127
SetEnum INPUT_PARACHUTE_DETACH 128
SetEnum INPUT_PARACHUTE_TURN_LR 129
SetEnum INPUT_PARACHUTE_TURN_LEFT_ONLY 130
SetEnum INPUT_PARACHUTE_TURN_RIGHT_ONLY 131
SetEnum INPUT_PARACHUTE_PITCH_UD 132
SetEnum INPUT_PARACHUTE_PITCH_UP_ONLY 133
SetEnum INPUT_PARACHUTE_PITCH_DOWN_ONLY 134
SetEnum INPUT_PARACHUTE_BRAKE_LEFT 135
SetEnum INPUT_PARACHUTE_BRAKE_RIGHT 136
SetEnum INPUT_PARACHUTE_SMOKE 137
SetEnum INPUT_MAP 138
SetEnum INPUT_SELECT_WEAPON_UNARMED 139
SetEnum INPUT_SELECT_WEAPON_MELEE 140
SetEnum INPUT_SELECT_WEAPON_HANDGUN 141
SetEnum INPUT_SELECT_WEAPON_SHOTGUN 142
SetEnum INPUT_SELECT_WEAPON_SMG 143
SetEnum INPUT_SELECT_WEAPON_AUTO_RIFLE 144
SetEnum INPUT_SELECT_WEAPON_SNIPER 145
SetEnum INPUT_SELECT_WEAPON_HEAVY 146
SetEnum INPUT_SELECT_WEAPON_SPECIAL 147
SetEnum INPUT_SELECT_CHARACTER_MICHAEL 148
SetEnum INPUT_SELECT_CHARACTER_FRANKLIN 149
SetEnum INPUT_SELECT_CHARACTER_TREVOR 150
SetEnum INPUT_SELECT_CHARACTER_MULTIPLAYER 151
SetEnum INPUT_SAVE_REPLAY_CLIP 152
SetEnum INPUT_SPECIAL_ABILITY_PC 153
SetEnum INPUT_CELLPHONE_UP 154
SetEnum INPUT_CELLPHONE_DOWN 155
SetEnum INPUT_CELLPHONE_LEFT 156
SetEnum INPUT_CELLPHONE_RIGHT 157
SetEnum INPUT_CELLPHONE_SELECT 158
SetEnum INPUT_CELLPHONE_CANCEL 159
SetEnum INPUT_CELLPHONE_OPTION 160
SetEnum INPUT_CELLPHONE_EXTRA_OPTION 161
SetEnum INPUT_CELLPHONE_SCROLL_FORWARD 162
SetEnum INPUT_CELLPHONE_SCROLL_BACKWARD 163
SetEnum INPUT_FRONTEND_DOWN 164
SetEnum INPUT_FRONTEND_UP 165
SetEnum INPUT_FRONTEND_LEFT 166
SetEnum INPUT_FRONTEND_RIGHT 167
SetEnum INPUT_FRONTEND_RDOWN 168
SetEnum INPUT_FRONTEND_RUP 169
SetEnum INPUT_FRONTEND_RLEFT 170
SetEnum INPUT_FRONTEND_RRIGHT 171
SetEnum INPUT_FRONTEND_AXIS_X 172
SetEnum INPUT_FRONTEND_AXIS_Y 173
SetEnum INPUT_FRONTEND_RIGHT_AXIS_X 174
SetEnum INPUT_FRONTEND_RIGHT_AXIS_Y 175
SetEnum INPUT_FRONTEND_PAUSE 176
SetEnum INPUT_FRONTEND_ACCEPT 177
SetEnum INPUT_FRONTEND_CANCEL 178
SetEnum INPUT_FRONTEND_X 179
SetEnum INPUT_FRONTEND_Y 180
SetEnum INPUT_FRONTEND_LB 181
SetEnum INPUT_FRONTEND_RB 182
SetEnum INPUT_FRONTEND_LT 183
SetEnum INPUT_FRONTEND_RT 184
SetEnum INPUT_FRONTEND_LS 185
SetEnum INPUT_FRONTEND_RS 186
SetEnum INPUT_FRONTEND_SELECT 187
SetEnum INPUT_SCRIPT_LEFT_AXIS_X 188
SetEnum INPUT_SCRIPT_LEFT_AXIS_Y 189
SetEnum INPUT_SCRIPT_RIGHT_AXIS_X 190
SetEnum INPUT_SCRIPT_RIGHT_AXIS_Y 191
SetEnum INPUT_SCRIPT_RUP 192
SetEnum INPUT_SCRIPT_RDOWN 193
SetEnum INPUT_SCRIPT_RLEFT 194
SetEnum INPUT_SCRIPT_RRIGHT 195
SetEnum INPUT_SCRIPT_LB 196
SetEnum INPUT_SCRIPT_RB 197
SetEnum INPUT_SCRIPT_LT 198
SetEnum INPUT_SCRIPT_RT 199
SetEnum INPUT_SCRIPT_LS 200
SetEnum INPUT_SCRIPT_RS 201
SetEnum INPUT_SCRIPT_PAD_UP 202
SetEnum INPUT_SCRIPT_PAD_DOWN 203
SetEnum INPUT_SCRIPT_PAD_LEFT 204
SetEnum INPUT_SCRIPT_PAD_RIGHT 205
SetEnum INPUT_SCRIPT_SELECT 206
SetEnum INPUT_ATTACK2 207
SetEnum INPUT_RAPPEL_JUMP 208
SetEnum INPUT_RAPPEL_LONG_JUMP 209
SetEnum INPUT_RAPPEL_SMASH_WINDOW 210
SetEnum INPUT_PREV_WEAPON 211
SetEnum INPUT_NEXT_WEAPON 212
SetEnum INPUT_MELEE_ATTACK1 213
SetEnum INPUT_MELEE_ATTACK2 214
SetEnum INPUT_WHISTLE 215
SetEnum INPUT_MOVE_LEFT 216
SetEnum INPUT_MOVE_RIGHT 217
SetEnum INPUT_MOVE_UP 218
SetEnum INPUT_MOVE_DOWN 219
SetEnum INPUT_LOOK_LEFT 220
SetEnum INPUT_LOOK_RIGHT 221
SetEnum INPUT_LOOK_UP 222
SetEnum INPUT_LOOK_DOWN 223
SetEnum INPUT_SNIPER_ZOOM_IN 224
SetEnum INPUT_SNIPER_ZOOM_OUT 225
SetEnum INPUT_SNIPER_ZOOM_IN_ALTERNATE 226
SetEnum INPUT_SNIPER_ZOOM_OUT_ALTERNATE 227
SetEnum INPUT_VEH_HANDBRAKE_ALT 228
SetEnum INPUT_VEH_MOVE_LEFT 229
SetEnum INPUT_VEH_MOVE_RIGHT 230
SetEnum INPUT_VEH_MOVE_UP 231
SetEnum INPUT_VEH_MOVE_DOWN 232
SetEnum INPUT_VEH_GUN_LEFT 233
SetEnum INPUT_VEH_GUN_RIGHT 234
SetEnum INPUT_VEH_GUN_UP 235
SetEnum INPUT_VEH_GUN_DOWN 236
SetEnum INPUT_VEH_LOOK_LEFT 237
SetEnum INPUT_VEH_LOOK_RIGHT 238
SetEnum INPUT_REPLAY_MARKER_DELETE 239
SetEnum INPUT_REPLAY_PAUSE 240
SetEnum INPUT_REPLAY_REWIND 241
SetEnum INPUT_REPLAY_FFWD 242
SetEnum INPUT_REPLAY_NEWMARKER 243
SetEnum INPUT_REPLAY_RECORD 244
SetEnum INPUT_REPLAY_SCREENSHOT 245
SetEnum INPUT_REPLAY_HIDEHUD 246
SetEnum INPUT_REPLAY_STARTPOINT 247
SetEnum INPUT_REPLAY_ENDPOINT 248
SetEnum INPUT_REPLAY_ADVANCE 249
SetEnum INPUT_REPLAY_BACK 250
SetEnum INPUT_REPLAY_TOOLS 251
SetEnum INPUT_REPLAY_RESTART 252
SetEnum INPUT_REPLAY_SHOWHOTKEY 253
SetEnum INPUT_REPLAY_CYCLEMARKERLEFT 254
SetEnum INPUT_REPLAY_CYCLEMARKERRIGHT 255
SetEnum INPUT_REPLAY_FOVINCREASE 256
SetEnum INPUT_REPLAY_FOVDECREASE 257
SetEnum INPUT_REPLAY_CAMERAUP 258
SetEnum INPUT_REPLAY_CAMERADOWN 259
SetEnum INPUT_REPLAY_SAVE 260
SetEnum INPUT_REPLAY_TOGGLETIME 261
SetEnum INPUT_REPLAY_TOGGLETIPS 262
SetEnum INPUT_REPLAY_PREVIEW 263
//<
//> bones
SetEnum SKEL_ROOT 0
SetEnum SKEL_Pelvis 11816
SetEnum SKEL_L_Thigh 58271
SetEnum SKEL_L_Calf 63931
SetEnum SKEL_L_Foot 14201
SetEnum SKEL_L_Toe0 2108
SetEnum IK_L_Foot 65245
SetEnum PH_L_Foot 57717
SetEnum MH_L_Knee 46078
SetEnum SKEL_R_Thigh 51826
SetEnum SKEL_R_Calf 36864
SetEnum SKEL_R_Foot 52301
SetEnum SKEL_R_Toe0 20781
SetEnum IK_R_Foot 35502
SetEnum PH_R_Foot 24806
SetEnum MH_R_Knee 16335
SetEnum RB_L_ThighRoll 23639
SetEnum RB_R_ThighRoll 6442
SetEnum SKEL_Spine_Root 57597
SetEnum SKEL_Spine0 23553
SetEnum SKEL_Spine1 24816
SetEnum SKEL_Spine2 24817
SetEnum SKEL_Spine3 24818
SetEnum SKEL_L_Clavicle 64729
SetEnum SKEL_L_UpperArm 45509
SetEnum SKEL_L_Forearm 61163
SetEnum SKEL_L_Hand 18905
SetEnum SKEL_L_Finger00 26610
SetEnum SKEL_L_Finger01 4089
SetEnum SKEL_L_Finger02 4090
SetEnum SKEL_L_Finger10 26611
SetEnum SKEL_L_Finger11 4169
SetEnum SKEL_L_Finger12 4170
SetEnum SKEL_L_Finger20 26612
SetEnum SKEL_L_Finger21 4185
SetEnum SKEL_L_Finger22 4186
SetEnum SKEL_L_Finger30 26613
SetEnum SKEL_L_Finger31 4137
SetEnum SKEL_L_Finger32 4138
SetEnum SKEL_L_Finger40 26614
SetEnum SKEL_L_Finger41 4153
SetEnum SKEL_L_Finger42 4154
SetEnum PH_L_Hand 60309
SetEnum IK_L_Hand 36029
SetEnum RB_L_ForeArmRoll 61007
SetEnum RB_L_ArmRoll 5232
SetEnum MH_L_Elbow 22711
SetEnum SKEL_R_Clavicle 10706
SetEnum SKEL_R_UpperArm 40269
SetEnum SKEL_R_Forearm 28252
SetEnum SKEL_R_Hand 57005
SetEnum SKEL_R_Finger00 58866
SetEnum SKEL_R_Finger01 64016
SetEnum SKEL_R_Finger02 64017
SetEnum SKEL_R_Finger10 58867
SetEnum SKEL_R_Finger11 64096
SetEnum SKEL_R_Finger12 64097
SetEnum SKEL_R_Finger20 58868
SetEnum SKEL_R_Finger21 64112
SetEnum SKEL_R_Finger22 64113
SetEnum SKEL_R_Finger30 58869
SetEnum SKEL_R_Finger31 64064
SetEnum SKEL_R_Finger32 64065
SetEnum SKEL_R_Finger40 58870
SetEnum SKEL_R_Finger41 64080
SetEnum SKEL_R_Finger42 64081
SetEnum PH_R_Hand 28422
SetEnum IK_R_Hand 6286
SetEnum RB_R_ForeArmRoll 43810
SetEnum RB_R_ArmRoll 37119
SetEnum MH_R_Elbow 2992
SetEnum SKEL_Neck_1 39317
SetEnum SKEL_Head 31086
SetEnum IK_Head 12844
SetEnum FACIAL_facialRoot 65068
SetEnum FB_L_Brow_Out_000 58331
SetEnum FB_L_Lid_Upper_000 45750
SetEnum FB_L_Eye_000 25260
SetEnum FB_L_CheekBone_000 21550
SetEnum FB_L_Lip_Corner_000 29868
SetEnum FB_R_Lid_Upper_000 43536
SetEnum FB_R_Eye_000 27474
SetEnum FB_R_CheekBone_000 19336
SetEnum FB_R_Brow_Out_000 1356
SetEnum FB_R_Lip_Corner_000 11174
SetEnum FB_Brow_Centre_000 37193
SetEnum FB_UpperLipRoot_000 20178
SetEnum FB_UpperLip_000 61839
SetEnum FB_L_Lip_Top_000 20279
SetEnum FB_R_Lip_Top_000 17719
SetEnum FB_Jaw_000 46240
SetEnum FB_LowerLipRoot_000 17188
SetEnum FB_LowerLip_000 20623
SetEnum FB_L_Lip_Bot_000 47419
SetEnum FB_R_Lip_Bot_000 49979
SetEnum FB_Tongue_000 47495
SetEnum RB_Neck_1 35731
SetEnum IK_Root 56604
//<
//> font
SetEnum Chalet-LondonNineteenSixty 0
SetEnum SignPainter-HouseScript 1
SetEnum RockstarTAG 2
SetEnum GTAVLeaderBoard 3
SetEnum ChaletComprime-CologneSixty 4
SetEnum Chalet-LondonNineteenSixtyNumb 5
SetEnum ChaletComprime-CologneSixty 6
SetEnum PricedownGTAVInt 7
//<
SetEnum true 1
SetEnum false 0
Function 0 10
nop//Push_0
nop//CallNative wait 1 0
nop
nop
nop
nop//Push_0
nop//JumpFalse @-4
nop//
nop//
PushB 18
Push_0
Push_0
CallNative network_set_this_script_is_network_script 3 0
GetStaticP1 40
Push_3
CallNative network_register_host_broadcast_variables 2 0
GetStaticP1 43
PushB 19
CallNative network_register_player_broadcast_variables 2 0
push_1
callnative reserve_network_mission_vehicles 1 0
callnative get_this_script_name 0 1
gethash
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_1
jumple @mainok
return 0 0
:mainok
call @null_all_statics
call @set_static_vars
pushstring "CommonMenu"
call @bool load_texture_dict(string texturedict)
drop
pushstring "mpleaderboard"
call @bool load_texture_dict(string texturedict)
drop
call @is_my_group_valid_if_not_create_one
CallNative player_id 0 1
CallNative get_player_group 1 1
Push_3
dup
SetStatic1 195//saved group formation
CallNative set_group_formation 2 0
CallNative player_id 0 1
CallNative get_player_group 1 1
PushF_1
dup
SetStatic1 196//saved group spacing
Push -1082130432
Push -1082130432
CallNative set_group_formation_spacing 4 0
:Reloop
push_1
jumpfalse @reloopnowait
Push_0
CallNative wait 1 0
:reloopnowait
callnative network_is_in_transition 0 1
not
jumpfalse @transition_skip
call @looped_options
:transition_skip
//> controls to open menu
Push_2
Push GetEnum("INPUT_SCRIPT_RB")
CallNative is_disabled_control_pressed 2 1
jumpfalse @continue_menu
Push_2
Push GetEnum("INPUT_FRONTEND_X")
CallNative set_input_exclusive 2 0
Push_0
Push GetEnum("INPUT_JUMP")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_X")
CallNative is_disabled_control_just_pressed 2 1
not
Jumpfalse @booltrue
//<
jump @continue_menu
//> nops
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
//<
:continue_menu
GetStatic1 3//check bool
JumpFalse @Reloop
call @disable_game_controls_this_frame
//> menu controls
Push_2
push GetEnum("INPUT_SCRIPT_PAD_UP")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_UP")
CallNative is_disabled_control_pressed 2 1
dup
GetStaticP1 78
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
Not
JumpFalse @goup
Push_2
push GetEnum("INPUT_SCRIPT_PAD_DOWN")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_DOWN")
CallNative is_disabled_control_pressed 2 1
dup
GetStaticP1 79
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
Not
JumpFalse @godown
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
Not
JumpFalse @menuexecute
Push_2
push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative is_disabled_control_just_pressed 2 1
Not
JumpFalse @back
Push_2
push GetEnum("INPUT_SCRIPT_PAD_RIGHT")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_RIGHT")
CallNative is_disabled_control_pressed 2 1
dup
GetStaticP1 91
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
not
JumpFalse @incrementselnumber
Push_2
push GetEnum("INPUT_SCRIPT_PAD_LEFT")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_LEFT")
CallNative is_disabled_control_pressed 2 1
dup
GetStaticP1 92
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
Not
jumpfalse @deincrementselnumber
//<
//> is_pause_menu_active
CallNative is_pause_menu_active 0 1
jumpfalse @startdraw
Push_0
SetStatic1 3
jump @Reloop
//<
//> menu drawing
:startdraw
call @start_drawing_relative_to_screen_right
//> draw backround and header
GetStatic1 93
PushF 0.115//x-position
fadd
//y-position
call @get_item_count_with_max_item_limiter
itof
PushF 1.0//header
fsub
PushF 0.025//item size
fmult
PushF 0.16//add half item to make menu look nice on the bottom
fadd//gets last items location
PushF 0.16//menu start index
fadd
PushF 2.0
fdiv//get median
PushF 0.25000//x size
//y size
call @get_item_count_with_max_item_limiter
itof
PushF 0.05
fmult
PushF 2.0
fdiv
PushF 0.08
fadd
GetStaticP1 240
Push_3//background r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_4//background g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_5//background b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 180
CallNative draw_rect 8 0
GetStatic1 93
PushF 0.115//x-position
fadd
PushF 0.1350//y
PushF 0.2500//w
PushF 0.0510//h
GetStaticP1 240
Push_3//background r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_4//background g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_5//background b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 120//a
CallNative draw_rect 8 0//header rect
GetStatic1 93
PushF 0.115//x-position
fadd
//y-position
call @get_item_count_with_max_item_limiter
itof
PushF 1.0//header
fsub
PushF 0.025//item size
fmult
pushf 0.205
fadd
PushF 0.25000//x size
PushF 0.012//y size
GetStaticP1 240
Push_3//background r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_4//background g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_5//background b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 120
CallNative draw_rect 8 0//footer rect
Push GetEnum("SignPainter-HouseScript")
PushF_1
PushF 0.62
Push_1
Push_0
Push_0
Push_0
GetStaticP1 240
PushB 12//header txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 13//header txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 14//header txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetStatic2 380//header
GetStatic1 93
PushF 0.115
fadd
PushF 0.1150000
GetStatic1 24
Pushb 17//gxt header bool
CallNative is_bit_set 2 1
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @dontdrawupdownarrows
pushstring "CommonMenu"
pushstring "shop_arrows_upanddown"
GetStatic1 93//x//0.75
PushF 0.23
fadd
PushF 0.1350000//y
pushstring "CommonMenu"
pushstring "shop_arrows_upanddown"
call @getsizefromtexture(txddict,txdname)
PushF_0//rot
GetStaticP1 240
PushB 12//header txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 13//header txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 14//header txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
callnative draw_sprite 11 0
:dontdrawupdownarrows
GetStatic1 27//load loop type
jumpfalse @dontdrawloading
pushstring "mpleaderboard"
pushstring "leaderboard_time_icon"
GetStatic1 93//x//0.76
PushF 0.004
fadd
PushF 0.134000//y
pushstring "mpleaderboard"
pushstring "leaderboard_time_icon"
call @getsizefromtexture(txddict,txdname)
GetStatic1 9//loadloop inc
mult1 12
itof
GetStaticP1 240
PushB 12//header txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 13//header txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 14//header txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
callnative draw_sprite 11 0
:dontdrawloading
//<
//if scroll menu has scroll menu sub on open sub set item count++ to 0
call @get_item_count++_start_index
SetStatic1 96//item count++
PushF 0.1600000
SetStatic1 95//base y ++
:drawloop
GetStatic1 96//item count++
call @get_item_count_with_max_item_limiter
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @noscrollfor++
GetStatic1 14//item count++ start index for scroll
add
:noscrollfor++
jumpeq @enddrawloop
GetStatic1 5//cursor
Push_1
sub
GetStatic1 96//item count++
jumpeq @drawselected
//> draw unselected item
GetStatic1 96//item count++
Push_0
call @update_player_in_playerlist(int inc,bool issel)
Push GetEnum("Chalet-LondonNineteenSixty")
PushF_1
PushF 0.45
Push_0
Push_0
Push_0
Push_0
GetStaticP1 240
Push_0//txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_1//txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_2//txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetStatic1 96//item count++
add1 1
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 93
GetStatic1 95//base y ++
GetStatic1 96//item count++
add1 1
call @bool get_is_gxt_text_from_menu_item(int item)
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
//<
//> is menu type number type
//add number
GetStatic1 96//item count++ starts 0
add1 1
GetStatic1 13//menu max item count
jumpgt @increment//if item count++ is drawing over 25 type = 0
GetStatic1 96//item count++ starts 0
add1 1
GetStaticP1 164//menu type
GetArray1 1
jumpfalse @increment
//<
//> draw unselected number
//> draw float branch
GetStatic1 96//item count++ starts 0
add1 1
GetStaticP1 164//menu type
GetArray1 1
Push_2
jumpeq @startdrawfloat
//<
//> parse unselected enum
GetStatic1 96//item count++ starts 0
add1 1
GetStaticP1 164//menu type
GetArray1 1
Push_3
jumpne @skp_parse_unselected_enum
GetStatic1 96//item count++ starts 0
GetStatic1 95//base y ++
Push_0
call @parse_enums(index,basey,issel)
jump @increment
:skp_parse_unselected_enum
//<
call @menu_set_up_unselected_num
GetStatic1 96//item count++
add1 1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets number
PushF_0//right justify no need for x
GetStatic1 95//base y ++
Call @display_number(int_number,float_x,float_y)
jump @increment
//<
//> draw float
:startdrawfloat
call @menu_set_up_unselected_num
jump @dfl
:startdrawfloatsel
pushstring "CommonMenu"
pushstring "arrowleft"
GetStatic1 93//x//0.75
PushF 0.224//text start pos
fadd
GetStatic1 96//item count++
add1 1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets number
Push GetEnum("Chalet-LondonNineteenSixty")
PushF 0.45
call @get_width_of_float(float num,int font,float scale)
fsub
PushF 0.003//arrow spacing
fsub
GetStatic1 95//base y ++
PushF 0.018
fadd
pushstring "CommonMenu"
pushstring "arrowleft"
call @getsizefromtexture(txddict,txdname)
PushF_0//rot
Push_0//r
Push_0//g
Push_0//b
PushB 255//a
callnative draw_sprite 11 0
call @menu_set_up_selected_num
:dfl
GetStatic1 96//item count++
add1 1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets number
GetStatic1 93
PushF 0.180
fadd
GetStatic1 95//base y ++
call @draw_float(float,x,y)
//<
//> increment
:increment
GetStatic1 96//item count++
add1 1
SetStatic1 96//item count++
GetStatic1 95//base y ++
PushF 0.025
fadd
SetStatic1 95//base y ++
jump @drawloop
//<
//> draw selected item
:drawselected
GetStatic1 93
PushF 0.115//x-position
fadd
GetStatic1 95//base y ++
PushF 0.02
fadd
PushF 0.25000//x size
PushF 0.024//y size
GetStaticP1 240
Push_6//scroll bar r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_7//scroll bar g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 8//scroll bar b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
CallNative draw_rect 8 0
GetStatic1 96//item count++
Push_1
call @update_player_in_playerlist(int inc,bool issel)
Push GetEnum("Chalet-LondonNineteenSixty")
PushF_1
PushF 0.45
Push_0
Push_0
Push_0
Push_0
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetStatic1 96//item count++
add1 1
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 93//x value for menu drawing
GetStatic1 95//base y ++
GetStatic1 96//item count++
add1 1
call @bool get_is_gxt_text_from_menu_item(int item)
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
//<
//> is menu type number type
//add number selected
GetStatic1 96//item count++ starts 0
add1 1
GetStatic1 13//menu max item count
jumpgt @increment//if item count++ is drawing over 25 type = 0
GetStatic1 96//item count++ starts 0
add1 1
GetStaticP1 164//menu type
GetArray1 1
jumpfalse @increment
//<
//> draw selected number
pushstring "CommonMenu"
pushstring "arrowright"
GetStatic1 93//x//0.75
PushF 0.227//pos of right arrow text start pos + 0.003
fadd
GetStatic1 95//base y ++
PushF 0.018
fadd
pushstring "CommonMenu"
pushstring "arrowright"
call @getsizefromtexture(txddict,txdname)
PushF_0//rot
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
callnative draw_sprite 11 0
//> draw float branch
GetStatic1 96//item count++ starts 0
add1 1
GetStaticP1 164//menu type
GetArray1 1
Push_2
jumpeq @startdrawfloatsel
//<
//> parse selected enum
GetStatic1 96//item count++ starts 0
add1 1
GetStaticP1 164//menu type
GetArray1 1
Push_3
jumpne @skp_parse_selected_enum
GetStatic1 96//item count++ starts 0
GetStatic1 95//base y ++
Push_1
call @parse_enums(index,basey,issel)
jump @increment
:skp_parse_selected_enum
//<
pushstring "CommonMenu"
pushstring "arrowleft"
GetStatic1 93//x//0.75
PushF 0.224//text start pos
fadd
GetStatic1 96//item count++
add1 1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets number
Push GetEnum("Chalet-LondonNineteenSixty")
PushF 0.45
call @get_width_of_number(int num,int font,float scale)
fsub
PushF 0.003//arrow spacing
fsub
GetStatic1 95//base y ++
PushF 0.018
fadd
pushstring "CommonMenu"
pushstring "arrowleft"
call @getsizefromtexture(txddict,txdname)
PushF_0//rot
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
callnative draw_sprite 11 0
call @menu_set_up_selected_num
GetStatic1 96//item count++
add1 1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets number
PushF_0//right justify no need for x
GetStatic1 95//base y ++
Call @display_number(int_number,float_x,float_y)
jump @increment
//<
:enddrawloop
CallNative _end_relative_draw 0 0
Jump @Reloop
//<
//> menu handling
:goup
Push_-1
PushString "NAV_UP_DOWN"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetStatic1 5//cursor index
Push_1
JumpEq @jmpdown
//> up scrolling
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @noscrollforup
GetStatic1 14//item count++ start index for scroll
Push_0//if has scrolled down
jumpeq @noscrollforup
GetStatic1 5//cursor index
GetStatic1 14//item count++ start index for scroll
add1 1
jumpne @noscrollforup
GetStatic1 14//item count++ start index for scroll
Push_1
sub
SetStatic1 14//item count++ start index for scroll
:noscrollforup
//<
GetStatic1 5//cursor index
Push_1
Sub
SetStatic1 5//cursor index
Jump @startdraw
:godown
Push_-1
PushString "NAV_UP_DOWN"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetStatic1 5//cursor index
GetStatic1 6//item count
JumpEq @jmpup
//> down scrolling
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @noscrollfordown
GetStatic1 5//cursor index
GetStatic1 13//menu max item count
jumplt @noscrollfordown
GetStatic1 5//cursor index
GetStatic1 14//item count++ start index for scroll
GetStatic1 13//menu max item count
add
jumpne @noscrollfordown
GetStatic1 5//cursor index
add1 1//account for inc after scroll check
GetStatic1 13//menu max item count
sub
SetStatic1 14//item count++ start index for scroll (item count++ starts 0 but cursor index is +1)
:noscrollfordown
//<
GetStatic1 5//cursor index
Add1 1
SetStatic1 5//cursor index
Jump @startdraw
:jmpup
Push_1
SetStatic1 5//cursor index
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @startdraw
Push_0
SetStatic1 14//item count++ start index for scroll (item count++ starts 0 but cursor index is +1)
Jump @startdraw
:jmpdown
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @noscrollforjdown
GetStatic1 6//item count
GetStatic1 13//menu max item count
sub
SetStatic1 14//item count++ start index for scroll
:noscrollforjdown
GetStatic1 6//item count
SetStatic1 5//cursor index
Jump @startdraw
//> number handling
:incrementselnumber
GetStatic1 5//cursor index
GetStatic1 13//menu max item count
jumpgt @startdraw
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
jumpfalse @startdraw
Push_-1
PushString "NAV_LEFT_RIGHT"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
Push_2
jumpeq @jumpfloat
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP1 110//array for drawing maxval
GetArray1 1//gets array
jumpeq @jumpleft
jump @conincnummm
:jumpfloat
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP1 110//array for drawing maxval
GetArray1 1//gets array
fcmpge
not
jumpfalse @jumpleft
:conincnummm
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
Push_1
cmpeq
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
Push_3
cmpeq
or
Push_1
jumpeq @incnum
GetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
fadd
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
call @checknumforexe
Jump @startdraw
:incnum
add1 1
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
call @checknumforexe
Jump @startdraw
:jumpleft
GetStatic1 5//cursor index
GetStaticP1 137//array for drawing minval
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
call @checknumforexe
Jump @startdraw
:deincrementselnumber
GetStatic1 5//cursor index
GetStatic1 13//menu max item count
jumpgt @startdraw
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
jumpfalse @startdraw
Push_-1
PushString "NAV_LEFT_RIGHT"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
Push_2
jumpeq @jumprfloat
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP1 137//array for drawing minval
GetArray1 1//gets array
jumpeq @jumpright
jump @condecnummm
:jumprfloat
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP1 137//array for drawing minval
GetArray1 1//gets array
fcmple
not
jumpfalse @jumpright
:condecnummm
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
Push_1
cmpeq
GetStatic1 5//cursor index
GetStaticP1 164//menu type
GetArray1 1
Push_3
cmpeq
or
Push_1
jumpeq @dncnum
GetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
fsub
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
call @checknumforexe
Jump @startdraw
:dncnum
Push_1
sub
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
call @checknumforexe
Jump @startdraw
:jumpright
GetStatic1 5//cursor index
GetStaticP1 110//array for drawing maxval
GetArray1 1//gets array
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
call @checknumforexe
Jump @startdraw
//<
:booltrue
Push_2
Push GetEnum("INPUT_FRONTEND_X")
CallNative set_input_exclusive 2 0
Push_0
Push GetEnum("INPUT_JUMP")
CallNative disable_control_action 2 0
GetStatic1 3
Not
JumpFalse @menu_shutdown
Push_1
SetStatic1 3//bool
Push_0
Call @updatemenutext(istoggle)
Jump @startdraw
:back
Push_-1
PushString "BACK"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetStatic1 7//menu level
jumpfalse @menu_shutdown
GetStatic1 7//menu level
Push_1
Sub
SetStatic1 7
GetStatic1 7//menu level
call @*level_to_last_sel
pget
SetStatic1 5//cursor index
GetStatic1 7//menu level
call @*level_to_last_start_index
pget
SetStatic1 14//item count++ start index for scroll (item count++ starts 0 but cursor index is +1)
Push_1
Call @updatemenutext(istoggle)
Jump @startdraw
:menu_shutdown
Push_0
SetStatic1 3
PushB 30
SetStatic1 70
Push_1
CallNative set_cinematic_button_active 1 0
Jump @Reloop
:menuexecute
Push_-1
PushString "SELECT"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
Push_0
Push_0
call @execute(isrightexe,jumptype)
Jump @startdraw
//<
Return 0 0
:updatemenutext(istoggle)
Function 1 6
Push_1
SetStatic1 11//index for array drawing menu text++
GetFrame1 0
not
jumpfalse @istoggle
Push_1
SetStatic1 5//cursor index
Push_0
SetStatic1 14//item count++ start index for scroll
:istoggle
//> menu level
GetStatic1 7//menu level
Switch [0 @menulevel0]:[1 @menulevel1]:[2 @menulevel2]:[3 @menulevel3]:[4 @menulevel4]:[5 @menulevel5]:[6 @menulevel6]:[7 @menulevel7]:[8 @menulevel8]
call @menuerror
Return 1 0//endupdate
//<
//> drawing mainmenu
:menulevel0
PushB 8
SetStatic1 6//item count
PushString "Main Menu (1.27)"
SetStatic2 380//header
PushString "Player Options"
call @add_item(string item)
PushString "Vehicle Options"
call @add_item(string item)
PushString "Weapon Options"
call @add_item(string item)
PushString "Weather Options"
call @add_item(string item)
PushString "Teleport Options"
call @add_item(string item)
PushString "Object Options"
call @add_item(string item)
PushString "Misc Options"
call @add_item(string item)
PushString "Plugins"
call @add_item(string item)
Return 1 0//endupdate
//<
//> drawing menu level 1
//> menu drawing level1 handling
:menulevel1
GetStatic1 4//last selected of item level zero
Switch [1 @lastselectedatzero1]:[2 @lastselectedatzero2]:[3 @lastselectedatzero3]:[4 @lastselectedatzero4]:[5 @lastselectedatzero5]:[6 @lastselectedatzero6]:[7 @lastselectedatzero7]:[8 @lastselectedatzero8]
call @menuerror
Return 1 0//endupdate
//<
//> drawing player options
:lastselectedatzero1
PushB 20
SetStatic1 6//item count
PushString "Player Options"
SetStatic2 380//header
PushString "Online Players"
call @add_item(string item)
PushString "All Online Players"
call @add_item(string item)
PushString "Model Changer"
call @add_item(string item)
PushString "Animations"
call @add_item(string item)
PushString "Scenarios"
call @add_item(string item)
PushString "Stat Manager"
call @add_item(string item)
PushString "Bodyguards"
call @add_item(string item)
PushString "God Mode On"
PushString "God Mode Off"
GetStatic1 20
Push_0//godmode bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Never Wanted On"
PushString "Never Wanted Off"
GetStatic1 20
Push_3//never wanted bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Super Run On"
PushString "Super Run Off"
GetStatic1 20
Push_1//superrun bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Fast Run On"
PushString "Fast Run Off"
GetStatic1 20
PushB 8//fast run bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Invisibility On"
PushString "Invisibility Off"
GetStatic1 20
Push_2//invis bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Forcefield On"
PushString "Forcefield Off"
GetStatic1 20
Push_4//forcefield bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Super Jump On"
PushString "Super Jump Off"
GetStatic1 20
Push_5//super jump bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Superman On"
PushString "Superman Off"
GetStatic1 20
Push_6//superman
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Unlimited Ability On"
PushString "Unlimited Ability Off"
GetStatic1 20
Push_7//unlimited ability
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "First Person On"
PushString "First Person Off"
GetStatic1 20
PushB 9//First Person
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Give Health, Armor & Wash Ped"
call @add_item(string item)
PushString "Set Wanted Level"
push_5
Push_0
CallNative player_id 0 1
callnative get_player_wanted_level 1 1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Dev T-Shirts"
Push_3
Push_1
Push_1
PushB 8//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Return 1 0//endupdate
//<
//> drawing vehicle options
:lastselectedatzero2
PushB 12
SetStatic1 6//item count
PushString "Vehicle Options"
SetStatic2 380//header
pushstring "Garage"
call @add_item(string item)
PushString "Car Color Changer On"
PushString "Car Color Changer Off"
GetStatic1 21
Push_0//car color bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Fix & Wash Vehicle"
call @add_item(string item)
PushString "Cars Stick to Ground On"
PushString "Cars Stick to Ground Off"
GetStatic1 21
Push_1//cars stick to ground bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Vehicle Helper On"
PushString "Vehicle Helper Off"
GetStatic1 21
Push_2//vehicle helper bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Set Car Visibility"
call @add_item(string item)
PushString "Need for Speed On"
PushString "Need for Speed Off"
GetStatic1 21
Push_3//nfs bool
CallNative is_bit_set 2 1
Push_2
Push_1
GetStatic1 71//num for need for speed ground/air
Push_2
Push_1
call @add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Lock/Unlock Car Doors"
call @add_item(string item)
PushString "Drive on Water On"
PushString "Drive on Water Off"
GetStatic1 21
Push_4//drive on water bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Draw Speed On"
PushString "Draw Speed Off"
GetStatic1 21
Push_6//mph/kmh bool
CallNative is_bit_set 2 1
Push_2
Push_1
GetStatic1 30//num for draw speed mph/kmh
Push_3
Push_1
call @add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Set Bonnet Cams To First Person"
call @add_item(string item)
PushString "Set Vehicle Rpm Multiplier"
call @add_item(string item)
Return 1 0//endupdate
//<
//> drawing weapon options
:lastselectedatzero3
PushB 12
SetStatic1 6//item count
PushString "Weapon Options"
SetStatic2 380//header
PushString "One Shot One Kill On"
PushString "One Shot One Kill Off"
GetStatic1 22
Push_1//onehitonekill bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Unlimited Ammo On"
PushString "Unlimited Ammo Off"
GetStatic1 22
Push_2//unlimited ammo bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Projectile Gun On"
PushString "Projectile Gun Off"
GetStatic1 22
Push_0//rocket gun bool
CallNative is_bit_set 2 1
PushB 13
Push_1
GetStatic1 74
Push_6//enum
Push_1
call @add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Explosive Bullets On"
PushString "Explosive Bullets Off"
GetStatic1 22
Push_3//Explosive Bullets bool
CallNative is_bit_set 2 1
PushB 38
Push_0
GetStatic1 76
Push_7//enum
Push_1
call @add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Give All Weapons"
call @add_item(string item)
PushString "Give All Dlc Weapons"
call @add_item(string item)
PushString "Remove All Weapons"
call @add_item(string item)
PushString "Give Briefcase"
call @add_item(string item)
PushString "Give Briefcase 2"
call @add_item(string item)
PushString "Give Digi Scanner"
call @add_item(string item)
PushString "Give Garbage Bag"
call @add_item(string item)
PushString "Give Handcuffs"
call @add_item(string item)
Return 1 0//endupdate
//<
//> drawing Weather Options
:lastselectedatzero4
PushF 0.1
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
PushB 18
SetStatic1 6//item count
PushString "Weather Options"
SetStatic2 380//header
PushString "Advance Time"
call @add_item(string item)
PushString "Time Scale"
PushF_1
PushF 0.1
PushF_1
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Gravity Level"
Push_3
Push_0
Push_0
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Disable Fog On"//346 no_fog_alpha
PushString "Disable Fog Off"
callnative get_timecycle_modifier_index 0 1
pushs 346//this can change in updates
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Extra Sunny"
call @add_item(string item)
PushString "Clear"
call @add_item(string item)
PushString "Clouds"
call @add_item(string item)
PushString "Smog"
call @add_item(string item)
PushString "Foggy"
call @add_item(string item)
PushString "Overcast"
call @add_item(string item)
PushString "Rain"
call @add_item(string item)
PushString "Thunder"
call @add_item(string item)
PushString "Clearing"
call @add_item(string item)
PushString "Neutral"
call @add_item(string item)
PushString "Snow"
call @add_item(string item)
PushString "Blizzard"
call @add_item(string item)
PushString "Light Snow"
call @add_item(string item)
PushString "Christmas On"
PushString "Christmas Off"
GetGlobalP3 262145
GetImm2 4715//TURN_SNOW_ON_OFF/-1146554960
call @add_toggle(string itemon,string itemoff,bool item)
Return 1 0//endupdate
//<
//> drawing Teleport Options
:lastselectedatzero5
PushB 21
SetStatic1 6//item count
PushString "Teleport Options"
SetStatic2 380//header
PushString "Teleport Forward"
call @add_item(string item)
PushString "Teleport Into Nearest Car"
call @add_item(string item)
PushString "Teleport Into Last Car"
call @add_item(string item)
PushString "Teleport to Waypoint"
call @add_item(string item)
PushString "Teleport Out of Car"
call @add_item(string item)
PushString "Airport"
call @add_item(string item)
PushString "Trevor's Airfield"
call @add_item(string item)
PushString "Fort Zancudo"
call @add_item(string item)
PushString "Mount Chiliad"
call @add_item(string item)
PushString "Maze Bank"
call @add_item(string item)
PushString "Del Perro Pier"
call @add_item(string item)
PushString "Vinewood Sign"
call @add_item(string item)
PushString "Beeker's Garage"
call @add_item(string item)
PushString "400k/500k Apartment"
call @add_item(string item)
PushString "Mors Mutual Insurance"
call @add_item(string item)
PushString "Impound Lot"
call @add_item(string item)
PushString "Inside 10 Car Garage"
call @add_item(string item)
PushString "Inside FIB Building"
call @add_item(string item)
PushString "North Yankton"
call @add_item(string item)
PushString "Humane Research Lab Level 1"
call @add_item(string item)
PushString "Humane Research Lab Level 2"
call @add_item(string item)
Return 1 0//endupdate
//<
//> drawing object options
:lastselectedatzero6
PushB 15
SetStatic1 6//item count
PushString "Object Options"
SetStatic2 380//header
PushString "Move Last Object"
call @add_item(string item)
PushString "Object Attachment Menu"
call @add_item(string item)
pushstring "Forge Pickup On"
pushstring "Forge Pickup Off"
GetStatic1 23
Push_0//forge mode
CallNative is_bit_set 2 1
PushB 100
Push_1
GetStatic1 75//forge range
call @add_toggle_autonumber(string itemon,string itemoff,bool item,int maxval,int minval,int startindex)
PushString "Map Mods"
call @add_item(string item)
PushString "Input Model"
call @add_item(string item)
PushString "Ufo"
call @add_item(string item)
PushString "Asteroid"
call @add_item(string item)
PushString "Ferris Wheel"
call @add_item(string item)
PushString "Alien Egg"
call @add_item(string item)
PushString "White Block"
call @add_item(string item)
PushString "Big Block"
call @add_item(string item)
PushString "Windmill"
call @add_item(string item)
PushString "Test Ped"
call @add_item(string item)
PushString "Mp Ramp"
Push_3
Push_1
Push_1
Push_4//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Christmas Tree"
Push_2
Push_1
Push_1
Push_5//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Return 1 0//endupdate
//<
//> drawing misc options
:lastselectedatzero7
PushB 18
SetStatic1 6//item count
PushString "Misc Options"
SetStatic2 380//header
PushString "Item Placement Lists"
call @add_item(string item)
PushString "Draw Tool"
call @add_item(string item)
PushString "Change Menu Color"
call @add_item(string item)
PushString "Timecycles"
call @add_item(string item)
PushString "Mobile Radio"
call @add_item(string item)
PushString "Display Coords On"
PushString "Display Coords Off"
GetStatic1 24
Push_2//xyzh bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Off Radar On"
PushString "Off Radar Off"
GetStatic1 24
Push_0//off radar bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Thermal Vision On"
PushString "Thermal Vision Off"
GetStatic1 24
Push_6//thermal vision bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Night Vision On"
PushString "Night Vision Off"
GetStatic1 24
PushB 15//night vision bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Fly Mod On"
PushString "Fly Mod Off"
GetStatic1 24
Push_3//flymod bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Draw Fps On"
PushString "Draw Fps Off"
GetStatic1 24
Push_5//fps bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Disable Traffic On"
PushString "Disable Traffic Off"
GetStatic1 24
PushB 16//Disable Traffic
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Draw Global Value"
call @add_item(string item)
PushString "Set Global Value"
call @add_item(string item)
PushString "Launch Random Firework"
call @add_item(string item)
PushString "Enable All Dlc"
call @add_item(string item)
PushString "Delete Closest Cars"
call @add_item(string item)
PushString "Terminate Script"
call @add_item(string item)
Return 1 0//endupdate
//<
//> drawing plugins
:lastselectedatzero8
PushB 10
SetStatic1 6//item count
PushString "Plugins"
SetStatic2 380//header
PushString "Plug-in 1 On"
PushString "Plug-in 1 Off"
push GetHash("1plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 2 On"
PushString "Plug-in 2 Off"
push GetHash("2plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 3 On"
PushString "Plug-in 3 Off"
push GetHash("3plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 4 On"
PushString "Plug-in 4 Off"
push GetHash("4plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 5 On"
PushString "Plug-in 5 Off"
push GetHash("5plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 6 On"
PushString "Plug-in 6 Off"
push GetHash("6plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 7 On"
PushString "Plug-in 7 Off"
push GetHash("7plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 8 On"
PushString "Plug-in 8 Off"
push GetHash("8plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 9 On"
PushString "Plug-in 9 Off"
push GetHash("9plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Plug-in 10 On"
PushString "Plug-in 10 Off"
push GetHash("10plugin")
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
call @add_toggle(string itemon,string itemoff,bool item)
Return 1 0//endupdate
//<
//<
//> drawing menu level 2
//> menu drawing level2 handling
:menulevel2
GetStatic1 4//last selected of item level zero
Switch [1 @last_sel_1_at_zero_menulevel2]:[2 @last_sel_2_at_zero_menulevel2]:[6 @last_sel_6_at_zero_menulevel2]:[7 @last_sel_7_at_zero_menulevel2]:[8 @last_sel_8_at_zero_menulevel2]
call @menuerror
Return 1 0//endupdate
:last_sel_1_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @draw_onlineplayeroptions]:[2 @draw_allonlineplayers]:[3 @draw_model_changer]:[4 @draw_animations_self]:[5 @draw_scenarios]:[6 @draw_stat_manager]:[7 @draw_bodyguards]
call @menuerror
Return 1 0//endupdate
:last_sel_2_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @last_sel_at_zero2_one1]
call @menuerror
Return 1 0//endupdate
:last_sel_6_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @draw_moveobj]:[2 @draw_attachobj]:[4 @draw_mapmodobj]
call @menuerror
Return 1 0//endupdate
:last_sel_7_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @draw_ipls]:[2 @draw_drawtool]:[3 @draw_changemenucolor]:[4 @draw_timecycles]:[5 @draw_mobile_radio]
call @menuerror
Return 1 0//endupdate
:last_sel_8_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @draw_handlingdata]:[2 @draw_vehicle_weapon_data]
call @menuerror
Return 1 0//endupdate
//<
//> online player list
:endupdateonplayerlist
Return 1 0//endupdate
:draw_onlineplayeroptions
PushB 18
SetStatic1 6//item count
PushString "Online Players"
SetStatic2 380//header
Push_0
SetStatic1 100
:playerdrawloop
GetStatic1 100
PushB 17
jumpgt @endupdateonplayerlist
GetStatic1 100
PushB 15
jumpgt @addinvalitcstvfirst
GetStatic1 100
CallNative get_player_name 1 1
dup
pushstring "**Invalid**"
CallNative are_strings_equal 2 1
jumpfalse @validplayerforadd
drop
pushstring "**Empty**"
:validplayerforadd
call @add_item(string item)
:scvtaddedfirst
GetStatic1 100
add1 1
SetStatic1 100
jump @playerdrawloop
:addinvalitcstvfirst
GetStatic1 100
CallNative get_player_name 1 1
dup
pushstring "**Invalid**"
CallNative are_strings_equal 2 1
jumpfalse @someoneintvslotfirst
drop
pushstring "**Empty** (SCTV Slot)"
:someoneintvslotfirst
call @add_item(string item)
jump @scvtaddedfirst
//<
//> all online players
:draw_allonlineplayers
PushString "All Online Players"
SetStatic2 380//header
jump @drawinglabelforallplayers
//<
//> model changer
:draw_model_changer
PushB 13
SetStatic1 6//item count
PushString "Model Changer"
SetStatic2 380//header
PushString "Component Changer"
call @add_item(string item)
:reusemodellist
PushString "Input Model"
call @add_item(string item)
PushString "Favorites"
call @add_item(string item)
PushString "Ambent"
call @add_item(string item)
PushString "Cutscene Beta"
call @add_item(string item)
PushString "Cutscene"
call @add_item(string item)
PushString "Gang"
call @add_item(string item)
PushString "Heist Characters"
call @add_item(string item)
PushString "In Game"
call @add_item(string item)
PushString "Multiplayer"
call @add_item(string item)
PushString "Singleplayer"
call @add_item(string item)
PushString "Special"
call @add_item(string item)
PushString "Unique"
call @add_item(string item)
Return 1 0//endupdate
//<
//> animations
:draw_animations_self
PushB 15
SetStatic1 6//item count
PushString "Animations"
SetStatic2 380//header
pushstring "Change Movement Group"
call @add_item(string item)
PushString "Stop Playing Animation"
call @add_item(string item)
PushString "Input Animation"
call @add_item(string item)
PushString "Stripper Dances"
Push_5
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Animal Animations"
PushB 17
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Mime"
PushB 9
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Tap Danceing"
Push_4
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Wave"
Push_5
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Misc Dances"
Push_3
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Workouts"
Push_3
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Sex Animations"
PushB 8
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Sitting Animations"
PushB 10
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Flexing"
Push_2
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Lay Down"
Push_3
Push_1
Push_1
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Cheer"
call @add_item(string item)
Return 1 0//endupdate
//<
//> scenarios
:draw_scenarios
PushB 33
SetStatic1 6//item count
PushString "Scenarios"
SetStatic2 380//header
pushstring "Stop Playing Scenario"
call @add_item(string item)
pushstring "Bench Press"
call @add_item(string item)
pushstring "Bench Press 2"
call @add_item(string item)
pushstring "Coffee"
call @add_item(string item)
pushstring "Smoke"
call @add_item(string item)
pushstring "Binoculars"
call @add_item(string item)
pushstring "Bum Freeway Sign"
call @add_item(string item)
pushstring "Park Attendant Wand"
call @add_item(string item)
pushstring "Clipboard"
call @add_item(string item)
pushstring "Drill"
call @add_item(string item)
pushstring "Drinking"
call @add_item(string item)
pushstring "Drug Dealer"
call @add_item(string item)
pushstring "Leaf Blower"
call @add_item(string item)
pushstring "Gardener"
call @add_item(string item)
pushstring "Golf Player"
call @add_item(string item)
pushstring "Hammering"
call @add_item(string item)
pushstring "Janitor"
call @add_item(string item)
pushstring "Selfie"
call @add_item(string item)
pushstring "Free Weights"
call @add_item(string item)
pushstring "Musician"
call @add_item(string item)
pushstring "Paparazzi"
call @add_item(string item)
pushstring "Partying"
call @add_item(string item)
pushstring "Prostitute"
call @add_item(string item)
pushstring "Security Flashlight"
call @add_item(string item)
pushstring "Smoking"
call @add_item(string item)
pushstring "Smoking Pot"
call @add_item(string item)
pushstring "Fishing"
call @add_item(string item)
pushstring "Phone"
call @add_item(string item)
pushstring "Tennis Player"
call @add_item(string item)
pushstring "Tourist Map"
call @add_item(string item)
pushstring "Tourist Phone"
call @add_item(string item)
pushstring "Welding"
call @add_item(string item)
pushstring "BBQ"
call @add_item(string item)
Return 1 0//endupdate
//<
//> Stat Manager
:draw_stat_manager
call @get_player_number
pushstring "PLAYER_MENTAL_STATE"
call @string strcat(string source,string toadd)
GetHash
GetStaticP1 100
Push_-1
callnative stat_get_float 3 1
not
jumpfalse @constatmgr
PushF_0
SetStatic1 100
:constatmgr
PushB 14
SetStatic1 6//item count
PushString "Stat Manager"
SetStatic2 380//header
//add input get/set stat
PushString "Input Stat To Draw"
Push_3
Push_1
Push_1
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Input Stat To Set"
Push_3
Push_1
Push_1
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Add Saved Cash"
call @add_item(string item)
PushString "Add Temp Cash"
call @add_item(string item)
PushString "Input Rank"
call @add_item(string item)
PushString "Player Mental State"
PushB 100
Push_0
GetStatic1 100
ftoi
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Set K/D Ratio"//k/d ratio * base kills = kills : kills / k/d ratio = deaths
call @add_item(string item)
PushString "Skip Mp Tutorial"
call @add_item(string item)
PushString "Clear Cheat & Badsport Record"
call @add_item(string item)
PushString "Enable Character Transfer"
call @add_item(string item)
PushString "Set Unlimited Ammo"
call @add_item(string item)
PushString "Max Out Consumables"
call @add_item(string item)
PushString "Unlock All"
call @add_item(string item)
PushString "Force Save Stats"
call @add_item(string item)
Return 1 0//endupdate
//<
//> Bodyguards
:draw_bodyguards
Push_0
SetStatic1 197//saved bodyguard index
PushB 13
SetStatic1 6//item count
PushString "Bodyguards"
SetStatic2 380//header
PushString "Bodyguard Options"
call @add_item(string item)
Jump @reusemodellist
//<
//> garage
:last_sel_at_zero2_one1
//garage
Pushb 10
SetStatic1 6//item count
PushString "Garage"
SetStatic2 380//header
PushString "Vehicle Spawner"
call @add_item(string item)
PushString "Color & Tint"
call @add_item(string item)
PushString "Vehicle Body Modifications"
call @add_item(string item)
PushString "Performance Upgrades"
call @add_item(string item)
PushString "Handling Data"
call @add_item(string item)
PushString "Vehicle Weapon Data"
call @add_item(string item)
PushString "Change Vehicle Type"
call @add_item(string item)
PushString "Vehicle Extras"
call @add_item(string item)
PushString "Vehicle Doors"
call @add_item(string item)
PushString "Funny Cars"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw move object
:draw_moveobj
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errordrawobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errordrawobj
GetStatic1 87//saved object
Push_1
CallNative get_entity_coords 2 3
Push_3
GetStaticP1 100
FromStack
GetStatic1 87//saved object
Push_2
CallNative get_entity_rotation 2 3
Push_3
GetStaticP1 103
FromStack
jump @startmoveobjdraw
:errordrawobj
PushF_0
SetStatic1 100
PushF_0
SetStatic1 101
PushF_0
SetStatic1 102
PushF_0
SetStatic1 103
PushF_0
SetStatic1 104
PushF_0
SetStatic1 105
:startmoveobjdraw
PushB 10
SetStatic1 6//item count
pushstring "Move Spawned Object"
SetStatic2 380//header
PushString "Precision Level"
Push_4
Push_0
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "X Coord"
PushF 5000.0
PushF -5000.0
GetStatic1 100
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Y Coord"
PushF 9000.0
PushF -5000.0
GetStatic1 101
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Z Coord"
PushF 9000.0
PushF -1000.0
GetStatic1 102
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Pitch"
PushF 180.0
PushF -180.0
GetStatic1 103
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Roll"
PushF 180.0
PushF -180.0
GetStatic1 104
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Yaw"
PushF 180.0
PushF -180.0
GetStatic1 105
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Delete Object"
call @add_item(string item)
PushString "Copy Object"
call @add_item(string item)
PushString "Snap Object To Ground"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw attach object
:draw_attachobj
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errordrawobjattach
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errordrawobjattach
GetStatic1 87//saved object
CallNative is_entity_attached 1 1
jumpfalse @errordrawobjattach
PushF 500.0
SetStatic1 100
PushF -500.0
SetStatic1 101
PushF 180.0
SetStatic1 102
PushF -180.0
SetStatic1 103
jump @startattachobjdraw
:errordrawobjattach
PushF_0
SetStatic1 100
PushF_0
SetStatic1 101
PushF_0
SetStatic1 102
PushF_0
SetStatic1 103
PushF_0
SetStatic1 104
PushF_0
SetStatic1 105
PushF_0
SetStatic2 296
PushF_0
SetStatic2 297
PushF_0
SetStatic2 298
PushF_0
SetStatic2 299
PushF_0
SetStatic2 300
PushF_0
SetStatic2 301
:startattachobjdraw
PushB 12
SetStatic1 6//item count
pushstring "Object Attachment Menu"
SetStatic2 380//header
PushString "Attach Object to Current Situation"
call @add_item(string item)
PushString "Specify Bone"
call @add_item(string item)
PushString "Precision Level"
Push_4
Push_0
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "X Coord"
GetStatic1 100
GetStatic1 101
GetStatic2 296
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Y Coord"
GetStatic1 100
GetStatic1 101
GetStatic2 297
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Z Coord"
GetStatic1 100
GetStatic1 101
GetStatic2 298
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Pitch"
GetStatic1 102
GetStatic1 103
GetStatic2 299
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Roll"
GetStatic1 102
GetStatic1 103
GetStatic2 300
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Yaw"
GetStatic1 102
GetStatic1 103
GetStatic2 301
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Copy Object"
call @add_item(string item)
PushString "Detach Object"
call @add_item(string item)
PushString "Delete Object"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw map mods
:draw_mapmodobj
Push_1
SetStatic1 6//item count
pushstring "Map Mods"
SetStatic2 380//header
PushString "Windmill in 10 Car Garage"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw ipls
:draw_ipls
Push_4
SetStatic1 6//item count
PushString "Item Placement Lists"
SetStatic2 380//header
PushString "North Yankton"
call @add_item(string item)
PushString "Aircraft Carrier"
call @add_item(string item)
PushString "Yacht"
call @add_item(string item)
PushString "O'Neils Farm House"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw draw tool
:draw_drawtool
Push_3
SetStatic1 6//item count
PushString "Draw Tool"
SetStatic2 380//header
PushString "Draw Text"
call @add_item(string item)
PushString "Draw Box"
call @add_item(string item)
PushString "Draw Sprite"
call @add_item(string item)
//draw_scaleform_movie
Return 1 0//endupdate
//<
//> draw_changemenucolor
:draw_changemenucolor
Push_7
SetStatic1 6//item count
PushString "Change Menu Color"
SetStatic2 380//header
PushString "Header Text Color"
call @add_item(string item)
PushString "Text Color"
call @add_item(string item)
PushString "Background Color"
call @add_item(string item)
PushString "Scroll Bar Color"
call @add_item(string item)
PushString "Selected Text Color"
call @add_item(string item)
PushString "Info Text Color"
call @add_item(string item)
PushString "Reset Menu Color"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_timecycles
:draw_timecycles
Push_7
SetStatic1 6//item count
PushString "Timecycles"
SetStatic2 380//header
PushString "Default"
call @add_item(string item)
PushString "A - G"
call @add_item(string item)
PushString "H - I"
call @add_item(string item)
PushString "I - M"
call @add_item(string item)
PushString "N - R"
call @add_item(string item)
PushString "S - U"
call @add_item(string item)
PushString "V - Z"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_mobile_radio
:draw_mobile_radio
Push_3
SetStatic1 6//item count
PushString "Mobile Radio"
SetStatic2 380//header
PushString "Mobile Radio On"
PushString "Mobile Radio Off"
GetStatic1 24
Push_1//mobile radio
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Skip Current Song"
call @add_item(string item)
PushString "Song Selector"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_handlingdata
:draw_handlingdata
PushString "Handling Data"
SetStatic2 380//header
jump @reuse_draw_vehspawner
//<
//> draw_vehicle_weapon_data
:draw_vehicle_weapon_data
PushB 13
SetStatic1 6//item count
PushString "Vehicle Weapon Data"
SetStatic2 380//header
pushstring "Rhino"
call @add_item(string item)
pushstring "Polmav"
call @add_item(string item)
pushstring "Firetruk"
call @add_item(string item)
pushstring "Lazer"
call @add_item(string item)
pushstring "Buzzard"
call @add_item(string item)
pushstring "Annihilator"
call @add_item(string item)
pushstring "Frogger"
call @add_item(string item)
pushstring "Maverick"
call @add_item(string item)
pushstring "Hydra"
call @add_item(string item)
pushstring "Insurgent"
call @add_item(string item)
pushstring "Savage"
call @add_item(string item)
pushstring "Technical"
call @add_item(string item)
pushstring "Valkyrie"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> drawing menu level 3
:menulevel3
GetStatic1 4//last selected of item level zero
Switch [1 @last_sel_1_at_zero_menulevel3]:[2 @last_sel_2_at_zero_menulevel3]:[7 @last_sel_7_at_zero_menulevel3]
call @menuerror
Return 1 0//endupdate
//> player options submenus menulevel3
:last_sel_1_at_zero_menulevel3
GetStatic1 2//last selected of item level one
Switch [1 @draw_onlineplayersel]:[2 @draw_allplayerssel]:[3 @draw_modelchangersel]:[4 @draw_animationssel]:[7 @draw_bodyguardsel]
call @menuerror
Return 1 0//endupdate
:draw_onlineplayersel
GetStatic1 12//temp last sel item
Switch [1 @draw_online_player_main]//if online player wes pressed
call @menuerror
Return 1 0//endupdate
:draw_allplayerssel
Push_0
SetStatic1 10//reset player id for toggles in all players options Note:loop bitset to true on all players for toggles
GetStatic1 1//last selected of item level two
Switch [1 @all_player_reuse_label_p]:[2 @all_player_reuse_label_w]:[3 @all_player_reuse_label_v]:[4 @all_player_reuse_label_t]:[5 @all_player_reuse_label_a]
call @menuerror
Return 1 0//endupdate
:draw_modelchangersel
GetStatic1 1//last selected of item level two
Switch [1 @draw_componentchanger]
:reusemodellistsel1
GetStatic1 1//last selected of item level two
switch [3 @draw_favorites_in_modelchanger]:[4 @draw_ambent_in_modelchanger]:[5 @draw_csb_in_modelchanger]:[6 @draw_cutscene_in_modelchanger]:[7 @draw_gang_in_modelchanger]:[8 @draw_hc_in_modelchanger]:[9 @draw_ig_in_modelchanger]:[10 @draw_mp_in_modelchanger]:[11 @draw_sp_in_modelchanger]:[12 @draw_special_in_modelchanger]:[13 @draw_unique_in_modelchanger]
call @menuerror
Return 1 0//endupdate
:draw_animationssel
GetStatic1 1//last selected of item level two
Switch [1 @draw_movement_group]//if movement group wes pressed
call @menuerror
Return 1 0//endupdate
:draw_bodyguardsel
GetStatic1 1//last selected of item level two
Switch [1 @draw_bodyguardoptions]
Jump @reusemodellistsel1
//<
//> vehicle options submenus menulevel3
:last_sel_2_at_zero_menulevel3
GetStatic1 2//last selected of item level one
Switch [1 @draw_garagesel]//if garage was pressed
call @menuerror
Return 1 0//endupdate
:draw_garagesel
GetStatic1 1//last selected of item level two
Switch [1 @draw_vehspawner]:[2 @draw_paint]:[3 @draw_vehmods]:[4 @draw_vehPerformance]:[5 @draw_handling_data]:[6 @draw_veh_weap_data]:[7 @draw_change_veh_type]:[8 @draw_vehextras]:[9 @draw_vehicledoors]:[10 @draw_funnycars]//if paint wes pressed
call @menuerror
Return 1 0//endupdate
//<
//> misc options submenus menulevel3
:last_sel_7_at_zero_menulevel3
GetStatic1 2//last selected of item level one
Switch [2 @draw_drawtool_sel]:[4 @draw_timecycles_sel]:[5 @draw_songselector_sel]
call @menuerror
Return 1 0//endupdate
:draw_drawtool_sel
GetStatic1 1//last selected of item level two
Switch [1 @draw_drawtool_text]:[2 @draw_drawtool_box]:[3 @draw_drawtool_sprite]
call @menuerror
Return 1 0//endupdate
:draw_timecycles_sel
GetStatic1 1//last selected of item level two
Switch [2 @timecycle_A-G]:[3 @timecycle_H-I]:[4 @timecycle_I-M]:[5 @timecycle_N-R]:[6 @timecycle_S-U]:[7 @timecycle_V-Z]
call @menuerror
Return 1 0//endupdate
:draw_songselector_sel
GetStatic1 1//last selected of item level two
Switch [3 @draw_songselector]
call @menuerror
Return 1 0//endupdate
//<
//> draw_online_player_main
:draw_online_player_main
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
:drawinglabelforallplayers
Push_5
SetStatic1 6//item count
PushString "Player Options"
call @add_item(string item)
PushString "Weapon Options"
call @add_item(string item)
PushString "Vehicle Options"
call @add_item(string item)
pushstring "Teleport Options"
call @add_item(string item)
pushstring "Attachable Objects"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_componentchanger
:draw_componentchanger
pushstring "Component Changer"
SetStatic2 380//header
PushString "Random Components"
call @add_item(string item)
PushString "Random Props"
call @add_item(string item)
PushString "Clear Props"
call @add_item(string item)
Push_0
SetStatic1 105
PushString "Hats"
call @add_ped_prop
PushString "Glasses"
call @add_ped_prop
PushString "Ear Pieces"
call @add_ped_prop
PushString "unk_prop3"
call @add_ped_prop
PushString "unk_prop4"
call @add_ped_prop
PushString "unk_prop5"
call @add_ped_prop
PushString "Watches"
call @add_ped_prop
PushString "Wristbands"
call @add_ped_prop
PushString "unk_prop8"
call @add_ped_prop
PushString "unk_prop9"
call @add_ped_prop
Push_0
SetStatic1 105
PushString "Face"
call @add_ped_component
PushString "Head"
call @add_ped_component
PushString "Hair"
call @add_ped_component
PushString "Torso"
call @add_ped_component
PushString "Legs"
call @add_ped_component
PushString "Hands"
call @add_ped_component
PushString "Shoes"
call @add_ped_component
PushString "Special 1"
call @add_ped_component
PushString "Special 2"
call @add_ped_component
PushString "Special 3"
call @add_ped_component
PushString "Textures"
call @add_ped_component
PushString "Torso 2"
call @add_ped_component
GetStatic1 11
Push_1
sub
SetStatic1 6//item count
Return 1 0//endupdate
//<
//> full model changer lvl 1
//> draw_favorites_in_modelchanger
:draw_favorites_in_modelchanger
PushB 37
SetStatic1 6//item count
pushstring "Favorites"
SetStatic2 380//header
PushString "Animals"
call @add_item(string item)
PushString "Topless Girl"
call @add_item(string item)
PushString "Yeti"
call @add_item(string item)
PushString "Jesus"
call @add_item(string item)
PushString "Zombie"
call @add_item(string item)
PushString "Space Ranger"
call @add_item(string item)
PushString "Naked Guy"
call @add_item(string item)
PushString "Astronaut"
call @add_item(string item)
PushString "Alien"
call @add_item(string item)
PushString "Assassin"
call @add_item(string item)
PushString "Swat"
call @add_item(string item)
PushString "Gay Guy"
call @add_item(string item)
PushString "Human Statue"
call @add_item(string item)
PushString "Mime"
call @add_item(string item)
PushString "Buff Dude"
call @add_item(string item)
PushString "Impotent Rage"
call @add_item(string item)
PushString "Pogo"
call @add_item(string item)
PushString "Chocolate Muscle"
call @add_item(string item)
PushString "Clown"
call @add_item(string item)
PushString "Fat Girl in a Bikini"
call @add_item(string item)
PushString "Merica"
call @add_item(string item)
PushString "Mani The Mexican"
call @add_item(string item)
PushString "George W"
call @add_item(string item)
PushString "Justin"
call @add_item(string item)
PushString "Poppy Mitchell"
call @add_item(string item)
PushString "Yakuza Gang Member"
call @add_item(string item)
PushString "Motocross"
call @add_item(string item)
PushString "Slenderman"
call @add_item(string item)
PushString "Messed Up Wade"
call @add_item(string item)
PushString "Marine"
call @add_item(string item)
PushString "Niko"
call @add_item(string item)
PushString "Claude"
call @add_item(string item)
PushString "Misty"
call @add_item(string item)
PushString "John Marston"
call @add_item(string item)
PushString "Break Dancer"
call @add_item(string item)
PushString "Black Ops"
call @add_item(string item)
PushString "Hipster"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_ambent_in_modelchanger
:draw_ambent_in_modelchanger
Push_3
SetStatic1 6//item count
pushstring "Ambent"
SetStatic2 380//header
PushString "Creatures"
call @add_item(string item)
:reuse_female_and_male
PushString "Female"
call @add_item(string item)
PushString "Male"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_csb_in_modelchanger
:draw_csb_in_modelchanger
PushB 49
SetStatic1 6//item count
pushstring "Cutscene Beta"
SetStatic2 380//header
pushstring "Abigail"
call @add_item(string item)
pushstring "Anita"
call @add_item(string item)
pushstring "Anton"
call @add_item(string item)
pushstring "BallasOG"
call @add_item(string item)
pushstring "Bride"
call @add_item(string item)
pushstring "BurgerDrug"
call @add_item(string item)
pushstring "Car3guy1"
call @add_item(string item)
pushstring "Car3guy2"
call @add_item(string item)
pushstring "Chef"
call @add_item(string item)
pushstring "Chin_goon"
call @add_item(string item)
pushstring "Cletus"
call @add_item(string item)
pushstring "Cop"
call @add_item(string item)
pushstring "Customer"
call @add_item(string item)
pushstring "Denise_friend"
call @add_item(string item)
pushstring "FOS_rep"
call @add_item(string item)
pushstring "G"
call @add_item(string item)
pushstring "Groom"
call @add_item(string item)
pushstring "Grove_str_dlr"
call @add_item(string item)
pushstring "Hao"
call @add_item(string item)
pushstring "Hugh"
call @add_item(string item)
pushstring "Imran"
call @add_item(string item)
pushstring "Janitor"
call @add_item(string item)
pushstring "Maude"
call @add_item(string item)
pushstring "MWeather"
call @add_item(string item)
pushstring "Ortega"
call @add_item(string item)
pushstring "Oscar"
call @add_item(string item)
pushstring "PornDudes"
call @add_item(string item)
pushstring "PrologueDriver"
call @add_item(string item)
pushstring "ProlSec"
call @add_item(string item)
pushstring "Ramp_gang"
call @add_item(string item)
pushstring "Ramp_hic"
call @add_item(string item)
pushstring "Ramp_hipster"
call @add_item(string item)
pushstring "Ramp_marine"
call @add_item(string item)
pushstring "Ramp_mex"
call @add_item(string item)
pushstring "Reporter"
call @add_item(string item)
pushstring "RoccoPelosi"
call @add_item(string item)
pushstring "Screen_Writer"
call @add_item(string item)
pushstring "Stripper_01"
call @add_item(string item)
pushstring "Stripper_02"
call @add_item(string item)
pushstring "Tonya"
call @add_item(string item)
pushstring "TrafficWarden"
call @add_item(string item)
pushstring "Agent"
call @add_item(string item)
pushstring "Chef2"
call @add_item(string item)
pushstring "Money"
call @add_item(string item)
pushstring "MP_Agent14"
call @add_item(string item)
pushstring "Paige"
call @add_item(string item)
pushstring "Popov"
call @add_item(string item)
pushstring "Rashcosvki"
call @add_item(string item)
pushstring "Undercover"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_cutscene_in_modelchanger
:draw_cutscene_in_modelchanger
PushB 79
SetStatic1 6//item count
pushstring "Cutscene"
SetStatic2 380//header
pushstring "AmandaTownley"
call @add_item(string item)
pushstring "Andreas"
call @add_item(string item)
pushstring "ashley"
call @add_item(string item)
pushstring "Bankman"
call @add_item(string item)
pushstring "Barry"
call @add_item(string item)
pushstring "Beverly"
call @add_item(string item)
pushstring "Brad"
call @add_item(string item)
pushstring "BradCadaver"
call @add_item(string item)
pushstring "Carbuyer"
call @add_item(string item)
pushstring "Casey"
call @add_item(string item)
pushstring "ChengSr"
call @add_item(string item)
pushstring "ChrisFormage"
call @add_item(string item)
pushstring "Clay"
call @add_item(string item)
pushstring "Dale"
call @add_item(string item)
pushstring "DaveNorton"
call @add_item(string item)
pushstring "debra"
call @add_item(string item)
pushstring "denise"
call @add_item(string item)
pushstring "Devin"
call @add_item(string item)
pushstring "Dom"
call @add_item(string item)
pushstring "Dreyfuss"
call @add_item(string item)
pushstring "DrFriedlander"
call @add_item(string item)
pushstring "Fabien"
call @add_item(string item)
pushstring "FBISuit_01"
call @add_item(string item)
pushstring "Floyd"
call @add_item(string item)
pushstring "Guadalope"
call @add_item(string item)
pushstring "gurk"
call @add_item(string item)
pushstring "Hunter"
call @add_item(string item)
pushstring "Janet"
call @add_item(string item)
pushstring "JewelAss"
call @add_item(string item)
pushstring "JimmyBoston"
call @add_item(string item)
pushstring "JimmyDiSanto"
call @add_item(string item)
pushstring "JoeMinuteMan"
call @add_item(string item)
pushstring "JohnnyKlebitz"
call @add_item(string item)
pushstring "Josef"
call @add_item(string item)
pushstring "Josh"
call @add_item(string item)
pushstring "LamarDavis"
call @add_item(string item)
pushstring "Lazlow"
call @add_item(string item)
pushstring "LesterCrest"
call @add_item(string item)
pushstring "LifeInvad_01"
call @add_item(string item)
pushstring "Magenta"
call @add_item(string item)
pushstring "Manuel"
call @add_item(string item)
pushstring "Marnie"
call @add_item(string item)
pushstring "MartinMadrazo"
call @add_item(string item)
pushstring "MaryAnn"
call @add_item(string item)
pushstring "Michelle"
call @add_item(string item)
pushstring "Milton"
call @add_item(string item)
pushstring "Molly"
call @add_item(string item)
pushstring "MovPremF_01"
call @add_item(string item)
pushstring "MovPremMale"
call @add_item(string item)
pushstring "MRK"
call @add_item(string item)
pushstring "MrsPhillips"
call @add_item(string item)
pushstring "MRS_Thornhill"
call @add_item(string item)
pushstring "Natalia"
call @add_item(string item)
pushstring "NervousRon"
call @add_item(string item)
pushstring "Nigel"
call @add_item(string item)
pushstring "Old_Man1A"
call @add_item(string item)
pushstring "Old_Man2"
call @add_item(string item)
pushstring "Omega"
call @add_item(string item)
pushstring "Orleans"
call @add_item(string item)
pushstring "Paper"
call @add_item(string item)
pushstring "Patricia"
call @add_item(string item)
pushstring "Priest"
call @add_item(string item)
pushstring "ProlSec_02"
call @add_item(string item)
pushstring "RussianDrunk"
call @add_item(string item)
pushstring "SiemonYetarian"
call @add_item(string item)
pushstring "Solomon"
call @add_item(string item)
pushstring "SteveHains"
call @add_item(string item)
pushstring "Stretch"
call @add_item(string item)
pushstring "Tanisha"
call @add_item(string item)
pushstring "TaoCheng"
call @add_item(string item)
pushstring "TaosTranslator"
call @add_item(string item)
pushstring "TennisCoach"
call @add_item(string item)
pushstring "Terry"
call @add_item(string item)
pushstring "Tom"
call @add_item(string item)
pushstring "TomEpsilon"
call @add_item(string item)
pushstring "TracyDiSanto"
call @add_item(string item)
pushstring "Wade"
call @add_item(string item)
pushstring "Zimbor"
call @add_item(string item)
pushstring "Karen_Daniels"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_gang_in_modelchanger
:draw_gang_in_modelchanger
Push_2
SetStatic1 6//item count
pushstring "Gang"
SetStatic2 380//header
Jump @reuse_female_and_male
//<
//> draw_hc_in_modelchanger
:draw_hc_in_modelchanger
Push_3
SetStatic1 6//item count
pushstring "Heist Characters"
SetStatic2 380//header
pushstring "Driver"
call @add_item(string item)
pushstring "Gunman"
call @add_item(string item)
pushstring "Hacker"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_ig_in_modelchanger
:draw_ig_in_modelchanger
PushB 104
SetStatic1 6//item count
pushstring "In Game"
SetStatic2 380//header
pushstring "Abigail"
call @add_item(string item)
pushstring "AmandaTownley"
call @add_item(string item)
pushstring "Andreas"
call @add_item(string item)
pushstring "Ashley"
call @add_item(string item)
pushstring "BallasOG"
call @add_item(string item)
pushstring "Bankman"
call @add_item(string item)
pushstring "Barry"
call @add_item(string item)
pushstring "BestMen"
call @add_item(string item)
pushstring "Beverly"
call @add_item(string item)
pushstring "Brad"
call @add_item(string item)
pushstring "Bride"
call @add_item(string item)
pushstring "Car3guy1"
call @add_item(string item)
pushstring "Car3guy2"
call @add_item(string item)
pushstring "Casey"
call @add_item(string item)
pushstring "Chef"
call @add_item(string item)
pushstring "ChengSr"
call @add_item(string item)
pushstring "ChrisFormage"
call @add_item(string item)
pushstring "Clay"
call @add_item(string item)
pushstring "ClayPain"
call @add_item(string item)
pushstring "Cletus"
call @add_item(string item)
pushstring "Dale"
call @add_item(string item)
pushstring "DaveNorton"
call @add_item(string item)
pushstring "Denise"
call @add_item(string item)
pushstring "Devin"
call @add_item(string item)
pushstring "Dom"
call @add_item(string item)
pushstring "Dreyfuss"
call @add_item(string item)
pushstring "DrFriedlander"
call @add_item(string item)
pushstring "Fabien"
call @add_item(string item)
pushstring "FBISuit_01"
call @add_item(string item)
pushstring "Floyd"
call @add_item(string item)
pushstring "Groom"
call @add_item(string item)
pushstring "Hao"
call @add_item(string item)
pushstring "Hunter"
call @add_item(string item)
pushstring "Janet"
call @add_item(string item)
pushstring "JAY_Norris"
call @add_item(string item)
pushstring "JewelAss"
call @add_item(string item)
pushstring "JimmyBoston"
call @add_item(string item)
pushstring "JimmyDiSanto"
call @add_item(string item)
pushstring "JoeMinuteMan"
call @add_item(string item)
pushstring "JohnnyKlebitz"
call @add_item(string item)
pushstring "Josef"
call @add_item(string item)
pushstring "Josh"
call @add_item(string item)
pushstring "KerryMcIntosh"
call @add_item(string item)
pushstring "LamarDavis"
call @add_item(string item)
pushstring "Lazlow"
call @add_item(string item)
pushstring "LesterCrest"
call @add_item(string item)
pushstring "LifeInvad_01"
call @add_item(string item)
pushstring "LifeInvad_02"
call @add_item(string item)
pushstring "Magenta"
call @add_item(string item)
pushstring "Manuel"
call @add_item(string item)
pushstring "Marnie"
call @add_item(string item)
pushstring "MaryAnn"
call @add_item(string item)
pushstring "Maude"
call @add_item(string item)
pushstring "Michelle"
call @add_item(string item)
pushstring "Milton"
call @add_item(string item)
pushstring "Molly"
call @add_item(string item)
pushstring "MRK"
call @add_item(string item)
pushstring "MrsPhillips"
call @add_item(string item)
pushstring "MRS_Thornhill"
call @add_item(string item)
pushstring "Natalia"
call @add_item(string item)
pushstring "NervousRon"
call @add_item(string item)
pushstring "Nigel"
call @add_item(string item)
pushstring "Old_Man1A"
call @add_item(string item)
pushstring "Old_Man2"
call @add_item(string item)
pushstring "Omega"
call @add_item(string item)
pushstring "ONeil"
call @add_item(string item)
pushstring "Orleans"
call @add_item(string item)
pushstring "Ortega"
call @add_item(string item)
pushstring "Paper"
call @add_item(string item)
pushstring "Patricia"
call @add_item(string item)
pushstring "Priest"
call @add_item(string item)
pushstring "ProlSec_02"
call @add_item(string item)
pushstring "Ramp_Gang"
call @add_item(string item)
pushstring "Ramp_Hic"
call @add_item(string item)
pushstring "Ramp_Hipster"
call @add_item(string item)
pushstring "Ramp_Mex"
call @add_item(string item)
pushstring "RoccoPelosi"
call @add_item(string item)
pushstring "RussianDrunk"
call @add_item(string item)
pushstring "Screen_Writer"
call @add_item(string item)
pushstring "SiemonYetarian"
call @add_item(string item)
pushstring "Solomon"
call @add_item(string item)
pushstring "SteveHains"
call @add_item(string item)
pushstring "Stretch"
call @add_item(string item)
pushstring "Talina"
call @add_item(string item)
pushstring "Tanisha"
call @add_item(string item)
pushstring "TaoCheng"
call @add_item(string item)
pushstring "TaosTranslator"
call @add_item(string item)
pushstring "TennisCoach"
call @add_item(string item)
pushstring "Terry"
call @add_item(string item)
pushstring "TomEpsilon"
call @add_item(string item)
pushstring "Tonya"
call @add_item(string item)
pushstring "TracyDiSanto"
call @add_item(string item)
pushstring "TrafficWarden"
call @add_item(string item)
pushstring "TylerDix"
call @add_item(string item)
pushstring "Wade"
call @add_item(string item)
pushstring "Zimbor"
call @add_item(string item)
pushstring "Agent"
call @add_item(string item)
pushstring "Chef2"
call @add_item(string item)
pushstring "Karen_Daniels"
call @add_item(string item)
pushstring "Money"
call @add_item(string item)
pushstring "MP_Agent14"
call @add_item(string item)
pushstring "Paige"
call @add_item(string item)
pushstring "Popov"
call @add_item(string item)
pushstring "Rashcosvki"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_mp_in_modelchanger
:draw_mp_in_modelchanger
Push_4
SetStatic1 6//item count
pushstring "Multiplayer"
SetStatic2 380//header
PushString "Gang"
call @add_item(string item)
PushString "Female"
call @add_item(string item)
PushString "Male"
call @add_item(string item)
PushString "Special"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_sp_in_modelchanger
:draw_sp_in_modelchanger
Push_3
SetStatic1 6//item count
pushstring "Singleplayer"
SetStatic2 380//header
PushString "Michael"//player_zero
call @add_item(string item)
PushString "Franklin"//player_one
call @add_item(string item)
PushString "Trevor"//player_two
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_special_in_modelchanger
:draw_special_in_modelchanger
Push_2
SetStatic1 6//item count
pushstring "Special"
SetStatic2 380//header
Jump @reuse_female_and_male
//<
//> draw_unique_in_modelchanger
:draw_unique_in_modelchanger
Push_2
SetStatic1 6//item count
pushstring "Unique"
SetStatic2 380//header
Jump @reuse_female_and_male
//<
//<
//> draw_movement_group
:draw_movement_group
PushB 14
SetStatic1 6//item count
pushstring "Change Movement Group"
SetStatic2 380//header
PushString "Default"
call @add_item(string item)
pushstring "Input Movement Group"
call @add_item(string item)
PushString "Generic Male"
call @add_item(string item)
PushString "Generic Female"
call @add_item(string item)
PushString "Injured"
call @add_item(string item)
pushstring "Mary Ann"
call @add_item(string item)
pushstring "Drunk"
call @add_item(string item)
pushstring "Gangster"
call @add_item(string item)
pushstring "Shrek"
call @add_item(string item)
pushstring "Hipster"
call @add_item(string item)
pushstring "Fat"
call @add_item(string item)
pushstring "Old Man"
call @add_item(string item)
pushstring "Holding a Baby"
call @add_item(string item)
pushstring "Hobo"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_bodyguardoptions
:draw_bodyguardoptions
call @is_my_group_valid_if_not_create_one
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStaticP1 100//leaders?
GetStaticP1 101//members?
CallNative get_group_size 3 0
PushB 14
SetStatic1 6//item count
PushString "Bodyguard Options"
SetStatic2 380//header
PushF 0.1
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
PushString "Bodyguard Index"
GetStatic1 101
Push_0
GetStatic1 197//saved bodyguard index
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Group Formation"
Push_4
Push_0
GetStatic1 195//saved group formation
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Group Spacing"
PushF_5
PushF_0
GetStatic1 196//saved group spacing
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Randomize Components"
call @add_item(string item)
PushString "Randomize Props"
call @add_item(string item)
PushString "Remove All Weapons"
call @add_item(string item)
PushString "Give Primary"
call @add_item(string item)
PushString "Give Secondary"
call @add_item(string item)
PushString "Give Other"
call @add_item(string item)
PushString "Disband"
call @add_item(string item)
PushString "Delete"
call @add_item(string item)
PushString "Teleport All To You"
call @add_item(string item)
PushString "Disband All"
call @add_item(string item)
PushString "Delete All"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_vehspawner
:draw_vehspawner
pushstring "Vehicle Spawner"
SetStatic2 380//header
:reuse_draw_vehspawner
PushB 23
SetStatic1 6//item count
PushString "Sports"
call @add_item(string item)
PushString "Super"
call @add_item(string item)
PushString "Coupes"
call @add_item(string item)
PushString "Compacts"
call @add_item(string item)
PushString "Sedans"
call @add_item(string item)
PushString "Sports Classics"
call @add_item(string item)
PushString "Muscle"
call @add_item(string item)
PushString "SUVs"
call @add_item(string item)
PushString "Vans"
call @add_item(string item)
PushString "Off-Road"
call @add_item(string item)
PushString "Commercial"
call @add_item(string item)
PushString "Service"
call @add_item(string item)
PushString "Utility"
call @add_item(string item)
PushString "Industrial"
call @add_item(string item)
PushString "Emergency"
call @add_item(string item)
PushString "Military"
call @add_item(string item)
PushString "Motorcycles"
call @add_item(string item)
PushString "Cycles"
call @add_item(string item)
PushString "Planes"
call @add_item(string item)
PushString "Helicopters"
call @add_item(string item)
PushString "Boats"
call @add_item(string item)
PushString "Trailers"
call @add_item(string item)
PushString "Trains"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_paint
:draw_paint
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @nolivery
GetStatic1 100
CallNative get_vehicle_livery_count 1 1
dup
Push_1
sub
SetStatic1 101
Push_0
JumpLE @nolivery
GetStatic1 100
CallNative get_vehicle_livery 1 1
SetStatic1 102
jump @hasvehhandleforcolor
:nolivery
Push_0
SetStatic1 101
Push_0
SetStatic1 102
:hasvehhandleforcolor
PushB 10
SetStatic1 6//item count
pushstring "Color & Tint"
SetStatic2 380//header
PushString "Custom Primary Color"
call @add_item(string item)
PushString "Custom Secondary Color"
call @add_item(string item)
PushString "Custom Tyre Smoke Color"
call @add_item(string item)
pushstring "Set Primary Color"
call @add_item(string item)
pushstring "Set Secondary Color"
call @add_item(string item)
pushstring "Set Pearlescent Color"
call @add_item(string item)
pushstring "Set Wheel Color"
call @add_item(string item)
PushString "Set Tyre Smoke Color"
call @add_item(string item)
pushstring "Set Window Tint"
call @add_item(string item)
pushstring "Set Livery"
GetStatic1 101
Push_0
GetStatic1 102
call @add_autonumber(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
//<
//> draw_vehmods
:draw_vehmods
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @nohandleforvehmods
GetStatic1 100
CallNative get_vehicle_number_plate_text_index 1 1
SetStatic1 101
GetStatic1 100
CallNative get_vehicle_wheel_type 1 1
SetStatic1 102
GetStatic1 100
PushB 23
CallNative get_vehicle_mod_variation 2 1
SetStatic1 103
GetStatic1 100
callnative get_entity_model 1 1
callnative is_this_model_a_bike 1 1
SetStatic1 104
jump @hashandleforvehmods
:nohandleforvehmods
Push_0
SetStatic1 101
Push_0
SetStatic1 102
Push_0
SetStatic1 103
Push_0
SetStatic1 104
:hashandleforvehmods
pushstring "Vehicle Body Modifications"
SetStatic2 380//header
pushstring "Input Licence Plate Text"
call @add_item(string item)
pushstring "Licence Plate Textures"
Push_5
Push_0
GetStatic1 101
PushB 10//enum
Push_1
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Spoilers"//0
call @add_veh_mod
PushString "Front Bumpers"
call @add_veh_mod
PushString "Rear Bumpers"
call @add_veh_mod
pushstring "Side Skirts"
call @add_veh_mod
pushstring "Exhausts"
call @add_veh_mod
pushstring "Frames"
call @add_veh_mod
pushstring "Grilles"
call @add_veh_mod
pushstring "Hoods"
call @add_veh_mod
pushstring "Fenders"
call @add_veh_mod
pushstring "Right Fender"//body
call @add_veh_mod
pushstring "Roof"//11
call @add_veh_mod
GetStatic1 100
PushB 14//horns
CallNative get_num_vehicle_mods 2 1
Push_0
jumpeq @nohorns
pushstring "Horns"//14
GetStatic1 100
PushB 14//horns
CallNative get_num_vehicle_mods 2 1
Push_0//minval
GetStatic1 100
PushB 14//horns
CallNative get_vehicle_mod 2 1
add1 1//0 = remove
PushB 14//enum
Push_1
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
:nohorns
pushstring "Unknown 17 On"//---------//17
pushstring "Unknown 17 Off"
call @add_veh_toggle
pushstring "Unknown 19 On"
pushstring "Unknown 19 Off"
call @add_veh_toggle//toggle
pushstring "Custom Tyre Smoke On"
pushstring "Custom Tyre Smoke Off"
call @add_veh_toggle
pushstring "Unknown 21 On"
pushstring "Unknown 21 Off"
call @add_veh_toggle
pushstring "Xenon Headlights On"
pushstring "Xenon Headlights Off"
call @add_veh_toggle
pushstring "Custom Tyres On"
pushstring "Custom Tyres Off"
GetStatic1 103
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Wheel Type"
Push_7
Push_0
GetStatic1 102
PushB 9//enum
Push_1
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
GetStatic1 104
jumpfalse @notabikeforwheels
pushstring "Front Rims"
jump @isabikeforwheels
:notabikeforwheels
Pushstring "Rims"
:isabikeforwheels
call @add_veh_mod
pushstring "Rear Rims"
call @add_veh_mod
GetStatic1 11
Push_1
sub
SetStatic1 6//item count
Return 1 0//endupdate
//<
//> draw_vehPerformance
:draw_vehPerformance
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @nohandlefortyres
GetStatic1 100
CallNative get_vehicle_tyres_can_burst 1 1
not
SetStatic1 101
jump @hashandlefortyres
:nohandlefortyres
Push_0
SetStatic1 101
:hashandlefortyres
pushstring "Performance Upgrades"
SetStatic2 380//header
pushstring "Bulletproof Tyres On"
pushstring "Bulletproof Tyres Off"
GetStatic1 101
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Turbo On"
pushstring "Turbo Off"
call @add_veh_toggle
pushstring "Engine"//12
call @add_veh_mod
pushstring "Brakes"//13
call @add_veh_mod
pushstring "Transmission"//14
call @add_veh_mod
pushstring "Suspension"//16
call @add_veh_mod
pushstring "Armor"//17
call @add_veh_mod
GetStatic1 11
Push_1
sub
SetStatic1 6//item count
Return 1 0//endupdate
//<
//> draw handling data
:draw_handling_data
pushstring "Handling Data"
SetStatic2 380//header
push_3
SetStatic1 6//item count
PushString "Individual Handling Data"
call @add_item(string item)
PushString "Reset All Handling Lines"
call @add_item(string item)
PushString "Set All Handling Lines To Realistic"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw vehicle weapon data
:draw_veh_weap_data
PushB 13
SetStatic1 6//item count
PushString "Vehicle Weapon Data"
SetStatic2 380//header
pushstring "Rhino"
call @add_item(string item)
pushstring "Polmav"
call @add_item(string item)
pushstring "Firetruk"
call @add_item(string item)
pushstring "Lazer"
call @add_item(string item)
pushstring "Buzzard"
call @add_item(string item)
pushstring "Annihilator"
call @add_item(string item)
pushstring "Frogger"
call @add_item(string item)
pushstring "Maverick"
call @add_item(string item)
pushstring "Hydra"
call @add_item(string item)
pushstring "Insurgent"
call @add_item(string item)
pushstring "Savage"
call @add_item(string item)
pushstring "Technical"
call @add_item(string item)
pushstring "Valkyrie"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw change vehicle type
:draw_change_veh_type
PushString "Change Vehicle Type"
SetStatic2 380//header
jump @reuse_draw_vehspawner
Return 1 0//endupdate
//<
//> draw vehextras
:draw_vehextras
pushstring "Vehicle Extras"
SetStatic2 380//header
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
Push_1
SetStatic1 101
:nextextra
GetStatic1 101
PushB 10
jumpge @endvehiclextras
GetStatic1 100
GetStatic1 101
CallNative does_extra_exist 2 1
jumpfalse @incvehextra
GetStatic1 101//valid extra
GetStatic1 11//inc for valid extra
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
pushstring "Extra On"
pushstring "Extra Off"
GetStatic1 100
GetStatic1 101
CallNative is_vehicle_extra_turned_on 2 1
call @add_toggle(string itemon,string itemoff,bool item)
:incvehextra
GetStatic1 101
add1 1
SetStatic1 101
jump @nextextra
:endvehiclextras
GetStatic1 11
Push_1
sub
SetStatic1 6//item count
Return 1 0//endupdate
//<
//> draw_vehicledoors
:draw_vehicledoors
PushB 2
SetStatic1 6//item count
pushstring "Vehicle Doors"
SetStatic2 380//header
PushString "Open/Close"
Push_5
Push_0
Push_0
Push_1//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Remove"
Push_5
Push_0
Push_0
Push_1//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Return 1 0//endupdate
//<
//> draw_funnycars
:draw_funnycars
PushB 10
SetStatic1 6//item count
pushstring "Funny Cars"
SetStatic2 380//header
PushString "Rideable Animals"
call @add_item(string item)
PushString "Ufo"
call @add_item(string item)
PushString "Prologue Plane"
call @add_item(string item)
PushString "Cable Car"
call @add_item(string item)
PushString "Long Metro Train"
call @add_item(string item)
PushString "Tug Boat"
Push_2
Push_1
Push_1
PushB 13//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Return 1 0//endupdate
//<
//> draw_drawtool_text
:draw_drawtool_text
PushB 16
SetStatic1 6//item count
pushstring "Draw Text"
SetStatic2 380//header
pushstring "Draw Text On"
pushstring "Draw Text Off"
GetStatic1 24
PushB 8//draw text
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Precision Level"
Push_4
Push_0
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Set Display Text"
call @add_item(string item)
PushString "X Coord"
PushF_1
PushF_0
GetStatic1 198
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Y Coord"
PushF_1
PushF_0
GetStatic1 199
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Scale"
PushF 10
PushF_0
GetStatic1 200
call @add_autofloat(string item,float maxval,float minval,float startindex)
pushstring "Font"
Push_7
Push_0
GetStatic1 201
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Red"
PushB 255
Push_0
GetStaticP1 202//draw text rgba
Push_0
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Green"
PushB 255
Push_0
GetStaticP1 202//draw text rgba
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Blue"
PushB 255
Push_0
GetStaticP1 202//draw text rgba
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Alpha"
PushB 255
Push_0
GetStaticP1 202//draw text rgba
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Drop Shadow On"
pushstring "Drop Shadow Off"
GetStatic1 24
PushB 9//draw drop shadow_2
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Outline On"
pushstring "Outline Off"
GetStatic1 24
PushB 10//draw outline
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Center On"
pushstring "Center Off"
GetStatic1 24
PushB 11//draw center
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Right Justify On"
pushstring "Right Justify Off"
GetStatic1 24
PushB 12//draw right justify
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Reset Text"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_drawtool_box
:draw_drawtool_box
PushB 11
SetStatic1 6//item count
pushstring "Draw Box"
SetStatic2 380//header
pushstring "Draw Box On"
pushstring "Draw Box Off"
GetStatic1 24
PushB 13
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Precision Level"
Push_4
Push_0
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "X Coord"
PushF_1
PushF_0
GetStatic1 213
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Y Coord"
PushF_1
PushF_0
GetStatic1 214
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Width"
PushF_1
PushF_0
GetStatic1 215
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Height"
PushF_1
PushF_0
GetStatic1 216
call @add_autofloat(string item,float maxval,float minval,float startindex)
pushstring "Red"
PushB 255
Push_0
GetStaticP1 217//draw box rgba
Push_0
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Green"
PushB 255
Push_0
GetStaticP1 217//draw box rgba
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Blue"
PushB 255
Push_0
GetStaticP1 217//draw box rgba
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Alpha"
PushB 255
Push_0
GetStaticP1 217//draw box rgba
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Reset Box"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_drawtool_sprite
:draw_drawtool_sprite
PushB 15
SetStatic1 6//item count
pushstring "Draw Sprite"
SetStatic2 380//header
pushstring "Draw Sprite On"
pushstring "Draw Sprite Off"
GetStatic1 24
PushB 14//draw sprite
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Precision Level"
Push_4
Push_0
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Load Sprite Directory"
call @add_item(string item)
PushString "Set Sprite Name"
call @add_item(string item)
PushString "X Coord"
PushF_1
PushF_0
GetStatic1 218
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Y Coord"
PushF_1
PushF_0
GetStatic1 219
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Width"
PushF_1
PushF_0
GetStatic1 220
call @add_autofloat(string item,float maxval,float minval,float startindex)
PushString "Height"
PushF_1
PushF_0
GetStatic1 221
call @add_autofloat(string item,float maxval,float minval,float startindex)
pushstring "Rotation"
PushF 180.0000
PushF -180.0000
GetStatic1 222
call @add_autofloat(string item,float maxval,float minval,float startindex)
pushstring "Red"
PushB 255
Push_0
GetStaticP1 223//draw sprite rgba
Push_0
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Green"
PushB 255
Push_0
GetStaticP1 223//draw sprite rgba
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Blue"
PushB 255
Push_0
GetStaticP1 223//draw sprite rgba
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
pushstring "Alpha"
PushB 255
Push_0
GetStaticP1 223//draw sprite rgba
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Get Size From Sprite"
call @add_item(string item)
PushString "Reset Sprite"
call @add_item(string item)
Return 1 0//endupdate
//<
//> time cycles
//> timecycles A-G
:timecycle_A-G
pushstring "A - G"
SetStatic2 380//header
PushB 99
SetStatic1 6//item count
pushstring "AmbientPush"
call @add_item(string item)
pushstring "Bank_HLWD"
call @add_item(string item)
pushstring "Barry1_Stoned"
call @add_item(string item)
pushstring "BarryFadeOut"
call @add_item(string item)
pushstring "BaseToneMapping"
call @add_item(string item)
pushstring "Bikers"
call @add_item(string item)
pushstring "BikersSPLASH"
call @add_item(string item)
pushstring "BlackNWhite"
call @add_item(string item)
pushstring "BlackOut"
call @add_item(string item)
pushstring "Bloom"
call @add_item(string item)
pushstring "BloomLight"
call @add_item(string item)
pushstring "BuildingTOP"
call @add_item(string item)
pushstring "BulletTimeDark"
call @add_item(string item)
pushstring "BulletTimeLight"
call @add_item(string item)
pushstring "Camera_BW"
call @add_item(string item)
pushstring "Camera_Secuirity"
call @add_item(string item)
pushstring "Camera_Secuirity_Fuzz"
call @add_item(string item)
pushstring "Canyon_Mission"
call @add_item(string item)
pushstring "CarMod_Underpass"
call @add_item(string item)
pushstring "Carpark"
call @add_item(string item)
pushstring "Carpark_dt1_02"
call @add_item(string item)
pushstring "Carpark_dt1_03"
call @add_item(string item)
pushstring "CashDepot"
call @add_item(string item)
pushstring "CashDepotEmergency"
call @add_item(string item)
pushstring "cBank_Back"
call @add_item(string item)
pushstring "cBank_Front"
call @add_item(string item)
pushstring "CH2_Tunnel_Whitelight"
call @add_item(string item)
pushstring "CH3_06_Water"
call @add_item(string item)
pushstring "Chop"
call @add_item(string item)
pushstring "Cinema"
call @add_item(string item)
pushstring "Cinema_001"
call @add_item(string item)
pushstring "Cops"
call @add_item(string item)
pushstring "CopsSPLASH"
call @add_item(string item)
pushstring "Crane_Cam"
call @add_item(string item)
pushstring "Crane_Cam_Cinematic"
call @add_item(string item)
pushstring "CS1_RailwayB_Tunnel"
call @add_item(string item)
pushstring "CS3_Rail_Tunnel"
call @add_item(string item)
pushstring "Custom_Streetlight"
call @add_item(string item)
pushstring "Damage"
call @add_item(string item)
pushstring "Death"
call @add_item(string item)
pushstring "Default"
call @add_item(string item)
pushstring "DefaultColorCode"
call @add_item(string item)
pushstring "Dont_Overide_Sunpos"
call @add_item(string item)
pushstring "Dont_TazeMe_Bro"
call @add_item(string item)
pushstring "Dont_TazeMe_Bro_B"
call @add_item(string item)
pushstring "Downtown_FIB_Cascades_Opt"
call @add_item(string item)
pushstring "DrivingFocusDark"
call @add_item(string item)
pushstring "DrivingFocusLight"
call @add_item(string item)
pushstring "Drug_2_Drive"
call @add_item(string item)
pushstring "Drug_Deadman"
call @add_item(string item)
pushstring "Drug_Deadman_Blend"
call @add_item(string item)
pushstring "Drug_Drive_Blend01"
call @add_item(string item)
pushstring "Drug_Drive_Blend02"
call @add_item(string item)
pushstring "Drug_Flying_01"
call @add_item(string item)
pushstring "Drug_Flying_02"
call @add_item(string item)
pushstring "Drug_Flying_Base"
call @add_item(string item)
pushstring "Drug_Gas_Huffin"
call @add_item(string item)
pushstring "Drug_Wobbly"
call @add_item(string item)
pushstring "Drunk"
call @add_item(string item)
pushstring "Dying"
call @add_item(string item)
pushstring "Eatra_Bouncelight_Beach"
call @add_item(string item)
pushstring "Epsilion"
call @add_item(string item)
pushstring "Exile1_Exit"
call @add_item(string item)
pushstring "Exile1_Plane"
call @add_item(string item)
pushstring "ExplosionJosh"
call @add_item(string item)
pushstring "Extra_Bouncelight"
call @add_item(string item)
pushstring "Ext_Int_ExtLight_Large"
call @add_item(string item)
pushstring "EyeInTheSky"
call @add_item(string item)
pushstring "Facebook_New"
call @add_item(string item)
pushstring "Facebook_Serveroom"
call @add_item(string item)
pushstring "FIB_5"
call @add_item(string item)
pushstring "FIB_6"
call @add_item(string item)
pushstring "FIB_A"
call @add_item(string item)
pushstring "FIB_B"
call @add_item(string item)
pushstring "FIB_Interview"
call @add_item(string item)
pushstring "FIB_Interview_Optimise"
call @add_item(string item)
pushstring "FinaleBank"
call @add_item(string item)
pushstring "FinaleBankExit"
call @add_item(string item)
pushstring "FinaleBankMid"
call @add_item(string item)
pushstring "FireDept"
call @add_item(string item)
pushstring "ForDoron_Delete"
call @add_item(string item)
pushstring "Forest"
call @add_item(string item)
pushstring "FrankilinsHouseHills"
call @add_item(string item)
pushstring "FrankilnsAunts_New"
call @add_item(string item)
pushstring "FrankilnsAunts_SunDir"
call @add_item(string item)
pushstring "Franklin"
call @add_item(string item)
pushstring "FranklinColorCode"
call @add_item(string item)
pushstring "FranklinColorCodeBasic"
call @add_item(string item)
pushstring "FullAmbientMult_Interior"
call @add_item(string item)
pushstring "Gallery_Refmod"
call @add_item(string item)
pushstring "Garage"
call @add_item(string item)
pushstring "Gorge_ReflectionOffset"
call @add_item(string item)
pushstring "Gorge_ReflectionOffset2"
call @add_item(string item)
pushstring "Gorge_Reflection_Gpu"
call @add_item(string item)
pushstring "Graveyard_Shootout"
call @add_item(string item)
pushstring "GunClub"
call @add_item(string item)
pushstring "GunClubRange"
call @add_item(string item)
pushstring "GunShop"
call @add_item(string item)
pushstring "GunStore"
call @add_item(string item)
Return 1 0//endupdate
//<
//> timecycles H-I
:timecycle_H-I
pushstring "H - I"
SetStatic2 380//header
PushB 100
SetStatic1 6//item count
pushstring "Half_Direct"
call @add_item(string item)
pushstring "Hangar_LightsMod"
call @add_item(string item)
pushstring "Hanger_IntMods"
call @add_item(string item)
pushstring "HeatHaze"
call @add_item(string item)
pushstring "Heist_Boat"
call @add_item(string item)
pushstring "Heist_Boat_EngineRoom"
call @add_item(string item)
pushstring "Heist_Boat_NoRain"
call @add_item(string item)
pushstring "HeliCamFirst"
call @add_item(string item)
pushstring "HeliGunCam"
call @add_item(string item)
pushstring "HicksBar"
call @add_item(string item)
pushstring "HicksBarNew"
call @add_item(string item)
pushstring "HillsTunnel"
call @add_item(string item)
pushstring "Hint_cam"
call @add_item(string item)
pushstring "HitPed"
call @add_item(string item)
pushstring "Hud_Def_Blur"
call @add_item(string item)
pushstring "Hud_Def_ColorGrade"
call @add_item(string item)
pushstring "Hud_def_DesatCrunch"
call @add_item(string item)
pushstring "Hud_def_Desat_Cold"
call @add_item(string item)
pushstring "Hud_def_Desat_Cold_Kill"
call @add_item(string item)
pushstring "Hud_def_Desat_Franklin"
call @add_item(string item)
pushstring "Hud_def_Desat_Michael"
call @add_item(string item)
pushstring "Hud_Def_Desat_Neutral"
call @add_item(string item)
pushstring "Hud_Def_Desat_Switch"
call @add_item(string item)
pushstring "Hud_Def_Desat_Trevor"
call @add_item(string item)
pushstring "Hud_Def_Flash"
call @add_item(string item)
pushstring "Hud_Def_Focus"
call @add_item(string item)
pushstring "Hud_Def_Franklin"
call @add_item(string item)
pushstring "Hud_Def_Lensdistortion"
call @add_item(string item)
pushstring "Hud_Def_LensDistortion_Subtle"
call @add_item(string item)
pushstring "Hud_Def_Michael"
call @add_item(string item)
pushstring "Hud_Def_Trevor"
call @add_item(string item)
pushstring "ID1_11_Tunnel"
call @add_item(string item)
pushstring "Interior_Water_Lighting"
call @add_item(string item)
pushstring "IntroBlue"
call @add_item(string item)
pushstring "Int_Amb_Mult_Large"
call @add_item(string item)
pushstring "Int_Barber1"
call @add_item(string item)
pushstring "Int_Carmod_Small"
call @add_item(string item)
pushstring "Int_Carrier_Control"
call @add_item(string item)
pushstring "Int_Carrier_Control_2"
call @add_item(string item)
pushstring "Int_Carrier_Hanger"
call @add_item(string item)
pushstring "Int_Carrier_Rear"
call @add_item(string item)
pushstring "Int_Carrier_Stair"
call @add_item(string item)
pushstring "Int_Carrier_Stair_NoDir"
call @add_item(string item)
pushstring "Int_Carshowroom"
call @add_item(string item)
pushstring "Int_ChanceHouse"
call @add_item(string item)
pushstring "Int_Chopshop"
call @add_item(string item)
pushstring "Int_Clean_ExtLight_Large"
call @add_item(string item)
pushstring "Int_Clean_ExtLight_None"
call @add_item(string item)
pushstring "Int_Clean_ExtLight_Small"
call @add_item(string item)
pushstring "Int_ClothesHi"
call @add_item(string item)
pushstring "Int_ClothesLow_Large"
call @add_item(string item)
pushstring "Int_CluckinFactory_None"
call @add_item(string item)
pushstring "Int_CluckinFactory_Small"
call @add_item(string item)
pushstring "Int_ControlTower_None"
call @add_item(string item)
pushstring "Int_ControlTower_Small"
call @add_item(string item)
pushstring "Int_Dockcontrol_Small"
call @add_item(string item)
pushstring "Int_ExtLght_Sm_Cntrst"
call @add_item(string item)
pushstring "Int_ExtLight_Large"
call @add_item(string item)
pushstring "Int_ExtLight_Large_Fog"
call @add_item(string item)
pushstring "Int_ExtLight_None"
call @add_item(string item)
pushstring "Int_ExtLight_None_Dark"
call @add_item(string item)
pushstring "Int_ExtLight_None_Dark_Fog"
call @add_item(string item)
pushstring "Int_ExtLight_None_Fog"
call @add_item(string item)
pushstring "Int_ExtLight_Small"
call @add_item(string item)
pushstring "Int_ExtLight_Small_Clipped"
call @add_item(string item)
pushstring "Int_ExtLight_Small_Fog"
call @add_item(string item)
pushstring "Int_Farmhouse_None"
call @add_item(string item)
pushstring "Int_Farmhouse_Small"
call @add_item(string item)
pushstring "Int_FranklinAunt_Small"
call @add_item(string item)
pushstring "Int_FullAmbientMult"
call @add_item(string item)
pushstring "Int_FullAmbientMult_Art"
call @add_item(string item)
pushstring "Int_FullAmbientMult_Both"
call @add_item(string item)
pushstring "Int_Garage"
call @add_item(string item)
pushstring "Int_GasStation"
call @add_item(string item)
pushstring "Int_Hanger_None"
call @add_item(string item)
pushstring "Int_Hanger_Small"
call @add_item(string item)
pushstring "Int_Hospital2_DM"
call @add_item(string item)
pushstring "Int_Hospital_Blue"
call @add_item(string item)
pushstring "Int_Hospital_BlueB"
call @add_item(string item)
pushstring "Int_Hospital_DM"
call @add_item(string item)
pushstring "Int_JewelHeist_Dark"
call @add_item(string item)
pushstring "Int_Lesters"
call @add_item(string item)
pushstring "Int_Lost_None"
call @add_item(string item)
pushstring "Int_Lost_Small"
call @add_item(string item)
pushstring "Int_MethLab_Small"
call @add_item(string item)
pushstring "Int_MotelRoom"
call @add_item(string item)
pushstring "Int_NoAmbientMult"
call @add_item(string item)
pushstring "Int_NoAmbientMult_Art"
call @add_item(string item)
pushstring "Int_NoAmbientMult_Both"
call @add_item(string item)
pushstring "Int_NoDirectLight"
call @add_item(string item)
pushstring "Int_NoWaterRef"
call @add_item(string item)
pushstring "Int_No_FogAlpha"
call @add_item(string item)
pushstring "Int_Office_Lobby"
call @add_item(string item)
pushstring "Int_Office_LobbyHall"
call @add_item(string item)
pushstring "Int_Posh_HairDresser"
call @add_item(string item)
pushstring "Int_StreetLighting"
call @add_item(string item)
pushstring "Int_Sub"
call @add_item(string item)
pushstring "Int_Sub_Control"
call @add_item(string item)
pushstring "Int_Sub_Red"
call @add_item(string item)
pushstring "Int_Tattoo"
call @add_item(string item)
Return 1 0//endupdate
//<
//> timecycles I-M
:timecycle_I-M
pushstring "I - M"
SetStatic2 380//header
PushB 84
SetStatic1 6//item count
pushstring "Int_Tattoo_B"
call @add_item(string item)
pushstring "Int_Tunnel_None_Dark"
call @add_item(string item)
pushstring "Jewelry_Entrance"
call @add_item(string item)
pushstring "Jewelry_Entrance_Int"
call @add_item(string item)
pushstring "Jewelry_Entrance_Int_Fog"
call @add_item(string item)
pushstring "Jewel_Gas"
call @add_item(string item)
pushstring "Jewel_Optim"
call @add_item(string item)
pushstring "Kt_UnderPass"
call @add_item(string item)
pushstring "Lab_None"
call @add_item(string item)
pushstring "Lab_None_Dark"
call @add_item(string item)
pushstring "Lab_None_Dark_Fog"
call @add_item(string item)
pushstring "Lab_None_Dark_Ovr"
call @add_item(string item)
pushstring "Lab_None_Exit"
call @add_item(string item)
pushstring "Lab_None_Exit_Ovr"
call @add_item(string item)
pushstring "LectroDark"
call @add_item(string item)
pushstring "LectroLight"
call @add_item(string item)
pushstring "LifeInvaderLod"
call @add_item(string item)
pushstring "Lightning"
call @add_item(string item)
pushstring "Lightning_Cloud"
call @add_item(string item)
pushstring "Lightning_Strong"
call @add_item(string item)
pushstring "Lightning_Weak"
call @add_item(string item)
pushstring "LightPollutionHills"
call @add_item(string item)
pushstring "LightPolution"
call @add_item(string item)
pushstring "LightsReduceFallOff"
call @add_item(string item)
pushstring "LodMult_Global_Reduce"
call @add_item(string item)
pushstring "LodMult_Global_Reduce_NoHd"
call @add_item(string item)
pushstring "LodMult_Hd_Orphan_Lod"
call @add_item(string item)
pushstring "LodMult_Hd_Orphan_Reduce"
call @add_item(string item)
pushstring "LodMult_Lod_Reduce"
call @add_item(string item)
pushstring "LodMult_Slod1_Reduce"
call @add_item(string item)
pushstring "LodMult_Slod2_Reduce"
call @add_item(string item)
pushstring "LodMult_Slod3_Reduce"
call @add_item(string item)
pushstring "Metro"
call @add_item(string item)
pushstring "Metro_Platform"
call @add_item(string item)
pushstring "Metro_Tunnels"
call @add_item(string item)
pushstring "Metro_Tunnels_Entrance"
call @add_item(string item)
pushstring "MichaelColorCode"
call @add_item(string item)
pushstring "MichaelColorCodeBasic"
call @add_item(string item)
pushstring "MichaelsDarkRoom"
call @add_item(string item)
pushstring "MichaelsDirectional"
call @add_item(string item)
pushstring "MichaelsNoDirectional"
call @add_item(string item)
pushstring "Micheal"
call @add_item(string item)
pushstring "MichealSpliff"
call @add_item(string item)
pushstring "MichealSpliff_Blend"
call @add_item(string item)
pushstring "MichealSpliff_Blend02"
call @add_item(string item)
pushstring "Micheals_LightsOff"
call @add_item(string item)
pushstring "MilitaryBase_NightLight"
call @add_item(string item)
pushstring "MoreBloom"
call @add_item(string item)
pushstring "Morgue_Dark"
call @add_item(string item)
pushstring "MpApartHigh"
call @add_item(string item)
pushstring "Mp_Apart_Mid"
call @add_item(string item)
pushstring "Mp_Bull_Tost"
call @add_item(string item)
pushstring "Mp_Bull_Tost_Blend"
call @add_item(string item)
pushstring "Mp_Corona_Heist"
call @add_item(string item)
pushstring "Mp_Corona_Heist_Blend"
call @add_item(string item)
pushstring "Mp_Corona_Heist_Bw"
call @add_item(string item)
pushstring "Mp_Corona_Heist_Dof"
call @add_item(string item)
pushstring "Mp_Corona_Switch"
call @add_item(string item)
pushstring "Mp_Corona_Tournament"
call @add_item(string item)
pushstring "Mp_DeathFail_Night"
call @add_item(string item)
pushstring "Mp_Death_Grade"
call @add_item(string item)
pushstring "Mp_Death_Grade_Blend01"
call @add_item(string item)
pushstring "Mp_Death_Grade_Blend02"
call @add_item(string item)
pushstring "Mp_Garage_L"
call @add_item(string item)
pushstring "Mp_Heli_Cam"
call @add_item(string item)
pushstring "Mp_Intro_Logo"
call @add_item(string item)
pushstring "Mp_Job_Load"
call @add_item(string item)
pushstring "Mp_Job_Lose"
call @add_item(string item)
pushstring "Mp_Job_PreLoad"
call @add_item(string item)
pushstring "Mp_Job_PreLoad_Blend"
call @add_item(string item)
pushstring "Mp_Job_Win"
call @add_item(string item)
pushstring "Mp_Killstreak"
call @add_item(string item)
pushstring "Mp_Killstreak_Blend"
call @add_item(string item)
pushstring "Mp_Loser"
call @add_item(string item)
pushstring "Mp_Loser_Blend"
call @add_item(string item)
pushstring "Mp_LowGarage"
call @add_item(string item)
pushstring "Mp_MedGarage"
call @add_item(string item)
pushstring "Mp_PowerPlay"
call @add_item(string item)
pushstring "Mp_PowerPlay_Blend"
call @add_item(string item)
pushstring "Mp_Race_Finish"
call @add_item(string item)
pushstring "Mp_Select"
call @add_item(string item)
pushstring "Mp_Studio_Lo"
call @add_item(string item)
pushstring "Multipayer_SpectatorCam"
call @add_item(string item)
pushstring "Multiplayer_Ped_Fight"
call @add_item(string item)
Return 1 0//endupdate
//<
//> timecycles N-R
:timecycle_N-R
pushstring "N - R"
SetStatic2 380//header
PushB 95
SetStatic1 6//item count
pushstring "NervousRon_Fog"
call @add_item(string item)
pushstring "NeutralColorCode"
call @add_item(string item)
pushstring "NeutralColorCodeBasic"
call @add_item(string item)
pushstring "NeutralColorCodeLight"
call @add_item(string item)
pushstring "NewMicheal"
call @add_item(string item)
pushstring "NewMichealGirly"
call @add_item(string item)
pushstring "NewMichealsToilet"
call @add_item(string item)
pushstring "NewMichealUpstairs"
call @add_item(string item)
pushstring "NewMicheal_Night"
call @add_item(string item)
pushstring "NewMicheal_Upstairs"
call @add_item(string item)
pushstring "NewMod"
call @add_item(string item)
pushstring "New_Abattoir"
call @add_item(string item)
pushstring "New_Bank"
call @add_item(string item)
pushstring "New_Jewel"
call @add_item(string item)
pushstring "New_Jewel_Exit"
call @add_item(string item)
pushstring "New_Lesters"
call @add_item(string item)
pushstring "New_Ornate_Bank"
call @add_item(string item)
pushstring "New_Ornate_Bank_Entrance"
call @add_item(string item)
pushstring "New_Ornate_Bank_Office"
call @add_item(string item)
pushstring "New_Ornate_Bank_Safe"
call @add_item(string item)
pushstring "New_Sewers"
call @add_item(string item)
pushstring "New_ShrinksOffice"
call @add_item(string item)
pushstring "New_Station_Unfinished"
call @add_item(string item)
pushstring "New_Stripper_Changing"
call @add_item(string item)
pushstring "New_TrevorsTrailer"
call @add_item(string item)
pushstring "New_Tunnels"
call @add_item(string item)
pushstring "New_Tunnels_Ditch"
call @add_item(string item)
pushstring "New_Tunnels_Entrance"
call @add_item(string item)
pushstring "New_Tunnels_Hole"
call @add_item(string item)
pushstring "New_YellowTunnels"
call @add_item(string item)
pushstring "NextGen"
call @add_item(string item)
pushstring "NoAmbientMult"
call @add_item(string item)
pushstring "NoAmbientMult_Interior"
call @add_item(string item)
pushstring "NoDirectLight"
call @add_item(string item)
pushstring "NoRain"
call @add_item(string item)
pushstring "No_Coronas"
call @add_item(string item)
pushstring "No_Fog_Alpha"
call @add_item(string item)
pushstring "No_StreetAmbient"
call @add_item(string item)
pushstring "No_Weather"
call @add_item(string item)
pushstring "Overwater"
call @add_item(string item)
pushstring "Paleto"
call @add_item(string item)
pushstring "Paleto_Nightlight"
call @add_item(string item)
pushstring "Paleto_Opt"
call @add_item(string item)
pushstring "Pershing_Water_Reflect"
call @add_item(string item)
pushstring "Phone_Cam"
call @add_item(string item)
pushstring "Phone_Cam1"
call @add_item(string item)
pushstring "Phone_Cam2"
call @add_item(string item)
pushstring "Phone_Cam3"
call @add_item(string item)
pushstring "Phone_Cam4"
call @add_item(string item)
pushstring "Phone_Cam5"
call @add_item(string item)
pushstring "Phone_Cam6"
call @add_item(string item)
pushstring "Phone_Cam7"
call @add_item(string item)
pushstring "Phone_Cam9"
call @add_item(string item)
pushstring "Phone_Cam10"
call @add_item(string item)
pushstring "Phone_Cam11"
call @add_item(string item)
pushstring "Phone_Cam12"
call @add_item(string item)
pushstring "Phone_Cam13"
call @add_item(string item)
pushstring "Plane_Inside_Mode"
call @add_item(string item)
pushstring "PlayerSwitchNeutralFlash"
call @add_item(string item)
pushstring "PlayerSwitchPulse"
call @add_item(string item)
pushstring "Player_Transition"
call @add_item(string item)
pushstring "Player_Transition_No_Scanlines"
call @add_item(string item)
pushstring "Player_Transition_Scanlines"
call @add_item(string item)
pushstring "PoliceStation"
call @add_item(string item)
pushstring "PoliceStationDark"
call @add_item(string item)
pushstring "Polluted"
call @add_item(string item)
pushstring "PoolSideWaterReflection2"
call @add_item(string item)
pushstring "Port_Heist_Underwater"
call @add_item(string item)
pushstring "Powerplant_NightLight"
call @add_item(string item)
pushstring "PowerStation"
call @add_item(string item)
pushstring "Prison_NightLight"
call @add_item(string item)
pushstring "Projector"
call @add_item(string item)
pushstring "Prologue"
call @add_item(string item)
pushstring "Prologue_Ending_Fog"
call @add_item(string item)
pushstring "Prologue_Ext_Art_Amb"
call @add_item(string item)
pushstring "Prologue_Reflection_Opt"
call @add_item(string item)
pushstring "Prologue_Shootout"
call @add_item(string item)
pushstring "Prologue_Shootout_Opt"
call @add_item(string item)
pushstring "Pulse"
call @add_item(string item)
pushstring "RaceTurboDark"
call @add_item(string item)
pushstring "RaceTurboFlash"
call @add_item(string item)
pushstring "RaceTurboLight"
call @add_item(string item)
pushstring "Ranch"
call @add_item(string item)
pushstring "RedMist"
call @add_item(string item)
pushstring "RedMist_Blend"
call @add_item(string item)
pushstring "ReduceDrawDistance"
call @add_item(string item)
pushstring "ReduceDrawDistanceMap"
call @add_item(string item)
pushstring "ReduceDrawDistanceMission"
call @add_item(string item)
pushstring "ReduceLightingCost"
call @add_item(string item)
pushstring "ReduceSSAO"
call @add_item(string item)
pushstring "ReduceWaterRef"
call @add_item(string item)
pushstring "Refit"
call @add_item(string item)
pushstring "Reflection_Correct_Ambient"
call @add_item(string item)
pushstring "RemoteSniper"
call @add_item(string item)
pushstring "Resvoire_Reflection"
call @add_item(string item)
Return 1 0//endupdate
//<
//> timecycles S-U
:timecycle_S-U
pushstring "S - U"
SetStatic2 380//header
PushB 78
SetStatic1 6//item count
pushstring "SaltonSea"
call @add_item(string item)
pushstring "SandyShore_NightLight"
call @add_item(string item)
pushstring "SawMill"
call @add_item(string item)
pushstring "ScanLine_Cam"
call @add_item(string item)
pushstring "ScanLine_Cam_Cheap"
call @add_item(string item)
pushstring "Scope_Zoom_In"
call @add_item(string item)
pushstring "Scope_Zoom_Out"
call @add_item(string item)
pushstring "Secret_Camera"
call @add_item(string item)
pushstring "Services_NightLight"
call @add_item(string item)
pushstring "Shades_Pink"
call @add_item(string item)
pushstring "Shades_Yellow"
call @add_item(string item)
pushstring "SheriffStation"
call @add_item(string item)
pushstring "Ship_Explosion_Underwater"
call @add_item(string item)
pushstring "Ship_Lighting"
call @add_item(string item)
pushstring "Shop247"
call @add_item(string item)
pushstring "Shop247_None"
call @add_item(string item)
pushstring "Sleeping"
call @add_item(string item)
pushstring "Sniper"
call @add_item(string item)
pushstring "SP1_03_DrawDistance"
call @add_item(string item)
pushstring "Spectator1"
call @add_item(string item)
pushstring "Spectator2"
call @add_item(string item)
pushstring "Spectator3"
call @add_item(string item)
pushstring "Spectator4"
call @add_item(string item)
pushstring "Spectator5"
call @add_item(string item)
pushstring "Spectator6"
call @add_item(string item)
pushstring "Spectator7"
call @add_item(string item)
pushstring "Spectator8"
call @add_item(string item)
pushstring "Spectator9"
call @add_item(string item)
pushstring "Spectator10"
call @add_item(string item)
pushstring "StadLobby"
call @add_item(string item)
pushstring "Stc_Coroners"
call @add_item(string item)
pushstring "Stc_Deviant_Bedroom"
call @add_item(string item)
pushstring "Stc_Deviant_Lounge"
call @add_item(string item)
pushstring "Stc_FranklinsHouse"
call @add_item(string item)
pushstring "Stc_Trevors"
call @add_item(string item)
pushstring "Stoned"
call @add_item(string item)
pushstring "Stoned_Aliens"
call @add_item(string item)
pushstring "Stoned_Cutscene"
call @add_item(string item)
pushstring "Stoned_Monkeys"
call @add_item(string item)
pushstring "StreetLighting"
call @add_item(string item)
pushstring "StreetLightingJunction"
call @add_item(string item)
pushstring "StreetLightingTraffic"
call @add_item(string item)
pushstring "Strip_Changing"
call @add_item(string item)
pushstring "Strip_NoFog"
call @add_item(string item)
pushstring "Strip_Office"
call @add_item(string item)
pushstring "Strip_Stage"
call @add_item(string item)
pushstring "Subbase_Water_Ref"
call @add_item(string item)
pushstring "SunGlasses"
call @add_item(string item)
pushstring "SuperDark"
call @add_item(string item)
pushstring "Switch_Cam_1"
call @add_item(string item)
pushstring "Switch_Cam_2"
call @add_item(string item)
pushstring "Telescope"
call @add_item(string item)
pushstring "Torpedo"
call @add_item(string item)
pushstring "Traffic_Skycam"
call @add_item(string item)
pushstring "Trailer_Explosion_Optimise"
call @add_item(string item)
pushstring "Trevor"
call @add_item(string item)
pushstring "TrevorColorCode"
call @add_item(string item)
pushstring "TrevorColorCodeBasic"
call @add_item(string item)
pushstring "TrevorSpliff"
call @add_item(string item)
pushstring "TrevorSpliff_Blend"
call @add_item(string item)
pushstring "TrevorSpliff_Blend02"
call @add_item(string item)
pushstring "Trevors_Room"
call @add_item(string item)
pushstring "Tunnel"
call @add_item(string item)
pushstring "Tunnel_Entrance"
call @add_item(string item)
pushstring "Tunnel_Entrance_Int"
call @add_item(string item)
pushstring "Tunnel_Green"
call @add_item(string item)
pushstring "Tunnel_Green1"
call @add_item(string item)
pushstring "Tunnel_Green_Ext"
call @add_item(string item)
pushstring "Tunnel_Orange"
call @add_item(string item)
pushstring "Tunnel_Orange_Exterior"
call @add_item(string item)
pushstring "Tunnel_White"
call @add_item(string item)
pushstring "Tunnel_Yellow"
call @add_item(string item)
pushstring "Tunnel_Yellow_Ext"
call @add_item(string item)
pushstring "Ufo"
call @add_item(string item)
pushstring "Ufo_Deathray"
call @add_item(string item)
pushstring "Underwater"
call @add_item(string item)
pushstring "Underwater_Deep"
call @add_item(string item)
pushstring "Underwater_Deep_Clear"
call @add_item(string item)
Return 1 0//endupdate
//<
//> timecycles V-Z
:timecycle_V-Z
pushstring "V - Z"
SetStatic2 380//header
PushB 70
SetStatic1 6//item count
pushstring "SaVagos"
call @add_item(string item)
pushstring "VagosSplash"
call @add_item(string item)
pushstring "Vagos_ExtLight_Small"
call @add_item(string item)
pushstring "Vagos_New_Garage"
call @add_item(string item)
pushstring "Vagos_New_HangOut"
call @add_item(string item)
pushstring "VC_Tunnel_Entrance"
call @add_item(string item)
pushstring "Venice_Canal_Tunnel"
call @add_item(string item)
pushstring "Vespucci_Garage"
call @add_item(string item)
pushstring "V_Abattoir"
call @add_item(string item)
pushstring "V_Abattoir_Cold"
call @add_item(string item)
pushstring "V_Bahama"
call @add_item(string item)
pushstring "V_CashDepot"
call @add_item(string item)
pushstring "V_Cia_Facility"
call @add_item(string item)
pushstring "V_Dark"
call @add_item(string item)
pushstring "V_FIB_It3"
call @add_item(string item)
pushstring "V_FIB_It3_Alt"
call @add_item(string item)
pushstring "V_FIB_It3_Alt5"
call @add_item(string item)
pushstring "V_FIB_Stairs"
call @add_item(string item)
pushstring "V_Foundry"
call @add_item(string item)
pushstring "V_Janitor"
call @add_item(string item)
pushstring "V_Jewel2"
call @add_item(string item)
pushstring "V_Metro"
call @add_item(string item)
pushstring "V_Metro2"
call @add_item(string item)
pushstring "V_Metro_Station"
call @add_item(string item)
pushstring "V_Michael"
call @add_item(string item)
pushstring "V_Michael_Lounge"
call @add_item(string item)
pushstring "V_Office_Smoke"
call @add_item(string item)
pushstring "V_Office_Smoke_Ext"
call @add_item(string item)
pushstring "V_Office_Smoke_Fire"
call @add_item(string item)
pushstring "V_Recycle"
call @add_item(string item)
pushstring "V_Recycle_Dark"
call @add_item(string item)
pushstring "V_Recycle_Light"
call @add_item(string item)
pushstring "V_Recycle_MainRoom"
call @add_item(string item)
pushstring "V_RockClub"
call @add_item(string item)
pushstring "V_Solomons"
call @add_item(string item)
pushstring "V_Strip3"
call @add_item(string item)
pushstring "V_Strip_Nofog"
call @add_item(string item)
pushstring "V_Strip_Office"
call @add_item(string item)
pushstring "V_StrpChangeRm"
call @add_item(string item)
pushstring "V_Sweat"
call @add_item(string item)
pushstring "V_Sweat_Entrance"
call @add_item(string item)
pushstring "V_Sweat_NoDirLight"
call @add_item(string item)
pushstring "V_Torture"
call @add_item(string item)
pushstring "Warehouse"
call @add_item(string item)
pushstring "Water_Hills"
call @add_item(string item)
pushstring "Water_Lab"
call @add_item(string item)
pushstring "Water _Lab_Cooling"
call @add_item(string item)
pushstring "Water_MilitaryPoop"
call @add_item(string item)
pushstring "Water_Muddy"
call @add_item(string item)
pushstring "Water_Port"
call @add_item(string item)
pushstring "Water_Refmap_High"
call @add_item(string item)
pushstring "Water_Refmap_HollywoodLake"
call @add_item(string item)
pushstring "Water_Refmap_Low"
call @add_item(string item)
pushstring "Water_Refmap_Med"
call @add_item(string item)
pushstring "Water_Refmap_Off"
call @add_item(string item)
pushstring "Water_Refmap_Poolside"
call @add_item(string item)
pushstring "Water_Refmap_Silverlake"
call @add_item(string item)
pushstring "Water_Refmap_Venice"
call @add_item(string item)
pushstring "Water_Refmap_Verylow"
call @add_item(string item)
pushstring "Water_Ref_Malibu"
call @add_item(string item)
pushstring "Water_Resevoir"
call @add_item(string item)
pushstring "Water_River"
call @add_item(string item)
pushstring "Water_Salton"
call @add_item(string item)
pushstring "Water_Salton_Bottom"
call @add_item(string item)
pushstring "Water_Shore"
call @add_item(string item)
pushstring "Water_Silty"
call @add_item(string item)
pushstring "Water_Silverlake"
call @add_item(string item)
pushstring "WhiteNightLighting"
call @add_item(string item)
pushstring "WhiteOut"
call @add_item(string item)
pushstring "Yell_Tunnel_NoDirect"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> draw_songselector
:draw_songselector
Pushb 19
SetStatic1 6//item count
PushString "Song Selector"
SetStatic2 380//header
pushstring "Stop Current Song"
call @add_item(string item)
pushstring "Los Santos Rock Radio"
call @add_item(string item)
pushstring "Non-Stop-Pop FM"
call @add_item(string item)
pushstring "Radio Los Santos"
call @add_item(string item)
pushstring "Channel X"
call @add_item(string item)
pushstring "West Coast Talk Radio"
call @add_item(string item)
pushstring "Rebel Radio"
call @add_item(string item)
pushstring "Soulwax FM"
call @add_item(string item)
pushstring "East Los FM"
call @add_item(string item)
pushstring "West Coast Classics"
call @add_item(string item)
pushstring "Blue Ark"
call @add_item(string item)
pushstring "Worldwide FM"
call @add_item(string item)
pushstring "FlyLo FM"
call @add_item(string item)
pushstring "The Lowdown 91.1"
call @add_item(string item)
pushstring "The Lab"
call @add_item(string item)
pushstring "Radio Mirror Park"
call @add_item(string item)
pushstring "Space 103.2"
call @add_item(string item)
pushstring "Vinewood Boulevard Radio"
call @add_item(string item)
pushstring "Blaine County Radio"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_vehicle_weapon_data_sel
:draw_vehicle_weapon_data_sel
GetStatic2 380//header
gethash
call @get_vehicle_weapon_pointer_from_model_hash(hash)
SetStatic1 104
PushB 14
SetStatic1 6//item count
pushstring "Tank Shell"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_TANK")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Buzzard Rockets"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_SPACE_ROCKET")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Plane Missiles"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLANE_ROCKET")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Lazer Cannon"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_LAZER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_BULLET")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Buzzard Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_BUZZARD")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Hunter Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_HUNTER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Green Laser"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_LASER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Red Laser"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_ENEMY_LASER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Water Cannon"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_WATER_CANNON")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Insurgent Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_TURRET_INSURGENT")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Technical Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_TURRET_TECHNICAL")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Valkyrie Nose Turret"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Savage Cannon"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_SAVAGE")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
//<
//<
//> drawing menu level 4
//> drawing menu level 4 handling
:menulevel4
GetStatic1 4//last selected of item level zero
Switch [1 @nextinmenulevel4_for_playeroptions]:[2 @nextinmenulevel4_for_vehicleoptions]:[7 @nextinmenulevel4_for_miscoptions]
call @menuerror
Return 1 0//endupdate
//> player options submenus menulevel4
:nextinmenulevel4_for_playeroptions
GetStatic1 2//last selected of item level one
Switch [1 @online_players_lvl_3for4]:[3 @modelchanger3_for4]:[7 @bodyguards3_for4]
call @menuerror
Return 1 0//endupdate
:online_players_lvl_3for4
GetStatic1 12//last selected of item level two
Switch [1 @nextinmenulevel4_for4]//if player was pressed
call @menuerror
Return 1 0//endupdate
:nextinmenulevel4_for4
GetStatic1 34//last selected of item level three
Switch [1 @menu_level_4_last_select_1_atzero_item1]:[2 @menu_level_4_last_select_1_atzero_item2]:[3 @menu_level_4_last_select_1_atzero_item3]:[4 @menu_level_4_last_select_1_atzero_item4]:[5 @menu_level_4_last_select_1_atzero_item5]
call @menuerror
Return 1 0//endupdate
//> model changer
:modelchanger3_for4
GetStatic1 1//last selected of item level two
Switch [1 @componentchangerlvl_4for4]
:reuse_draw_model_list_level2
GetStatic1 1//last selected of item level two
switch [3 @draw_lvl4_modelchanger_favorites]:[4 @draw_lvl4_modelchanger_ambent]:[7 @draw_lvl4_modelchanger_gang]:[10 @draw_lvl4_modelchanger_mp]:[12 @draw_lvl4_modelchanger_special]:[13 @draw_lvl4_modelchanger_unique]
call @menuerror
Return 1 0//endupdate
:componentchangerlvl_4for4
GetStatic1 12//temp last sel item
Switch [1 @propandtexture]:[2 @componentandtexture]
call @menuerror
Return 1 0//endupdate
:draw_lvl4_modelchanger_favorites
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_favorites_animals]
call @menuerror
Return 1 0//endupdate
:draw_lvl4_modelchanger_ambent
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_ambent_creatures]:[2 @draw_modelchanger_female_m_o_y]:[3 @draw_modelchanger_male_m_o_y]
call @menuerror
Return 1 0//endupdate
:draw_lvl4_modelchanger_gang
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_female_y]:[2 @draw_modelchanger_male_m_y]
call @menuerror
Return 1 0//endupdate
:draw_lvl4_modelchanger_mp
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_male_m]:[2 @draw_modelchanger_mp_female]:[3 @draw_modelchanger_mp_male]:[4 @draw_modelchanger_male_m]
call @menuerror
Return 1 0//endupdate
:draw_lvl4_modelchanger_special
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_female_m_y]:[2 @draw_modelchanger_male_m_o_y]
call @menuerror
Return 1 0//endupdate
:draw_lvl4_modelchanger_unique
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_female_m_o_y]:[2 @draw_modelchanger_male_m_o_y]
call @menuerror
Return 1 0//endupdate
//<
:bodyguards3_for4
GetStatic1 1//last selected of item level two
Push_1
jumpeq @draw_lvl4_bodyguards_options
jump @reuse_draw_model_list_level2
:draw_lvl4_bodyguards_options
GetStatic1 34//last selected of item level three
Switch [7 @draw_bguard_giveprimary]:[8 @draw_bguard_givesecondary]:[9 @draw_bguard_giveother]
call @menuerror
Return 1 0//endupdate
//<
//> vehicle options submenus menulevel4
:nextinmenulevel4_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @garage_lvl_3for4]
call @menuerror
Return 1 0//endupdate
:garage_lvl_3for4
GetStatic1 1//last selected of item level two
Switch [1 @nextinmenulevel4_for_vehiclespawner]:[2 @nextinmenulevel4_for_paint]:[5 @draw_handling_data_level4]:[6 @draw_veh_weap_data_level4]:[7 @draw_change_veh_type_level4]:[10 @nextinmenulevel4_for_funnyvehs]//color and tint
call @menuerror
Return 1 0//endupdate
:nextinmenulevel4_for_paint
Push_0
SetStatic1 101
Push_0
SetStatic1 102
Push_0
SetStatic1 103
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 34//last selected of item level three
Switch [1 @drawing_custom_Primary_paint]:[2 @drawing_custom_Secondary_paint]:[3 @drawing_custom_tiresmoke]:[8 @drawing_set_tyre_smoke_color]:[9 @drawing_window_tint]
call @menuerror
Return 1 0//endupdate
:nextinmenulevel4_for_vehiclespawner
GetStatic1 34//last selected of item level three
:reuse_vehicle_list
Switch [1 @Sport]:[2 @Super]:[3 @Coupe]:[4 @Compact]:[5 @Sedan]:[6 @Sports_Classic]:[7 @Muscle]:[8 @Suv]:[9 @Van]:[10 @Offroad]:[11 @Commercial]:[12 @Service]:[13 @Utility]:[14 @Industrial]:[15 @Emergency]:[16 @Military]:[17 @Motorcycle]:[18 @Bicycle]:[19 @Plane]:[20 @Helicopter]:[21 @Boat]:[22 @Trailer]:[23 @Rail]
call @menuerror
Return 1 0//endupdate
:draw_handling_data_level4
GetStatic1 34//last selected of item level three
push_1
jumpeq @draw_handling_editor
call @menuerror
Return 1 0//endupdate
:nextinmenulevel4_for_funnyvehs
GetStatic1 34//last selected of item level three
Switch [1 @funnyvehs_animals]
call @menuerror
Return 1 0//endupdate
//<
//> misc options submenus menulevel4
:nextinmenulevel4_for_miscoptions
GetStatic1 2//last selected of item level one
Switch [5 @draw_mobileradio_sel_level4]
call @menuerror
Return 1 0//endupdate
:draw_mobileradio_sel_level4
GetStatic1 1//last selected of item level two
Switch [3 @draw_songselector_sel_level4]
call @menuerror
Return 1 0//endupdate
:draw_songselector_sel_level4
GetStatic1 34//last selected of item level three
Switch [2 @draw_Los_Santos_Rock_Radio]:[3 @draw_Non-Stop-Pop_FM]:[4 @draw_Radio_Los_Santos]:[5 @draw_Channel_X]:[6 @draw_West_Coast_Talk_Radio]:[7 @draw_Rebel_Radio]:[8 @draw_Soulwax_FM]:[9 @draw_East_Los_FM]:[10 @draw_West_Coast_Classics]:[11 @draw_Blue_Ark]:[12 @draw_Worldwide_FM]:[13 @draw_FlyLo_FM]:[14 @draw_The_Lowdown_91.1]:[15 @draw_The_Lab]:[16 @draw_Radio_Mirror_Park]:[17 @draw_Space_103.2]:[18 @draw_Vinewood_Boulevard_Radio]:[19 @draw_Blaine_County_Radio]
call @menuerror
Return 1 0//endupdate
//<
//<
//> drawing online options
:menu_level_4_last_select_1_atzero_item1
//online player options
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
:all_player_reuse_label_p
PushB 17
SetStatic1 6//item count
PushString "Explode"
PushB 38
Push_0
GetStatic2 310//saved index for explode online player
Push_7//enum
Push_1
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Kick Player"
call @add_item(string item)
PushString "Attach Self To Player"
call @add_item(string item)
pushstring "Spawn Money Around Player"
call @add_item(string item)
pushstring "Taze player"
call @add_item(string item)
pushstring "Give Player Money On"
pushstring "Give Player Money Off"
GetStatic1 10//player id
Push_0
call @is_individual_player_loop_bit_set(playerindex,bitindex)
Push_1
Push_0
push_0
Pushb 15
Push_1
call @add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
pushstring "Shoot Rpg at Player"
call @add_item(string item)
pushstring "Sex Player"
call @add_item(string item)
pushstring "Forcefield On"
pushstring "Forcefield Off"
Push_1
call @get_all_player_or_individual_toggle(bit)
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Esp On"
pushstring "Esp Off"
Push_3
call @get_all_player_or_individual_toggle(bit)
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Make Player Explode Player"
call @add_item(string item)
pushstring "Disable Player's Tasks On"
pushstring "Disable Player's Tasks Off"
Push_4
call @get_all_player_or_individual_toggle(bit)
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Clone Player"
call @add_item(string item)
pushstring "Shake Player's Screen On"
pushstring "Shake Player's Screen Off"
Push_5
call @get_all_player_or_individual_toggle(bit)
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Copy Players Character"
call @add_item(string item)
pushstring "Set Waypoint On Player"
call @add_item(string item)
pushstring "Display Player's IP"
call @add_item(string item)
Return 1 0//endupdate
:menu_level_4_last_select_1_atzero_item2
//weapon player options
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
:all_player_reuse_label_w
PushB 7
SetStatic1 6//item count
PushString "Explosive Bullets On"
PushString "Explosive Bullets Off"
Push_2
call @get_all_player_or_individual_toggle(bit)
PushB 38
Push_0
GetStaticP2 311//start of byte array of expids for online players
GetStatic1 10//player id
call @get_ubyte_in_byte_array(int*,byteindex)
Push_7//enum
Push_1
call @add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Give All Normal Weapons"
call @add_item(string item)
PushString "Give All Dlc Weapons"
call @add_item(string item)
PushString "Remove All Weapons"
call @add_item(string item)
pushstring "Give Stungun"
call @add_item(string item)
pushstring "Give Health"
call @add_item(string item)
pushstring "Give Armor"
call @add_item(string item)
Return 1 0//endupdate
:menu_level_4_last_select_1_atzero_item3
//vehicle options
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
:all_player_reuse_label_v
PushB 11
SetStatic1 6//item count
PushString "Slingshot Vehicle"
call @add_item(string item)
PushString "Boost Vehicle Forward"
call @add_item(string item)
PushString "Attach Self To Player's car"
call @add_item(string item)
PushString "Freeze Vehicle in Place"
call @add_item(string item)
pushstring "Light Car On Fire"
call @add_item(string item)
pushstring "Control Player's Vehicle"
call @add_item(string item)
pushstring "Lock/Unlock Player's Doors"
call @add_item(string item)
pushstring "Delete Vehicle"
call @add_item(string item)
pushstring "Vehicle Gayification"
call @add_item(string item)
pushstring "Fix & Wash Vehicle"
call @add_item(string item)
pushstring "Set Vehicle Invincible"
Push_1
Push_0
Push_0
call @add_number(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
:menu_level_4_last_select_1_atzero_item4
//teleport options
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
:all_player_reuse_label_t
Push_6
SetStatic1 6//item count
PushString "Teleport To player"
call @add_item(string item)
PushString "Teleport Into Player's Vehicle"
call @add_item(string item)
PushString "Teleport Player Out of Vehicle"
call @add_item(string item)
PushString "Teleport Player's Car To You"
call @add_item(string item)
PushString "Teleport Player's Car To the Ocean"
call @add_item(string item)
pushstring "Teleport Player's Car To Prison"
call @add_item(string item)
Return 1 0//endupdate
:menu_level_4_last_select_1_atzero_item5
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
:all_player_reuse_label_a
PushB 24
SetStatic1 6//item count
PushString "Hotdog Schlong"
call @add_item(string item)
PushString "Egg Head"
call @add_item(string item)
PushString "Cone Head"
Push_2
Push_1
Push_1
Push_5//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Trippy Wheel"
call @add_item(string item)
PushString "Tv Head"
call @add_item(string item)
pushstring "Ufo Room"
call @add_item(string item)
pushstring "Gas Mask"
Push_2
Push_1
Push_1
PushB 11//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
pushstring "Big Foot Mask"
call @add_item(string item)
pushstring "Trevor's Ski Mask"
Push_2
Push_1
Push_1
PushB 12//enum
Push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
pushstring "Cowboy Hat"
call @add_item(string item)
pushstring "Backpack"
call @add_item(string item)
pushstring "Welding Mask"
call @add_item(string item)
pushstring "Xbox 360 Headset"
call @add_item(string item)
pushstring "Snowman"
call @add_item(string item)
pushstring "Mooning Man"
call @add_item(string item)
pushstring "Spinnging Radar Dish"
call @add_item(string item)
pushstring "Air Dancer"
call @add_item(string item)
pushstring "Katana"
call @add_item(string item)
pushstring "Boxing Glove"
call @add_item(string item)
pushstring "Shoulder Ped"
call @add_item(string item)
pushstring "Bullet Shield"
call @add_item(string item)
pushstring "Teddy Bear"
call @add_item(string item)
pushstring "Christmas Tree"
call @add_item(string item)
pushstring "Fire"
call @add_item(string item)
Return 1 0//endupdate
//<
//> drawing Component/prop Changer
:propandtexture
Push_2
SetStatic1 6//item count
pushstring "Component Changer"
SetStatic2 380//header
PushString "Model Variation"
CallNative player_ped_id 0 1
GetStatic1 94//component
callnative get_number_of_ped_prop_drawable_variations 2 1//max 9 props?//maxval
Push_0//minval
CallNative player_ped_id 0 1
GetStatic1 94//component
callnative get_ped_prop_index 2 1
add1 1//start index
call @add_autonumber(string item,int maxval,int minval,int startindex)
CallNative player_ped_id 0 1
GetStatic1 94//component
callnative get_ped_prop_index 2 1
add1 1
jumpfalse @noproptexture
PushString "Texture Variation"
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative get_ped_prop_index 2 1//Model Variation
CallNative get_number_of_ped_prop_texture_variations 3 1
Push_1
sub//maxval
Push_0//minval
CallNative player_ped_id 0 1
GetStatic1 94//component
callnative get_ped_prop_texture_index 2 1//start index
call @add_autonumber(string item,int maxval,int minval,int startindex)
return 1 0//endupdate
:noproptexture
PushString "Texture Variation"
Push_0
Push_0
Push_0
call @add_autonumber(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
:componentandtexture
Push_2
SetStatic1 6//item count
pushstring "Component Changer"
SetStatic2 380//header
PushString "Model Variation"
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative get_number_of_ped_drawable_variations 2 1
Push_1
sub//maxval
Push_0//minval
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative get_ped_drawable_variation 2 1//start index
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Texture Variation"
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative get_ped_drawable_variation 2 1//Model Variation
CallNative get_number_of_ped_texture_variations 3 1//maxval
Push_0//minval
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative get_ped_texture_variation 2 1//startindex
call @add_autonumber(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
//<
//> full model changer lvl 2
//> draw_animals
:draw_modelchanger_favorites_animals
PushB 11
SetStatic1 6//item count
pushstring "Animals"
SetStatic2 380//header
PushString "Chimp"
call @add_item(string item)
PushString "Rhesus Monkey"
call @add_item(string item)
PushString "Boar"
call @add_item(string item)
PushString "Mountain Lion"
call @add_item(string item)
PushString "Pig"
call @add_item(string item)
PushString "Coyote"
call @add_item(string item)
PushString "Chop"
call @add_item(string item)
PushString "Husky"
call @add_item(string item)
PushString "Retriever"
call @add_item(string item)
PushString "Rottweiler"
call @add_item(string item)
PushString "Shepherd"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_ambent_creatures
:draw_modelchanger_ambent_creatures
PushB 22
SetStatic1 6//item count
pushstring "Creatures"
SetStatic2 380//header
pushstring "Boar"
call @add_item(string item)
pushstring "Chickenhawk"
call @add_item(string item)
pushstring "Chimp"
call @add_item(string item)
pushstring "Chop"
call @add_item(string item)
pushstring "Cormorant"
call @add_item(string item)
pushstring "Cow"
call @add_item(string item)
pushstring "Coyote"
call @add_item(string item)
pushstring "Crow"
call @add_item(string item)
pushstring "Deer"
call @add_item(string item)
pushstring "Fish"
call @add_item(string item)
pushstring "Hen"
call @add_item(string item)
pushstring "Husky"
call @add_item(string item)
pushstring "MtLion"
call @add_item(string item)
pushstring "Pig"
call @add_item(string item)
pushstring "Pigeon"
call @add_item(string item)
pushstring "Rat"
call @add_item(string item)
pushstring "Retriever"
call @add_item(string item)
pushstring "Rhesus"
call @add_item(string item)
pushstring "Rottweiler"
call @add_item(string item)
pushstring "Seagull"
call @add_item(string item)
pushstring "SharkTiger"
call @add_item(string item)
pushstring "shepherd"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_mp_female
:draw_modelchanger_mp_female
Push_4
SetStatic1 6//item count
pushstring "Female"
SetStatic2 380//header
pushstring "DeadHooker"
call @add_item(string item)
pushstring "Freemode_01"
call @add_item(string item)
pushstring "Misty_01"
call @add_item(string item)
pushstring "StripperLite"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_mp_male
:draw_modelchanger_mp_male
PushB 8
SetStatic1 6//item count
pushstring "Male"
SetStatic2 380//header
pushstring "Claude_01"
call @add_item(string item)
pushstring "ExArmy_01"
call @add_item(string item)
pushstring "FamDD_01"
call @add_item(string item)
pushstring "FIBSec_01"
call @add_item(string item)
pushstring "Freemode_01"
call @add_item(string item)
pushstring "Marston_01"
call @add_item(string item)
pushstring "Niko_01"
call @add_item(string item)
pushstring "ShopKeep_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_female_m_o_y
:draw_modelchanger_female_m_o_y
Push_3
SetStatic1 6//item count
pushstring "Female"
SetStatic2 380//header
:reuse_m_o_y_for_modelchanger
pushstring "Midlife"
call @add_item(string item)
pushstring "Old"
call @add_item(string item)
:reuse_y_for_modelchanger
pushstring "Young"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_male_m_o_y
:draw_modelchanger_male_m_o_y
Push_3
SetStatic1 6//item count
pushstring "Male"
SetStatic2 380//header
Jump @reuse_m_o_y_for_modelchanger
//<
//> draw_modelchanger_female_y
:draw_modelchanger_female_y
Push_1
SetStatic1 6//item count
pushstring "Female"
SetStatic2 380//header
Jump @reuse_y_for_modelchanger
//<
//> draw_modelchanger_male_m_y
:draw_modelchanger_male_m_y
Push_2
SetStatic1 6//item count
pushstring "Male"
SetStatic2 380//header
:reuse_m_y_for_modelchanger
pushstring "Midlife"
call @add_item(string item)
pushstring "Young"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_female_m_y
:draw_modelchanger_female_m_y
Push_2
SetStatic1 6//item count
pushstring "Female"
SetStatic2 380//header
Jump @reuse_m_y_for_modelchanger
//<
//> draw_modelchanger_male_m
:draw_modelchanger_male_m
Push_1
SetStatic1 6//item count
pushstring "Male"
SetStatic2 380//header
pushstring "Midlife"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> draw_bguard_giveprimary
:draw_bguard_giveprimary
PushB 25
SetStatic1 6//item count
PushString "Give Primary"
SetStatic2 380//header
pushstring "SMG"
push GetHash("WEAPON_SMG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Assault SMG"
push GetHash("WEAPON_ASSAULTSMG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Assault Rifle"
push GetHash("WEAPON_ASSAULTRIFLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Carbine Rifle"
push GetHash("WEAPON_CARBINERIFLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Advanced Rifle"
push GetHash("WEAPON_ADVANCEDRIFLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "MG"
push GetHash("WEAPON_MG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Combat MG"
push GetHash("WEAPON_COMBATMG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Pump Shotgun"
push GetHash("WEAPON_PUMPSHOTGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Sawed-off Shotgun"
push GetHash("WEAPON_SAWNOFFSHOTGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Assault Shotgun"
push GetHash("WEAPON_ASSAULTSHOTGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Bullpup Shotgun"
push GetHash("WEAPON_BULLPUPSHOTGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Sniper Rifle"
push GetHash("WEAPON_SNIPERRIFLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Heavy Sniper"
push GetHash("WEAPON_HEAVYSNIPER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Minigun"
push GetHash("WEAPON_MINIGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Gusenberg Sweeper"
push GetHash("WEAPON_GUSENBERG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Special Carbine"
push GetHash("WEAPON_SPECIALCARBINE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Bullpup Rifle"
push GetHash("WEAPON_BULLPUPRIFLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Musket"
push GetHash("WEAPON_MUSKET")
call @add_item_with_hash(string item,int vehhash)
pushstring "Heavy Shotgun"
push GetHash("WEAPON_HEAVYSHOTGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Marksman Rifle"
push GetHash("WEAPON_MARKSMANRIFLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Homing Launcher"
push GetHash("WEAPON_HOMINGLAUNCHER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Firework Launcher"
push GetHash("WEAPON_FIREWORK")
call @add_item_with_hash(string item,int vehhash)
pushstring "RPG"
push GetHash("WEAPON_RPG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Grenade Launcher"
push GetHash("WEAPON_GRENADELAUNCHER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Stinger"
push GetHash("WEAPON_STINGER")
call @add_item_with_hash(string item,int vehhash)
Return 1 0//endupdate
//<
//> draw_bguard_givesecondary
:draw_bguard_givesecondary
PushB 10
SetStatic1 6//item count
PushString "Give Secondary"
SetStatic2 380//header
pushstring "Pistol"
push GetHash("WEAPON_PISTOL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Combat Pistol"
push GetHash("WEAPON_COMBATPISTOL")
call @add_item_with_hash(string item,int vehhash)
pushstring "AP Pistol"
push GetHash("WEAPON_APPISTOL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Pistol .50"
push GetHash("WEAPON_PISTOL50")
call @add_item_with_hash(string item,int vehhash)
pushstring "Micro SMG"
push GetHash("WEAPON_MICROSMG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Stun Gun"
push GetHash("WEAPON_STUNGUN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Heavy Pistol"
push GetHash("WEAPON_HEAVYPISTOL")
call @add_item_with_hash(string item,int vehhash)
pushstring "SNS Pistol"
push GetHash("WEAPON_SNSPISTOL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Vintage Pistol"
push GetHash("WEAPON_VINTAGEPISTOL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Flare Gun"
push GetHash("WEAPON_FLAREGUN")
call @add_item_with_hash(string item,int vehhash)
Return 1 0//endupdate
//<
//> draw_bguard_giveother
:draw_bguard_giveother
PushB 26
SetStatic1 6//item count
PushString "Give Other"
SetStatic2 380//header
pushstring "Animal"
push GetHash("WEAPON_ANIMAL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Cougar"
push GetHash("WEAPON_COUGAR")
call @add_item_with_hash(string item,int vehhash)
pushstring "Knife"
push GetHash("WEAPON_KNIFE")
call @add_item_with_hash(string item,int vehhash)
pushstring "NightStick"
push GetHash("WEAPON_NIGHTSTICK")
call @add_item_with_hash(string item,int vehhash)
pushstring "Hammer"
push GetHash("WEAPON_HAMMER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Bat"
push GetHash("WEAPON_BAT")
call @add_item_with_hash(string item,int vehhash)
pushstring "Golf Club"
push GetHash("WEAPON_GOLFCLUB")
call @add_item_with_hash(string item,int vehhash)
pushstring "Crowbar"
push GetHash("WEAPON_CROWBAR")
call @add_item_with_hash(string item,int vehhash)
pushstring "Grenade"
push GetHash("WEAPON_GRENADE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Sticky Bomb"
push GetHash("WEAPON_STICKYBOMB")
call @add_item_with_hash(string item,int vehhash)
pushstring "Tear Gas"
push GetHash("WEAPON_SMOKEGRENADE")
call @add_item_with_hash(string item,int vehhash)
pushstring "BZ Gas"
push GetHash("WEAPON_BZGAS")
call @add_item_with_hash(string item,int vehhash)
pushstring "Molotov"
push GetHash("WEAPON_MOLOTOV")
call @add_item_with_hash(string item,int vehhash)
pushstring "Fire Extinguisher"
push GetHash("WEAPON_FIREEXTINGUISHER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Jerry Can"
push GetHash("WEAPON_PETROLCAN")
call @add_item_with_hash(string item,int vehhash)
pushstring "Digi Scanner"
push GetHash("WEAPON_DIGISCANNER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Brief Case 1"
push GetHash("WEAPON_BRIEFCASE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Brief Case 2"
push GetHash("WEAPON_BRIEFCASE_02")
call @add_item_with_hash(string item,int vehhash)
pushstring "Baseball"
push GetHash("WEAPON_BALL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Flare"
push GetHash("WEAPON_FLARE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Bottle"
push GetHash("WEAPON_BOTTLE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Antique Cavalry Dagger"
push GetHash("WEAPON_DAGGER")
call @add_item_with_hash(string item,int vehhash)
pushstring "Proximity Mine"
push GetHash("WEAPON_PROXMINE")
call @add_item_with_hash(string item,int vehhash)
pushstring "Snowball"
push GetHash("WEAPON_SNOWBALL")
call @add_item_with_hash(string item,int vehhash)
pushstring "Garbage Bag"
push GetHash("WEAPON_GARBAGEBAG")
call @add_item_with_hash(string item,int vehhash)
pushstring "Handcuffs"
push GetHash("WEAPON_HANDCUFFS")
call @add_item_with_hash(string item,int vehhash)
Return 1 0//endupdate
//<
//> vehicle classes
//> Sports
:Sport
pushstring "Sports"
SetStatic2 380//header
push GetHash("ninef")
call @add_veh_with_model_name(int vehhash)
push GetHash("ninef2")
call @add_veh_with_model_name(int vehhash)
push GetHash("banshee")
call @add_veh_with_model_name(int vehhash)
push GetHash("buffalo")
call @add_veh_with_model_name(int vehhash)
push GetHash("buffalo2")
call @add_veh_with_model_name(int vehhash)
push GetHash("carbonizzare")
call @add_veh_with_model_name(int vehhash)
push GetHash("comet2")
call @add_veh_with_model_name(int vehhash)
push GetHash("coquette")
call @add_veh_with_model_name(int vehhash)
push GetHash("elegy2")
call @add_veh_with_model_name(int vehhash)
push GetHash("feltzer2")
call @add_veh_with_model_name(int vehhash)
push GetHash("fusilade")
call @add_veh_with_model_name(int vehhash)
push GetHash("futo")
call @add_veh_with_model_name(int vehhash)
push GetHash("khamelion")
call @add_veh_with_model_name(int vehhash)
push GetHash("penumbra")
call @add_veh_with_model_name(int vehhash)
push GetHash("rapidgt")
call @add_veh_with_model_name(int vehhash)
pushstring "Rapid GT Cabrio"
push GetHash("rapidgt2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("schwarzer")
call @add_veh_with_model_name(int vehhash)
push GetHash("sultan")
call @add_veh_with_model_name(int vehhash)
push GetHash("surano")
call @add_veh_with_model_name(int vehhash)
push GetHash("jester")
call @add_veh_with_model_name(int vehhash)
push GetHash("alpha")
call @add_veh_with_model_name(int vehhash)
push GetHash("massacro")
call @add_veh_with_model_name(int vehhash)
push GetHash("furoregt")
call @add_veh_with_model_name(int vehhash)
push GetHash("jester2")
call @add_veh_with_model_name(int vehhash)
push GetHash("massacro2")
call @add_veh_with_model_name(int vehhash)
push GetHash("kuruma")
call @add_veh_with_model_name(int vehhash)
push GetHash("kuruma2")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Super
:Super
pushstring "Super"
SetStatic2 380//header
push GetHash("bullet")
call @add_veh_with_model_name(int vehhash)
push GetHash("cheetah")
call @add_veh_with_model_name(int vehhash)
push GetHash("entityxf")
call @add_veh_with_model_name(int vehhash)
push GetHash("infernus")
call @add_veh_with_model_name(int vehhash)
push GetHash("adder")
call @add_veh_with_model_name(int vehhash)
push GetHash("voltic")
call @add_veh_with_model_name(int vehhash)
push GetHash("vacca")
call @add_veh_with_model_name(int vehhash)
push GetHash("turismor")
call @add_veh_with_model_name(int vehhash)
push GetHash("zentorno")
call @add_veh_with_model_name(int vehhash)
push GetHash("osiris")
call @add_veh_with_model_name(int vehhash)
push GetHash("t20")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Coupes
:Coupe
pushstring "Coupes"
SetStatic2 380//header
push GetHash("cogcabrio")
call @add_veh_with_model_name(int vehhash)
push GetHash("exemplar")
call @add_veh_with_model_name(int vehhash)
push GetHash("f620")
call @add_veh_with_model_name(int vehhash)
push GetHash("felon")
call @add_veh_with_model_name(int vehhash)
push GetHash("felon2")
call @add_veh_with_model_name(int vehhash)
push GetHash("Jackal")
call @add_veh_with_model_name(int vehhash)
push GetHash("oracle")
call @add_veh_with_model_name(int vehhash)
push GetHash("oracle2")
call @add_veh_with_model_name(int vehhash)
push GetHash("sentinel")
call @add_veh_with_model_name(int vehhash)
push GetHash("sentinel2")
call @add_veh_with_model_name(int vehhash)
push GetHash("zion")
call @add_veh_with_model_name(int vehhash)
push GetHash("zion2")
call @add_veh_with_model_name(int vehhash)
push GetHash("windsor")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Compacts
:Compact
pushstring "Compacts"
SetStatic2 380//header
push GetHash("blista")
call @add_veh_with_model_name(int vehhash)
push GetHash("dilettante")
call @add_veh_with_model_name(int vehhash)
pushstring "Dilettante (Merryweather)"
push GetHash("dilettante2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("issi2")
call @add_veh_with_model_name(int vehhash)
push GetHash("prairie")
call @add_veh_with_model_name(int vehhash)
push GetHash("rhapsody")
call @add_veh_with_model_name(int vehhash)
push GetHash("panto")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Sedans
:Sedan
pushstring "Sedans"
SetStatic2 380//header
push GetHash("asea")
call @add_veh_with_model_name(int vehhash)
pushstring "Asea (Snowy)"
push GetHash("asea2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("asterope")
call @add_veh_with_model_name(int vehhash)
push GetHash("emperor")
call @add_veh_with_model_name(int vehhash)
pushstring "Emperor (Rusty)"
push GetHash("emperor2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Emperor (Snowy)"
push GetHash("emperor3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("fugitive")
call @add_veh_with_model_name(int vehhash)
push GetHash("ingot")
call @add_veh_with_model_name(int vehhash)
push GetHash("intruder")
call @add_veh_with_model_name(int vehhash)
push GetHash("premier")
call @add_veh_with_model_name(int vehhash)
push GetHash("primo")
call @add_veh_with_model_name(int vehhash)
push GetHash("regina")
call @add_veh_with_model_name(int vehhash)
push GetHash("romero")
call @add_veh_with_model_name(int vehhash)
push GetHash("schafter2")
call @add_veh_with_model_name(int vehhash)
push GetHash("stanier")
call @add_veh_with_model_name(int vehhash)
push GetHash("stratum")
call @add_veh_with_model_name(int vehhash)
push GetHash("stretch")
call @add_veh_with_model_name(int vehhash)
push GetHash("superd")
call @add_veh_with_model_name(int vehhash)
push GetHash("surge")
call @add_veh_with_model_name(int vehhash)
push GetHash("tailgater")
call @add_veh_with_model_name(int vehhash)
push GetHash("washington")
call @add_veh_with_model_name(int vehhash)
push GetHash("warrener")
call @add_veh_with_model_name(int vehhash)
push GetHash("glendale")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Sports Classics
:Sports_Classic
pushstring "Sports Classics"
SetStatic2 380//header
push GetHash("jb700")
call @add_veh_with_model_name(int vehhash)
push GetHash("manana")
call @add_veh_with_model_name(int vehhash)
push GetHash("monroe")
call @add_veh_with_model_name(int vehhash)
push GetHash("peyote")
call @add_veh_with_model_name(int vehhash)
push GetHash("stinger")
call @add_veh_with_model_name(int vehhash)
push GetHash("stingergt")
call @add_veh_with_model_name(int vehhash)
push GetHash("tornado")
call @add_veh_with_model_name(int vehhash)
pushstring "Tornado Cabrio"
push GetHash("tornado2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Tornado (Rusty)"
push GetHash("tornado3")
call @add_item_with_hash(string item,int vehhash)
pushstring "Tornado (Guitar)"
push GetHash("tornado4")
call @add_item_with_hash(string item,int vehhash)
push GetHash("ztype")
call @add_veh_with_model_name(int vehhash)
push GetHash("btype")
call @add_veh_with_model_name(int vehhash)
push GetHash("pigalle")
call @add_veh_with_model_name(int vehhash)
push GetHash("coquette2")
call @add_veh_with_model_name(int vehhash)
push GetHash("casco")
call @add_veh_with_model_name(int vehhash)
push GetHash("feltzer3")
call @add_veh_with_model_name(int vehhash)
push GetHash("coquette3")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Muscle
:Muscle
pushstring "Muscle"
SetStatic2 380//header
push GetHash("buccaneer")
call @add_veh_with_model_name(int vehhash)
push GetHash("hotknife")
call @add_veh_with_model_name(int vehhash)
push GetHash("dominator")
call @add_veh_with_model_name(int vehhash)
push GetHash("gauntlet")
call @add_veh_with_model_name(int vehhash)
push GetHash("phoenix")
call @add_veh_with_model_name(int vehhash)
push GetHash("picador")
call @add_veh_with_model_name(int vehhash)
push GetHash("ratloader")
call @add_veh_with_model_name(int vehhash)
push GetHash("ruiner")
call @add_veh_with_model_name(int vehhash)
push GetHash("sabregt")
call @add_veh_with_model_name(int vehhash)
push GetHash("voodoo2")
call @add_veh_with_model_name(int vehhash)
push GetHash("vigero")
call @add_veh_with_model_name(int vehhash)
push GetHash("blade")
call @add_veh_with_model_name(int vehhash)
push GetHash("ratloader2")
call @add_veh_with_model_name(int vehhash)
push GetHash("slamvan")
call @add_veh_with_model_name(int vehhash)
push GetHash("slamvan2")
call @add_veh_with_model_name(int vehhash)
push GetHash("virgo")
call @add_veh_with_model_name(int vehhash)
push GetHash("chino")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> SUVs
:Suv
pushstring "SUVs"
SetStatic2 380//header
push GetHash("baller2")
call @add_veh_with_model_name(int vehhash)
pushstring "Baller (Old)"
push GetHash("baller")
call @add_item_with_hash(string item,int vehhash)
push GetHash("bjxl")
call @add_veh_with_model_name(int vehhash)
push GetHash("cavalcade2")
call @add_veh_with_model_name(int vehhash)
pushstring "Cavalcade (Old)"
push GetHash("cavalcade")
call @add_item_with_hash(string item,int vehhash)
push GetHash("gresley")
call @add_veh_with_model_name(int vehhash)
push GetHash("dubsta")
call @add_veh_with_model_name(int vehhash)
pushstring "Dubsta (Blacked Out)"
push GetHash("dubsta2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("fq2")
call @add_veh_with_model_name(int vehhash)
push GetHash("granger")
call @add_veh_with_model_name(int vehhash)
push GetHash("habanero")
call @add_veh_with_model_name(int vehhash)
push GetHash("landstalker")
call @add_veh_with_model_name(int vehhash)
push GetHash("mesa")
call @add_veh_with_model_name(int vehhash)
pushstring "Mesa (Snowy)"
push GetHash("mesa2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("patriot")
call @add_veh_with_model_name(int vehhash)
push GetHash("radi")
call @add_veh_with_model_name(int vehhash)
push GetHash("rocoto")
call @add_veh_with_model_name(int vehhash)
push GetHash("seminole")
call @add_veh_with_model_name(int vehhash)
push GetHash("serrano")
call @add_veh_with_model_name(int vehhash)
push GetHash("huntley")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Vans
:Van
pushstring "Vans"
SetStatic2 380//header
push GetHash("bison")
call @add_veh_with_model_name(int vehhash)
pushstring "Bison (Construction)"
push GetHash("bison2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Bison (Landscapeing)"
push GetHash("bison3")
call @add_item_with_hash(string item,int vehhash)
pushstring "Boxville (Water&Power)"
push GetHash("boxville")
call @add_item_with_hash(string item,int vehhash)
pushstring "Boxville (Postal)"
push GetHash("boxville2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Boxville (Humane)"
push GetHash("boxville3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("bobcatxl")
call @add_veh_with_model_name(int vehhash)
push GetHash("burrito3")
call @add_veh_with_model_name(int vehhash)
pushstring "Burrito (Multi Livery)"
push GetHash("burrito")
call @add_item_with_hash(string item,int vehhash)
pushstring "Burrito (Bugstars)"
push GetHash("burrito2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Burrito (Construction)"
push GetHash("burrito4")
call @add_item_with_hash(string item,int vehhash)
pushstring "Burrito (Snowy)"
push GetHash("burrito5")
call @add_item_with_hash(string item,int vehhash)
push GetHash("gburrito")
call @add_veh_with_model_name(int vehhash)
push GetHash("camper")
call @add_veh_with_model_name(int vehhash)
push GetHash("journey")
call @add_veh_with_model_name(int vehhash)
push GetHash("minivan")
call @add_veh_with_model_name(int vehhash)
push GetHash("pony")
call @add_veh_with_model_name(int vehhash)
pushstring "Weed Van"
push GetHash("pony2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Rumpo (Weazel News)"
push GetHash("rumpo")
call @add_item_with_hash(string item,int vehhash)
pushstring "Rumpo (Deludamol)"
push GetHash("rumpo2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("speedo")
call @add_veh_with_model_name(int vehhash)
push GetHash("speedo2")
call @add_veh_with_model_name(int vehhash)
push GetHash("surfer")
call @add_veh_with_model_name(int vehhash)
pushstring "Surfer (Rusty)"
push GetHash("surfer2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("taco")
call @add_veh_with_model_name(int vehhash)
push GetHash("youga")
call @add_veh_with_model_name(int vehhash)
push GetHash("paradise")
call @add_veh_with_model_name(int vehhash)
pushstring "Boxville (Post OP)"
push GetHash("boxville4")
call @add_item_with_hash(string item,int vehhash)
pushstring "Gang Burrito (No Livery)"
push GetHash("gburrito2")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
//> Off-Road
:Offroad
pushstring "Off-Road"
SetStatic2 380//header
push GetHash("bfinjection")
call @add_veh_with_model_name(int vehhash)
push GetHash("blazer")
call @add_veh_with_model_name(int vehhash)
push GetHash("blazer2")
call @add_veh_with_model_name(int vehhash)
push GetHash("blazer3")
call @add_veh_with_model_name(int vehhash)
push GetHash("bodhi2")
call @add_veh_with_model_name(int vehhash)
push GetHash("dune")
call @add_veh_with_model_name(int vehhash)
push GetHash("dune2")
call @add_veh_with_model_name(int vehhash)
push GetHash("dloader")
call @add_veh_with_model_name(int vehhash)
pushstring "Mesa (Merryweather)"
push GetHash("mesa3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("rancherxl")
call @add_veh_with_model_name(int vehhash)
pushstring "Rancher XL (Snowy)"
push GetHash("rancherxl2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("rebel2")
call @add_veh_with_model_name(int vehhash)
pushstring "Rebel (Rusty)"
push GetHash("rebel")
call @add_item_with_hash(string item,int vehhash)
push GetHash("sandking")
call @add_veh_with_model_name(int vehhash)
push GetHash("sandking2")
call @add_veh_with_model_name(int vehhash)
push GetHash("bifta")
call @add_veh_with_model_name(int vehhash)
push GetHash("kalahari")
call @add_veh_with_model_name(int vehhash)
push GetHash("dubsta3")
call @add_veh_with_model_name(int vehhash)
push GetHash("monster")
call @add_veh_with_model_name(int vehhash)
push GetHash("insurgent")
call @add_veh_with_model_name(int vehhash)
pushstring "Insurgent Transport"
push GetHash("insurgent2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("technical")
call @add_veh_with_model_name(int vehhash)
push GetHash("brawler")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Commercial
:Commercial
pushstring "Commercial"
SetStatic2 380//header
push GetHash("benson")
call @add_veh_with_model_name(int vehhash)
push GetHash("biff")
call @add_veh_with_model_name(int vehhash)
push GetHash("hauler")
call @add_veh_with_model_name(int vehhash)
push GetHash("mule")
call @add_veh_with_model_name(int vehhash)
pushstring "Mule (Drop Down Trunk)"
push GetHash("mule2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("packer")
call @add_veh_with_model_name(int vehhash)
push GetHash("phantom")
call @add_veh_with_model_name(int vehhash)
push GetHash("pounder")
call @add_veh_with_model_name(int vehhash)
push GetHash("stockade")
call @add_veh_with_model_name(int vehhash)
pushstring "Stockade (Snowy)"
push GetHash("stockade3")
call @add_item_with_hash(string item,int vehhash)
pushstring "Mule (No Livery)"
push GetHash("mule3")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
//> Service
:Service
pushstring "Service"
SetStatic2 380//header
push GetHash("bus")
call @add_veh_with_model_name(int vehhash)
push GetHash("coach")
call @add_veh_with_model_name(int vehhash)
push GetHash("airbus")
call @add_veh_with_model_name(int vehhash)
push GetHash("rentalbus")
call @add_veh_with_model_name(int vehhash)
push GetHash("taxi")
call @add_veh_with_model_name(int vehhash)
push GetHash("trash")
call @add_veh_with_model_name(int vehhash)
push GetHash("tourbus")
call @add_veh_with_model_name(int vehhash)
pushstring "Trashmaster (Rusty Back)"
push GetHash("trash2")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
//> Utility
:Utility
pushstring "Utility"
SetStatic2 380//header
push GetHash("airtug")
call @add_veh_with_model_name(int vehhash)
push GetHash("caddy")
call @add_veh_with_model_name(int vehhash)
pushstring "Caddy (Old)"
push GetHash("caddy2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("docktug")
call @add_veh_with_model_name(int vehhash)
push GetHash("forklift")
call @add_veh_with_model_name(int vehhash)
push GetHash("mower")
call @add_veh_with_model_name(int vehhash)
push GetHash("ripley")
call @add_veh_with_model_name(int vehhash)
push GetHash("sadler")
call @add_veh_with_model_name(int vehhash)
pushstring "Sadler (Snowy)"
push GetHash("sadler2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("scrap")
call @add_veh_with_model_name(int vehhash)
push GetHash("tractor2")
call @add_veh_with_model_name(int vehhash)
pushstring "Tractor (Rusty)"
push GetHash("tractor")
call @add_item_with_hash(string item,int vehhash)
pushstring "Tractor (Snowy)"
push GetHash("tractor3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("towtruck")
call @add_veh_with_model_name(int vehhash)
pushstring "Towtruck (Small)"
push GetHash("towtruck2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Basket Truck"
push GetHash("utillitruck")
call @add_item_with_hash(string item,int vehhash)
push GetHash("utillitruck2")
call @add_veh_with_model_name(int vehhash)
pushstring "Utility Pick-up Truck"
push GetHash("utillitruck3")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
//> Industrial
:Industrial
pushstring "Industrial"
SetStatic2 380//header
push GetHash("bulldozer")
call @add_veh_with_model_name(int vehhash)
push GetHash("cutter")
call @add_veh_with_model_name(int vehhash)
push GetHash("dump")
call @add_veh_with_model_name(int vehhash)
push GetHash("rubble")
call @add_veh_with_model_name(int vehhash)
push GetHash("flatbed")
call @add_veh_with_model_name(int vehhash)
push GetHash("handler")
call @add_veh_with_model_name(int vehhash)
push GetHash("mixer")
call @add_veh_with_model_name(int vehhash)
pushstring "Mixer (Wheels On Back)"
push GetHash("mixer2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Tipper (6-Wheeler)"
push GetHash("tiptruck")
call @add_item_with_hash(string item,int vehhash)
pushstring "Tipper (10-Wheeler)"
push GetHash("tiptruck2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("guardian")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Emergency
:Emergency
pushstring "Emergency"
SetStatic2 380//header
push GetHash("ambulance")
call @add_veh_with_model_name(int vehhash)
push GetHash("policet")
call @add_veh_with_model_name(int vehhash)
pushstring "FIB Buffalo"
push GetHash("fbi")
call @add_item_with_hash(string item,int vehhash)
pushstring "FIB Granger"
push GetHash("fbi2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("firetruk")
call @add_veh_with_model_name(int vehhash)
push GetHash("lguard")
call @add_veh_with_model_name(int vehhash)
push GetHash("pbus")
call @add_veh_with_model_name(int vehhash)
pushstring "Police Stanier"
push GetHash("police")
call @add_item_with_hash(string item,int vehhash)
pushstring "Police Buffalo"
push GetHash("police2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Police Interceptor"
push GetHash("police3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("police4")
call @add_veh_with_model_name(int vehhash)
push GetHash("policeold1")
call @add_veh_with_model_name(int vehhash)
push GetHash("policeold2")
call @add_veh_with_model_name(int vehhash)
push GetHash("pranger")
call @add_veh_with_model_name(int vehhash)
push GetHash("riot")
call @add_veh_with_model_name(int vehhash)
push GetHash("sheriff")
call @add_veh_with_model_name(int vehhash)
push GetHash("sheriff2")
call @add_veh_with_model_name(int vehhash)
push GetHash("policeb")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Military
:Military
pushstring "Military"
SetStatic2 380//header
push GetHash("barracks")
call @add_veh_with_model_name(int vehhash)
push GetHash("barracks2")
call @add_veh_with_model_name(int vehhash)
push GetHash("crusader")
call @add_veh_with_model_name(int vehhash)
push GetHash("rhino")
call @add_veh_with_model_name(int vehhash)
pushstring "Barracks (Dark Camo)"
push GetHash("barracks3")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
//> Motorcycles
:Motorcycle
pushstring "Motorcycles"
SetStatic2 380//header
push GetHash("sanchez")
call @add_veh_with_model_name(int vehhash)
push GetHash("sanchez2")
call @add_veh_with_model_name(int vehhash)
push GetHash("akuma")
call @add_veh_with_model_name(int vehhash)
push GetHash("carbonrs")
call @add_veh_with_model_name(int vehhash)
push GetHash("bagger")
call @add_veh_with_model_name(int vehhash)
push GetHash("bati")
call @add_veh_with_model_name(int vehhash)
push GetHash("bati2")
call @add_veh_with_model_name(int vehhash)
push GetHash("ruffian")
call @add_veh_with_model_name(int vehhash)
push GetHash("daemon")
call @add_veh_with_model_name(int vehhash)
push GetHash("double")
call @add_veh_with_model_name(int vehhash)
push GetHash("pcj")
call @add_veh_with_model_name(int vehhash)
push GetHash("vader")
call @add_veh_with_model_name(int vehhash)
push GetHash("faggio2")
call @add_veh_with_model_name(int vehhash)
push GetHash("hexer")
call @add_veh_with_model_name(int vehhash)
push GetHash("nemesis")
call @add_veh_with_model_name(int vehhash)
push GetHash("thrust")
call @add_veh_with_model_name(int vehhash)
push GetHash("sovereign")
call @add_veh_with_model_name(int vehhash)
push GetHash("innovation")
call @add_veh_with_model_name(int vehhash)
push GetHash("hakuchou")
call @add_veh_with_model_name(int vehhash)
push GetHash("enduro")
call @add_veh_with_model_name(int vehhash)
push GetHash("lectro")
call @add_veh_with_model_name(int vehhash)
push GetHash("vindicator")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Cycles
:Bicycle
pushstring "Cycles"
SetStatic2 380//header
push GetHash("scorcher")
call @add_veh_with_model_name(int vehhash)
push GetHash("tribike")
call @add_veh_with_model_name(int vehhash)
push GetHash("tribike2")
call @add_veh_with_model_name(int vehhash)
push GetHash("tribike3")
call @add_veh_with_model_name(int vehhash)
push GetHash("fixter")
call @add_veh_with_model_name(int vehhash)
push GetHash("cruiser")
call @add_veh_with_model_name(int vehhash)
push GetHash("BMX")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Planes
:Plane
pushstring "Planes"
SetStatic2 380//header
push GetHash("blimp")
call @add_veh_with_model_name(int vehhash)
push GetHash("cuban800")
call @add_veh_with_model_name(int vehhash)
push GetHash("duster")
call @add_veh_with_model_name(int vehhash)
push GetHash("stunt")
call @add_veh_with_model_name(int vehhash)
push GetHash("mammatus")
call @add_veh_with_model_name(int vehhash)
push GetHash("jet")
call @add_veh_with_model_name(int vehhash)
push GetHash("shamal")
call @add_veh_with_model_name(int vehhash)
push GetHash("luxor")
call @add_veh_with_model_name(int vehhash)
push GetHash("titan")
call @add_veh_with_model_name(int vehhash)
push GetHash("lazer")
call @add_veh_with_model_name(int vehhash)
push GetHash("cargoplane")
call @add_veh_with_model_name(int vehhash)
push GetHash("velum")
call @add_veh_with_model_name(int vehhash)
push GetHash("vestra")
call @add_veh_with_model_name(int vehhash)
push GetHash("besra")
call @add_veh_with_model_name(int vehhash)
push GetHash("miljet")
call @add_veh_with_model_name(int vehhash)
push GetHash("velum2")
call @add_veh_with_model_name(int vehhash)
push GetHash("hydra")
call @add_veh_with_model_name(int vehhash)
push GetHash("luxor2")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Helicopters
:Helicopter
pushstring "Helicopters"
SetStatic2 380//header
push GetHash("annihilator")
call @add_veh_with_model_name(int vehhash)
push GetHash("buzzard")
call @add_veh_with_model_name(int vehhash)
push GetHash("buzzard2")
call @add_veh_with_model_name(int vehhash)
push GetHash("cargobob")
call @add_veh_with_model_name(int vehhash)
pushstring "Medical Cargobob"
push GetHash("cargobob2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Trevor's Cargobob"
push GetHash("cargobob3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("skylift")
call @add_veh_with_model_name(int vehhash)
push GetHash("polmav")
call @add_veh_with_model_name(int vehhash)
push GetHash("maverick")
call @add_veh_with_model_name(int vehhash)
push GetHash("frogger")
call @add_veh_with_model_name(int vehhash)
pushstring "Trevor's Frogger"
push GetHash("frogger2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("swift")
call @add_veh_with_model_name(int vehhash)
push GetHash("savage")
call @add_veh_with_model_name(int vehhash)
push GetHash("valkyrie")
call @add_veh_with_model_name(int vehhash)
push GetHash("swift2")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Boats
:Boat
pushstring "Boats"
SetStatic2 380//header
push GetHash("squalo")
call @add_veh_with_model_name(int vehhash)
push GetHash("marquis")
call @add_veh_with_model_name(int vehhash)
push GetHash("dinghy")
call @add_veh_with_model_name(int vehhash)
pushstring "Dinghy 2-Seater"
push GetHash("dinghy2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("jetmax")
call @add_veh_with_model_name(int vehhash)
push GetHash("predator")
call @add_veh_with_model_name(int vehhash)
push GetHash("tropic")
call @add_veh_with_model_name(int vehhash)
push GetHash("seashark")
call @add_veh_with_model_name(int vehhash)
pushstring "Seashark Lifeguard"
push GetHash("seashark2")
call @add_item_with_hash(string item,int vehhash)
push GetHash("submersible")
call @add_veh_with_model_name(int vehhash)
push GetHash("suntrap")
call @add_veh_with_model_name(int vehhash)
push GetHash("speeder")
call @add_veh_with_model_name(int vehhash)
pushstring "Dinghy (New Map On Dash)"
push GetHash("dinghy3")
call @add_item_with_hash(string item,int vehhash)
push GetHash("toro")
call @add_veh_with_model_name(int vehhash)
Jump @endvehicleupdate
//<
//> Trailers
:Trailer
pushstring "Trailers"
SetStatic2 380//header
push GetHash("boattrailer")
call @add_veh_with_model_name(int vehhash)
pushstring "Army Tanker"
push GetHash("armytanker")
call @add_item_with_hash(string item,int vehhash)
pushstring "Army Flatbed"
push GetHash("armytrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Army Flatbed With Cutter"
push GetHash("armytrailer2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Freight Train Flatbed"
push GetHash("freighttrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Mobile Home"
push GetHash("proptrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Grain Trailer"
push GetHash("graintrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Hay Bale Trailer"
push GetHash("baletrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Shipping Container Trailer"
push GetHash("docktrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Metal/Tarp Covered Trailer"
push GetHash("trailers")
call @add_item_with_hash(string item,int vehhash)
pushstring "Misc Livery Trailer"
push GetHash("trailers2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Big Goods Trailer"
push GetHash("trailers3")
call @add_item_with_hash(string item,int vehhash)
pushstring "Fame or Shame Trailer"
push GetHash("tvtrailer")
call @add_item_with_hash(string item,int vehhash)
pushstring "Farm Cultivator"
push GetHash("raketrailer")
call @add_item_with_hash(string item,int vehhash)
Pushstring "Tanker"
push GetHash("tanker")
call @add_item_with_hash(string item,int vehhash)
pushstring "Log Trailer"
push GetHash("trailerlogs")
call @add_item_with_hash(string item,int vehhash)
pushstring "Empty Car Carrier Trailer"
push GetHash("tr2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Marquis Trailer"
push GetHash("tr3")
call @add_item_with_hash(string item,int vehhash)
pushstring "Super Car Carrier Trailer"
push GetHash("tr4")
call @add_item_with_hash(string item,int vehhash)
pushstring "Flatbed"
push GetHash("trflat")
call @add_item_with_hash(string item,int vehhash)
pushstring "Small Construction Trailer"
push GetHash("trailersmall")
call @add_item_with_hash(string item,int vehhash)
Pushstring "Tanker (No Livery)"
push GetHash("tanker2")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
//> Trains
:Rail
pushstring "Trains"
SetStatic2 380//header
push GetHash("cablecar")
call @add_veh_with_model_name(int vehhash)
pushstring "Freight Train"
push GetHash("freight")
call @add_item_with_hash(string item,int vehhash)
pushstring "Train Well Car"
push GetHash("freightcar")
call @add_item_with_hash(string item,int vehhash)
pushstring "Train Container"
push GetHash("freightcont1")
call @add_item_with_hash(string item,int vehhash)
pushstring "Train Container (livery)"
push GetHash("freightcont2")
call @add_item_with_hash(string item,int vehhash)
pushstring "Train Boxcar"
push GetHash("freightgrain")
call @add_item_with_hash(string item,int vehhash)
pushstring "Train Fuel Tank Car"
push GetHash("tankercar")
call @add_item_with_hash(string item,int vehhash)
pushstring "Metro Train"
push GetHash("metrotrain")
call @add_item_with_hash(string item,int vehhash)
Jump @endvehicleupdate
//<
:endvehicleupdate
GetStatic1 11
Push_1
sub
SetStatic1 6//item count
Return 1 0//endupdate
//<
//> drawing custom paint
:drawing_custom_Primary_paint
GetStatic1 100
jumpfalse @notinvehforcustomprimary
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_custom_primary_colour 4 0
:notinvehforcustomprimary
Push_5
SetStatic1 6//item count
pushstring "Custom Primary Color"
SetStatic2 380//header
pushstring "Clear Custom Primary Color"
call @add_item(string item)
jump @rgb
:drawing_custom_Secondary_paint
GetStatic1 100
jumpfalse @notinvehforcustomSecondary
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_custom_Secondary_colour 4 0
:notinvehforcustomSecondary
Push_5
SetStatic1 6//item count
pushstring "Custom Secondary Color"
SetStatic2 380//header
pushstring "Clear Custom Secondary Color"
call @add_item(string item)
jump @rgb
:drawing_custom_tiresmoke
GetStatic1 100
jumpfalse @notinvehforcustomtyre_smoke
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_tyre_smoke_color 4 0
:notinvehforcustomtyre_smoke
Push_4
SetStatic1 6//item count
pushstring "Custom Tyre Smoke Color"
SetStatic2 380//header
:rgb
pushstring "Color Pallet"
call @add_item(string item)
PushString "Red"
PushB 255
Push_0
GetStatic1 101
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Green"
PushB 255
Push_0
GetStatic1 102
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Blue"
PushB 255
Push_0
GetStatic1 103
call @add_autonumber(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
//<
//> drawing_set_tyre_smoke_color
:drawing_set_tyre_smoke_color
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @nohandlenots
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_tyre_smoke_color 4 0
jump @setts
:nohandlenots
Push_1
SetStatic1 101
Push_1
SetStatic1 102
Push_1
SetStatic1 103
:setts
PushB 11
SetStatic1 6//item count
pushstring "Set Tyre Smoke Color"
SetStatic2 380//header
pushstring "White Tyre Smoke Equipped"
pushstring "White Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 255 255 255
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Black Tyre Smoke Equipped"
pushstring "Black Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 20 20 20
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Blue Tyre Smoke Equipped"
pushstring "Blue Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 0 174 239
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Yellow Tyre Smoke Equipped"
pushstring "Yellow Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 252 238 0
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Purple Tyre Smoke Equipped"
pushstring "Purple Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 100 79 142
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Orange Tyre Smoke Equipped"
pushstring "Orange Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 255 127 0
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Green Tyre Smoke Equipped"
pushstring "Green Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 102 152 104
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Red Tyre Smoke Equipped"
pushstring "Red Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 226 6 6
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Pink Tyre Smoke Equipped"
pushstring "Pink Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 203 54 148
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Brown Tyre Smoke Equipped"
pushstring "Brown Tyre Smoke"
Push_3
GetStaticP1 101
toStack
PushB3 180 130 97
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Patriot Tyre Smoke Equipped"
pushstring "Patriot Tyre Smoke"
Push_3
GetStaticP1 101
toStack
Push_0
Push_0
Push_0
call @vcmpeq
call @add_toggle(string itemon,string itemoff,bool item)
Return 1 0//endupdate
//<
//> drawing_window_tint
:drawing_window_tint
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @nohandlenotint
GetStatic1 100
CallNative get_vehicle_window_tint 1 1
dup
Push_0
jumpgt @settint
drop
:nohandlenotint
Push_0
:settint
SetStatic1 101
PushB 6
SetStatic1 6//item count
pushstring "Set Window Tint"
SetStatic2 380//header
//0 - none
//1 - limo
//2 - dark smoke
//3 - light smoke
//4 - none 2
//5 - pure black
//6 - green
pushstring "None Equipped"
pushstring "None"
GetStatic1 101
Push_0
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Light Smoke Equipped"
pushstring "Light Smoke"
GetStatic1 101
Push_3
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Dark Smoke Equipped"
pushstring "Dark Smoke"
GetStatic1 101
Push_2
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Limo Equipped"
pushstring "Limo"
GetStatic1 101
Push_1
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Pure Black Equipped"
pushstring "Pure Black"
GetStatic1 101
Push_5
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
pushstring "Green Equipped"
pushstring "Green"
GetStatic1 101
Push_6
cmpeq
call @add_toggle(string itemon,string itemoff,bool item)
Return 1 0//endupdate
//<
//> draw handling editor
:draw_handling_editor
PushString "Individual Handling Data"
SetStatic2 380//header
jump @reuse_draw_vehspawner
Return 1 0//endupdate
//<
//> draw_vehicle_weapon_data_sel
:draw_veh_weap_data_level4
GetStatic2 380//header
gethash
call @get_vehicle_weapon_pointer_from_model_hash(hash)
SetStatic1 104
PushB 14
SetStatic1 6//item count
pushstring "Tank Shell"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_TANK")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Buzzard Rockets"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_SPACE_ROCKET")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Plane Missiles"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLANE_ROCKET")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Lazer Cannon"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_LAZER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_BULLET")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Buzzard Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_BUZZARD")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Hunter Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_HUNTER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Green Laser"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_LASER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Red Laser"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_ENEMY_LASER")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Water Cannon"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_WATER_CANNON")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Insurgent Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_TURRET_INSURGENT")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Technical Machine Gun"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_TURRET_TECHNICAL")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Valkyrie Nose Turret"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
pushstring "Savage Cannon"
Push_3
Push_0
push GetHash("VEHICLE_WEAPON_PLAYER_SAVAGE")
GetStatic1 104
call @get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
call @add_number(string item,int maxval,int minval,int startindex)
Return 1 0//endupdate
//<
//> draw change vehicle type level 4
:draw_change_veh_type_level4
//reuse
GetStaticp1 24
Pushb 17//gxt header bool
callnative clear_bit 2 0
jump @nextinmenulevel4_for_vehiclespawner
Return 1 0//endupdate
//<
//> funnyvehs_animals
:funnyvehs_animals
PushB 8
SetStatic1 6//item count
pushstring "Rideable Animals"
SetStatic2 380//header
PushString "Animal Controls On"
PushString "Animal Controls Off"
GetStatic1 21
Push_5//animal control bool
CallNative is_bit_set 2 1
call @add_toggle(string itemon,string itemoff,bool item)
PushString "Deer"
call @add_item(string item)
PushString "Boar"
call @add_item(string item)
PushString "Bird"
call @add_item(string item)
PushString "Cow"
call @add_item(string item)
PushString "Cougar"
call @add_item(string item)
PushString "Pig"
call @add_item(string item)
PushString "Shark"
call @add_item(string item)
Return 1 0//endupdate
//<
//> radio stations
//> draw_Los_Santos_Rock_Radio
:draw_Los_Santos_Rock_Radio
PushB 23
SetStatic1 6//item count
pushstring "Los Santos Rock Radio"
SetStatic2 380//header
PushString "1004S"//HOLLYWOOD_NIGHTS
call @add_gxt_item(string)
PushString "1005S"//NIGHT_MOVES
call @add_gxt_item(string)
PushString "1028S"//BIG_LOG
call @add_gxt_item(string)
PushString "1032S"//IF_YOU_LEAVE_ME_NOW
call @add_gxt_item(string)
PushString "1034S"//LONELY_IS_THE_NIGHT
call @add_gxt_item(string)
PushString "1036S"//PHOTOGRAPH
call @add_gxt_item(string)
PushString "1039S"//SATURDAY_NIGHTS_ALRIGHT
call @add_gxt_item(string)
PushString "The Breakup Song"//THE_BREAKUP_SONG
call @add_item(string item)
PushString "1044S"//WHAT_A_FOOL_BELIEVES
call @add_gxt_item(string)
PushString "1071S"//RADIO_GA_GA
call @add_gxt_item(string)
PushString "1072S"//BAKER_STREET
call @add_gxt_item(string)
PushString "1073S"//I_WOULDNT_WANT_TO_BE
call @add_gxt_item(string)
PushString "1088S"//ALL_THE_THINGS_SHE_SAID
call @add_gxt_item(string)
PushString "1087S"//DIRTY_WHITE_BOY
call @add_gxt_item(string)
PushString "1111S"//HIGHER_LOVE
call @add_gxt_item(string)
PushString "1112S"//IM_FREE
call @add_gxt_item(string)
PushString "1117S"//TOO_LATE_FOR_GOODBYES
call @add_gxt_item(string)
PushString "1237S"//I_CANT_WAIT
call @add_gxt_item(string)
PushString "1262S"//I_DONT_CARE_ANYMORE
call @add_gxt_item(string)
PushString "1075S"//OGDENS_NUT_GONE_FLAKE
call @add_gxt_item(string)
PushString "1248S"//HEARTBEAT
call @add_gxt_item(string)
PushString "1285S"//ROCKIN_ME
call @add_gxt_item(string)
PushString "1345S"//RAIN
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Non-Stop-Pop_FM
:draw_Non-Stop-Pop_FM
PushB 16
SetStatic1 6//item count
pushstring "Non-Stop-Pop FM"
SetStatic2 380//header
PushString "1018S"//GIMME_MORE
call @add_gxt_item(string)
PushString "1019S"//GLAMOROUS
call @add_gxt_item(string)
PushString "1026S"//WITH_EVERY_HEARTBEAT
call @add_gxt_item(string)
PushString "1001S"//ADULT_EDUCATION
call @add_gxt_item(string)
PushString "1043S"//WEST_END_GIRLS
call @add_gxt_item(string)
PushString "1010S"//SCANDALOUS
call @add_gxt_item(string)
PushString "1232S"//EVERYTHING_SHE_WANTS
call @add_gxt_item(string)
PushString "1235S"//ONLY_GIRL_IN_THE_WORLD
call @add_gxt_item(string)
PushString "1234S"//PURE_SHORES
call @add_gxt_item(string)
PushString "1242S"//RYTHM_OF_THE_NIGHT
call @add_gxt_item(string)
PushString "1257S"//WORK
call @add_gxt_item(string)
PushString "1258S"//DONT_WANNA_FALL_IN_LOVE
call @add_gxt_item(string)
PushString "1263S"//MUSIC_SOUNDS_BETTER_WITH_YOU
call @add_gxt_item(string)
PushString "1287S"//LADY_HEAR_ME_TONIGHT
call @add_gxt_item(string)
PushString "1023S"//ONE_THING
call @add_gxt_item(string)
PushString "1343S"//ANTHEM
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Radio_Los_Santos
:draw_Radio_Los_Santos
PushB 15
SetStatic1 6//item count
pushstring "Radio Los Santos"
SetStatic2 380//header
pushstring "1222S"//HOOD_GONE_LOVE_IT
call @add_gxt_item(string)
pushstring "1259S"//HOW_IT_WAS
call @add_gxt_item(string)
pushstring "1293S"//ALI_BOMAYE
call @add_gxt_item(string)
pushstring "1295S"//SLOW_DOWN
call @add_gxt_item(string)
pushstring "1296S"//STILL_LIVIN
call @add_gxt_item(string)
pushstring "1375S"//ILLUMINATE
call @add_gxt_item(string)
pushstring "1376S"//LIFE_OF_A_MACK
call @add_gxt_item(string)
pushstring "1280S"//R_CALI
call @add_gxt_item(string)
pushstring "1383S"//ADHD
call @add_gxt_item(string)
pushstring "1385S"//BASSHEADS
call @add_gxt_item(string)
pushstring "1386S"//IM_A_REAL_ONE
call @add_gxt_item(string)
pushstring "1387S"//SAY_THAT_THEN
call @add_gxt_item(string)
pushstring "1388S"//SMOKIN_AND_RIDIN
call @add_gxt_item(string)
pushstring "1389S"//TOO_HOOD
call @add_gxt_item(string)
pushstring "1397S"//HOLD_UP
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Channel_X
:draw_Channel_X
PushB 12
SetStatic1 6//item count
pushstring "Channel X"
SetStatic2 380//header
pushstring "The Mouth Don't Stop"//THE_MOUTH_DONT_STOP
call @add_item(string item)
pushstring "1091S"//MY_WAR
call @add_gxt_item(string)
pushstring "1146S"//BLOWN_AWAY
call @add_gxt_item(string)
pushstring "1148S"//LEXICON_DEVIL
call @add_gxt_item(string)
pushstring "1245S"//ROCK_HOUSE
call @add_gxt_item(string)
pushstring "1246S"//SILENT_MAJORITY
call @add_gxt_item(string)
pushstring "1260S"//LIFE_OF_CRIME
call @add_gxt_item(string)
pushstring "1264S"//AMOEBA
call @add_gxt_item(string)
pushstring "1265S"//PERVERT
call @add_gxt_item(string)
pushstring "1346S"//BORED_OF_YOU
call @add_gxt_item(string)
pushstring "1374S"//WHATS_NEXT
call @add_gxt_item(string)
pushstring "1093S"//SUBLIMINAL
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_West_Coast_Talk_Radio
:draw_West_Coast_Talk_Radio
Push_3
SetStatic1 6//item count
pushstring "West Coast Talk Radio"
SetStatic2 380//header
PushString "Chakra Attack"//MONO_CHAKRA_ATTACK_PART_1
call @add_item(string item)
PushString "Fernando Show"//MONO_FERNANDO_SHOW_1
call @add_item(string item)
PushString "Chattersphere"//MONO_CHATTERSPHERE
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_Rebel_Radio
:draw_Rebel_Radio
PushB 11
SetStatic1 6//item count
pushstring "Rebel Radio"
SetStatic2 380//header
pushstring "1048S"//ARE_YOU_SURE_HANK
call @add_gxt_item(string)
pushstring "1049S"//GET_OUTTA_MY_CAR
call @add_gxt_item(string)
pushstring "1070S"//IF_WANT_TO_GET_HEAVEN
call @add_gxt_item(string)
pushstring "1138S"//CANT_HARDLY_STAND
call @add_gxt_item(string)
pushstring "1141S"//I_AINT_LIVING_LONG_LIKE_THIS
call @add_gxt_item(string)
pushstring "It Won't Be Long"//IT_WONT_BE_LONG_HATING_YOU
call @add_item(string item)
pushstring "1145S"//WHISKEY_RIVER
call @add_gxt_item(string)
pushstring "1229S"//THE_GENERAL_LEE
call @add_gxt_item(string)
pushstring "You Took All The Ramblin'"//YOU_TOOK_ALL_THE_RAMBLIN_OUT
call @add_item(string item)
pushstring "1291S"//CONVOY
call @add_gxt_item(string)
pushstring "1342S"//IT_DONT_HURT_ANYMORE
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Soulwax_FM
:draw_Soulwax_FM
PushB 19
SetStatic1 6//item count
pushstring "Soulwax FM"
SetStatic2 380//header
pushstring "Soulwax FM Full"//SOULWAX_FM_FINAL_MIX_32K
call @add_item(string item)
pushstring "1324S"//Stock 18500
call @add_gxt_item(string)
pushstring "1325S"//Fatal Error 160000
call @add_gxt_item(string)
pushstring "1326S"//Let's Beam Him Up 29200
call @add_gxt_item(string)
pushstring "1327S"//Mingi 373000
call @add_gxt_item(string)
pushstring "1328S"//The Strange Art (Inflagranti Remix) 532000
call @add_gxt_item(string)
pushstring "1329S"//El Sucu Tucu 623000
call @add_gxt_item(string)
pushstring "1330S"//Naive Response 845000
call @add_gxt_item(string)
pushstring "1331S"//Gabriel 965000
call @add_gxt_item(string)
pushstring "1332S"//Body Music 1181000
call @add_gxt_item(string)
pushstring "1333S"//Lazer Beams 1291000
call @add_gxt_item(string)
pushstring "1334S"//Tryouts 1394000
call @add_gxt_item(string)
pushstring "1335S"//Nothing But Pleasure 1478000
call @add_gxt_item(string)
pushstring "1336S"//Arp #1 1795000
call @add_gxt_item(string)
pushstring "1337S"//Synrise 1836000
call @add_gxt_item(string)
pushstring "1338S"//Mr. Croissant Taker 2037000
call @add_gxt_item(string)
pushstring "1339S"//Plush (Jacques Lu Cont Remix) 2141000
call @add_gxt_item(string)
pushstring "1340S"//Shockwave (Gesaffelstein Remix) 2233500
call @add_gxt_item(string)
pushstring "1341S"//After You 2334500
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_East_Los_FM
:draw_East_Los_FM
PushB 16
SetStatic1 6//item count
pushstring "East Los FM"
SetStatic2 380//header
pushstring "East Los FM Full"//MEX_FINAL_MIX_32
call @add_item(string item)
pushstring "1181S"//El Cocaino 9750
call @add_gxt_item(string)
pushstring "1182S"//Es-Toy 187400
call @add_gxt_item(string)
pushstring "1183S"//Criminal Sound (El Hijo De La Cumbia Remix) 274000
call @add_gxt_item(string)
pushstring "1184S"//Radio Capital 367500
call @add_gxt_item(string)
pushstring "1185S"//Autos, Moda y Rock and Roll 522500
call @add_gxt_item(string)
pushstring "1186S"//El Tatuado 640000
call @add_gxt_item(string)
pushstring "1187S"//Se Me Perdió La Cadenita 842000
call @add_gxt_item(string)
pushstring "1188S"//Fiebre de Jack 992500
call @add_gxt_item(string)
pushstring "1189S"//Pachuco 1232000
call @add_gxt_item(string)
pushstring "1190S"//El Sonidito 1403500
call @add_gxt_item(string)
pushstring "1191S"//Fresco 1577300
call @add_gxt_item(string)
pushstring "1192S"//Maldito 1793000
call @add_gxt_item(string)
pushstring "1193S"//Tengo El Don 1976000
call @add_gxt_item(string)
pushstring "1194S"//La Granja 2123300
call @add_gxt_item(string)
pushstring "1195S"//El Rey Y Yo 2353000
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_West_Coast_Classics
:draw_West_Coast_Classics
PushB 17
SetStatic1 6//item count
pushstring "West Coast Classics"
SetStatic2 380//header
pushstring "1097S"//STILL_D_R_E
call @add_gxt_item(string)
pushstring "1098S"//STRAIGHT_UP_MENACE
call @add_gxt_item(string)
pushstring "1100S"//WHAT_WOULD_YOU_DO
call @add_gxt_item(string)
pushstring "1102S"//YOU_KNOW_HOW_WE_DO
call @add_gxt_item(string)
pushstring "1095S"//MIND_PLAYING_TRICKS
call @add_gxt_item(string)
pushstring "1208S"//AMBITIONZ_AZ_A_RIDAH
call @add_gxt_item(string)
pushstring "1209S"//APPETITE_FOR_DESTRUCTION
call @add_gxt_item(string)
pushstring "1210S"//C_WALK
call @add_gxt_item(string)
pushstring "1211S"//GANGSTA_GANGSTA
call @add_gxt_item(string)
pushstring "1215S"//THE_NEXT_EPISODE
call @add_gxt_item(string)
pushstring "1216S"//WHAT_YOU_WANNA_DO
call @add_gxt_item(string)
pushstring "1238S"//LATE_NIGHT_HYPE
call @add_gxt_item(string)
pushstring "1239S"//NOTHIN_BUT_THE_CAVI_HIT
call @add_gxt_item(string)
pushstring "1240S"//SO_YOU_WANT_TO_BE_A_GANGSTER
call @add_gxt_item(string)
pushstring "1266S"//DOLLAZ_AND_SENSE
call @add_gxt_item(string)
pushstring "1286S"//LIKE_A_PIANO
call @add_gxt_item(string)
pushstring "1212S"//GIN_AND_JUICE
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Blue_Ark
:draw_Blue_Ark
PushB 14
SetStatic1 6//item count
pushstring "Blue Ark"
SetStatic2 380//header
pushstring "1103S"//DISCO_DEVIL
call @add_gxt_item(string)
pushstring "1124S"//I_AM_A_MADMAN
call @add_gxt_item(string)
pushstring "1123S"//CHAPTER3
call @add_gxt_item(string)
pushstring "1129S"//CRAZY_GIRL
call @add_gxt_item(string)
pushstring "1132S"//NIGHT_NURSE
call @add_gxt_item(string)
pushstring "1133S"//NOBODY_MOVE_GET_HURT
call @add_gxt_item(string)
pushstring "1255S"//SONS_OF_SLAVES
call @add_gxt_item(string)
pushstring "1261S"//MONEY_IN_MY_POCKET
call @add_gxt_item(string)
pushstring "1284S"//KINGSTON_BE_WISE
call @add_gxt_item(string)
pushstring "1289S"//PSYCHO
call @add_gxt_item(string)
pushstring "1288S"//WE_NEVER_FEAR_DEM
call @add_gxt_item(string)
pushstring "1372S"//GUN_SHOT_A_FIRE
call @add_gxt_item(string)
pushstring "1371S"//GRUMBLIN_DUB
call @add_gxt_item(string)
pushstring "1373S"//ODD_RAS
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Worldwide_FM
:draw_Worldwide_FM
PushB 21
SetStatic1 6//item count
pushstring "Worldwide FM"
SetStatic2 380//header
pushstring "Worldwide FM Part 1"//G_P_FINAL_MASTER_PART_ONE
call @add_item(string item)
pushstring "Worldwide FM Part 2"//G_P_FINAL_MASTER_PART_TWO
call @add_item(string item)
pushstring "1352S"//Mirror Maru 0 - 158000
call @add_gxt_item(string)
pushstring "1353S"//Cold Air 174000 - 304000
call @add_gxt_item(string)
pushstring "1354S"//The Place 311000 - 518000
call @add_gxt_item(string)
pushstring "1355S"//Beginning 519000 - 767000
call @add_gxt_item(string)
pushstring "1356S"//Ghost 784000 - 988000
call @add_gxt_item(string)
pushstring "1357S"//Forest Funk 990500 - 1127000
call @add_gxt_item(string)
pushstring "1358S"//Throw Down 1128000 - 1320000
call @add_gxt_item(string)
pushstring "1359S"//You And The Music 1328000 - 1598000
call @add_gxt_item(string)
pushstring "1360S"//Thousand Finger Man 1617000 - 1816000
call @add_gxt_item(string)
pushstring "1361S"//Harm in Change 1825000 - 1945000
call @add_gxt_item(string)
pushstring "1362S"//Breaking 1946000 - 2160000
call @add_gxt_item(string)
pushstring "1363S"//Waveforms 2160900 - 2332000
call @add_gxt_item(string)
pushstring "1364S"//Nissim 0 - 172000
call @add_gxt_item(string)
pushstring "1365S"//Harpoon Land 192000 - 354000
call @add_gxt_item(string)
pushstring "1366S"//Brand New Revolution 358000 - 532000
call @add_gxt_item(string)
pushstring "Live Your Life"//Live Your Life (MELO-X MOTHERLAND GOD MIX) 551000 - 710000
call @add_item(string item)
pushstring "1368S"//Lovery (Slow Cuban Vibe Mix) 726000 - 980000
call @add_gxt_item(string)
pushstring "1369S"//1759 (Outro) 999000 - 1221000
call @add_gxt_item(string)
pushstring "1370S"//Forgotten Notes 1221000 - end
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_FlyLo_FM
:draw_FlyLo_FM
PushB 22
SetStatic1 6//item count
pushstring "FlyLo FM"
SetStatic2 380//header
pushstring "FlyLo FM Full"//FLYLO_32K
call @add_item(string item)
pushstring "1302S"//Getting There 0 - 150000
call @add_gxt_item(string)
pushstring "1303S"//Crystals 151000 - 227000
call @add_gxt_item(string)
pushstring "1304S"//Crosswerved 229000 - 260000
call @add_gxt_item(string)
pushstring "1305S"//Be Spin 292500 - 360000
call @add_gxt_item(string)
pushstring "1306S"//See Thru To U 366800 - 400000
call @add_gxt_item(string)
pushstring "1307S"//The Diddler 417000 - 485000
call @add_gxt_item(string)
pushstring "1308S"//Computer Face 523000 - 566000
call @add_gxt_item(string)
pushstring "1309S"//100hm 574800 - 650000
call @add_gxt_item(string)
pushstring "1310S"//The Kill 659000 - 812000
call @add_gxt_item(string)
pushstring "1311S"//Garbage 843500 - 1033000
call @add_gxt_item(string)
pushstring "1312S"//Elevators (Me & You) 1039300 - 1190000
call @add_gxt_item(string)
pushstring "1313S"//Evil Grin 1190000 - 1291000
call @add_gxt_item(string)
pushstring "1314S"//Catapult Man 1355000 - 1385000
call @add_gxt_item(string)
pushstring "1315S"//Encoded Flow 1409000 - 1473000
call @add_gxt_item(string)
pushstring "1316S"//She Died There 1487000 - 1626000
call @add_gxt_item(string)
pushstring "1317S"//It's Wack 1627000 - 1741500
call @add_gxt_item(string)
pushstring "1318S"//Oh Sheit It's X 1808800 - 1964000
call @add_gxt_item(string)
pushstring "1319S"//Stonecutters 1964800 - 2050000
call @add_gxt_item(string)
pushstring "1320S"//23 2050000 - 2252000
call @add_gxt_item(string)
pushstring "1321S"//Stalker Ha 2254000 - 2348000
call @add_gxt_item(string)
pushstring "1322S"//Windowlicker 2377000 - end
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_The_Lowdown_91.1
:draw_The_Lowdown_91.1
PushB 12
SetStatic1 6//item count
pushstring "The Lowdown 91.1"
SetStatic2 380//header
pushstring "1007S"//DO_IT_TIL_YOURE_SATISFIED
call @add_gxt_item(string)
pushstring "1011S"//O_O_H_CHILD
call @add_gxt_item(string)
pushstring "Ready Or Not Here I Come"//READY_OR_NOT
call @add_item(string item)
pushstring "1013S"//SMILING_FACES
call @add_gxt_item(string)
pushstring "1014S"//VIVA_TIRADO
call @add_gxt_item(string)
pushstring "1051S"//CALIFORNIA_SOUL
call @add_gxt_item(string)
pushstring "1055S"//I_GET_LIFTED
call @add_gxt_item(string)
pushstring "1063S"//THE_CISCO_KID
call @add_gxt_item(string)
pushstring "1226S"//CRUISIN
call @add_gxt_item(string)
pushstring "1227S"//HERCULES
call @add_gxt_item(string)
pushstring "1228S"//RUBBER_BAND
call @add_gxt_item(string)
pushstring "1254S"//ASHLEYS_ROACHCLIP
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_The_Lab
:draw_The_Lab
PushB 15
SetStatic1 6//item count
pushstring "The Lab"
SetStatic2 380//header
pushstring "The Lab Part 1"//lab_p1
call @add_item(string item)
pushstring "The Lab Part 2"//lab_p2
call @add_item(string item)
pushstring "1646S"//Play It Cool 15700 - 215000
call @add_gxt_item(string)
pushstring "1652S"//Trouble 267000 - 470000
call @add_gxt_item(string)
pushstring "1647S"//Speedline Miracle Masterpiece 535000 - 757000
call @add_gxt_item(string)
pushstring "1650S"//Welcome To Los Santos 788500 - 1010000
call @add_gxt_item(string)
pushstring "1649S"//K.Y.S.A. 1043500 - 1300000
call @add_gxt_item(string)
pushstring "1648S"//Fast Life 1396000 - 1590000
call @add_gxt_item(string)
pushstring "1651S"//20's 50's 100's 1622000 - 1878000
call @add_gxt_item(string)
pushstring "1655S"//Lock & Load 1958000 - end
call @add_gxt_item(string)
pushstring "1656S"//Born Bad 52000 252000
call @add_gxt_item(string)
pushstring "1654S"//California 289000 - 514000
call @add_gxt_item(string)
pushstring "1657S"//Leave 531000 - 701000
call @add_gxt_item(string)
pushstring "1653S"//Fetti 738000 - 971000
call @add_gxt_item(string)
pushstring "1658S"//Wanderer 1022300 - 1257000
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Radio_Mirror_Park
:draw_Radio_Mirror_Park
PushB 22
SetStatic1 6//item count
pushstring "Radio Mirror Park"
SetStatic2 380//header
pushstring "1156S"//BOOGIE_IN_ZERO_GRAVITY
call @add_gxt_item(string)
pushstring "Shine A Light"//SHINE_A_LIGHT
call @add_item(string item)
pushstring "1163S"//SOMETIMES
call @add_gxt_item(string)
pushstring "1170S"//DO_YOU_BELIEVE
call @add_gxt_item(string)
pushstring "1174S"//LITTLE_WHITE_LIE
call @add_gxt_item(string)
pushstring "1177S"//SHOOTING_HOLES
call @add_gxt_item(string)
pushstring "1225S"//LUCKY_BOY
call @add_gxt_item(string)
pushstring "1276S"//DARK_MATTER
call @add_gxt_item(string)
pushstring "1277S"//FEEL_THE_SAME
call @add_gxt_item(string)
pushstring "1278S"//FROM_NOWHERE
call @add_gxt_item(string)
pushstring "1279S"//HEART_IN_THE_PIPES
call @add_gxt_item(string)
pushstring "1280S"//JASMINE
call @add_gxt_item(string)
pushstring "1281S"//SO_MANY_DETAILS
call @add_gxt_item(string)
pushstring "1300S"//DONT_COME_CLOSE
call @add_gxt_item(string)
pushstring "1298S"//PSYCHIC_CITY
call @add_gxt_item(string)
pushstring "1350S"//HIGH_PRESSURE
call @add_gxt_item(string)
pushstring "1349S"//OLD_LOVE
call @add_gxt_item(string)
pushstring "1348S"//SLEEPWALKING
call @add_gxt_item(string)
pushstring "1347S"//THE_SET_UP
call @add_gxt_item(string)
pushstring "1379S"//CHANGE_OF_COAST
call @add_gxt_item(string)
pushstring "1391S"//COLOURS
call @add_gxt_item(string)
pushstring "1392S"//NOWHERE_TO_GO
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Space_103.2
:draw_Space_103.2
PushB 13
SetStatic1 6//item count
pushstring "Space 103.2"
SetStatic2 380//header
pushstring "1083S"//IM_IN_LOVE
call @add_gxt_item(string)
pushstring "1052S"//CUTIE_PIE
call @add_gxt_item(string)
pushstring "1009S"//GIVE_IT_TO_ME_BABY
call @add_gxt_item(string)
pushstring "1060S"//SKELETONS
call @add_gxt_item(string)
pushstring "1218S"//HEARTBREAKER
call @add_gxt_item(string)
pushstring "1219S"//ID_RATHER_BE_WITH_YOU
call @add_gxt_item(string)
pushstring "1220S"//TONIGHT
call @add_gxt_item(string)
pushstring "1221S"//YOURE_THE_ONE_FOR_ME
call @add_gxt_item(string)
pushstring "1247S"//FUNKASIZE_YOU
call @add_gxt_item(string)
pushstring "1248S"//HEART_BEAT
call @add_gxt_item(string)
pushstring "1035S"//PARTY_ALL_THE_TIME
call @add_gxt_item(string)
pushstring "1292S"//CANT_HOLD_BACK
call @add_gxt_item(string)
pushstring "1381S"//HABOGLABOTRIBIN
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Vinewood_Boulevard_Radio
:draw_Vinewood_Boulevard_Radio
PushB 12
SetStatic1 6//item count
pushstring "Vinewood Boulevard Radio"
SetStatic2 380//header
pushstring "1267S"//COCAINE
call @add_gxt_item(string)
pushstring "1268S"//CRAWLING_AFTER_YOU
call @add_gxt_item(string)
pushstring "1270S"//FIRE_DOESNT_BURN_ITSELF
call @add_gxt_item(string)
pushstring "1273S"//SLEEPWALKER
call @add_gxt_item(string)
pushstring "1275S"//THIS_MYSTIC_DECADE
call @add_gxt_item(string)
pushstring "1297S"//CALIFORNIA_GIRLS
call @add_gxt_item(string)
pushstring "1351S"//NINE_IS_GOD
call @add_gxt_item(string)
pushstring "1377S"//BLACK_GREASE
call @add_gxt_item(string)
pushstring "1393S"//DIDDY_WAH_DIDDY
call @add_gxt_item(string)
pushstring "1395S"//HYSTERIA
call @add_gxt_item(string)
pushstring "1396S"//THE_DREAM
call @add_gxt_item(string)
pushstring "1394S"//WET_BLANKET
call @add_gxt_item(string)
Return 1 0//endupdate
//<
//> draw_Blaine_County_Radio
:draw_Blaine_County_Radio
PushB 3
SetStatic1 6//item count
pushstring "Blaine County Radio"
SetStatic2 380//header
pushstring "BCR Community Hour"//MONO_BCR_COMMUNITY_HOUR
call @add_item(string item)
pushstring "Beyond Insemination"//MONO_BEYOND_INSEMINATION
call @add_item(string item)
pushstring "Bless Your Heart"//MONO_BLESS_YOUR_HEART
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//<
//> drawing menu level 5
//> menu drawing level5 handling
:menulevel5
GetStatic1 4//last selected of item level zero
Switch [1 @nextinmenulevel5_for_playeroptions]:[2 @nextinmenulevel5_for_vehicleoptions]
call @menuerror
Return 1 0//endupdate
//> player options submenus menulevel5
:nextinmenulevel5_for_playeroptions
GetStatic1 2//last selected of item level one
Switch [1 @online_players_for5]:[3 @draw_modelchanger3_for5]:[7 @draw_bodyguards3_for5]
call @menuerror
Return 1 0//endupdate
:online_players_for5
GetStatic1 12//last selected of item level two
Switch [1 @online_player_for5]//if player was pressed
call @menuerror
Return 1 0//endupdate
:online_player_for5
GetStatic1 34//last selected of item level three
Switch [1 @online_player_options_for5]
call @menuerror
Return 1 0//endupdate
:online_player_options_for5
GetStatic1 38//last selected of item level four
Switch [11 @DrawMakePlayerExplodePlayer]
call @menuerror
Return 1 0//endupdate
:draw_modelchanger3_for5
GetStatic1 1//last selected of item level two
Switch [4 @draw_lvl5_modelchanger_ambent]:[7 @draw_lvl5_modelchanger_gang]:[10 @draw_lvl5_modelchanger_mp]:[12 @draw_lvl5_modelchanger_special]:[13 @draw_lvl5_modelchanger_unique]
call @menuerror
Return 1 0//endupdate
:draw_lvl5_modelchanger_ambent
GetStatic1 34//last selected of item level three
Switch [2 @draw_modelchanger_ambent_female]:[3 @draw_modelchanger_ambent_male]
call @menuerror
Return 1 0//endupdate
:draw_lvl5_modelchanger_gang
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_gang_female]:[2 @draw_modelchanger_gang_male]
call @menuerror
Return 1 0//endupdate
:draw_lvl5_modelchanger_mp
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_mp_gang]:[4 @draw_modelchanger_mp_special]
call @menuerror
Return 1 0//endupdate
:draw_lvl5_modelchanger_special
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_special_female]:[2 @draw_modelchanger_special_male]
call @menuerror
Return 1 0//endupdate
:draw_lvl5_modelchanger_unique
GetStatic1 34//last selected of item level three
Switch [1 @draw_modelchanger_unique_female]:[2 @draw_modelchanger_unique_male]
call @menuerror
Return 1 0//endupdate
//> ambent dirs
:draw_modelchanger_ambent_female
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_ambent_female_m]:[2 @draw_modelchanger_ambent_female_o]:[3 @draw_modelchanger_ambent_female_y]
call @menuerror
Return 1 0//endupdate
:draw_modelchanger_ambent_male
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_ambent_male_m]:[2 @draw_modelchanger_ambent_male_o]:[3 @draw_modelchanger_ambent_male_y]
call @menuerror
Return 1 0//endupdate
//<
//> gang dirs
:draw_modelchanger_gang_female
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_gang_female_y]
call @menuerror
Return 1 0//endupdate
:draw_modelchanger_gang_male
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_gang_male_m]:[2 @draw_modelchanger_gang_male_y]
call @menuerror
Return 1 0//endupdate
//<
//> mp dirs
:draw_modelchanger_mp_gang
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_mp_gang_m]
call @menuerror
Return 1 0//endupdate
:draw_modelchanger_mp_special
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_mp_special_m]
call @menuerror
Return 1 0//endupdate
//<
//> special dirs
:draw_modelchanger_special_female
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_special_female_m]:[2 @draw_modelchanger_special_female_y]
call @menuerror
Return 1 0//endupdate
:draw_modelchanger_special_male
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_special_male_m]:[2 @draw_modelchanger_special_male_o]:[3 @draw_modelchanger_special_male_y]
call @menuerror
Return 1 0//endupdate
//<
//> unique dirs
:draw_modelchanger_unique_female
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_unique_female_m]:[2 @draw_modelchanger_unique_female_o]:[3 @draw_modelchanger_unique_female_y]
call @menuerror
Return 1 0//endupdate
:draw_modelchanger_unique_male
GetStatic1 38//last selected of item level four
Switch [1 @draw_modelchanger_unique_male_m]:[2 @draw_modelchanger_unique_male_o]:[3 @draw_modelchanger_unique_male_y]
call @menuerror
Return 1 0//endupdate
//<
:draw_bodyguards3_for5
jump @draw_modelchanger3_for5
//<
//> vehicle options submenus menulevel5
:nextinmenulevel5_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @garage_level5]
call @menuerror
Return 1 0//endupdate
:garage_level5
GetStatic1 1//last selected of item level two
Switch [5 @draw_handling_data_level5]:[7 @vehicletypechanger]
call @menuerror
Return 1 0//endupdate
:draw_handling_data_level5
GetStatic1 34//last selected of item level three
push_1
cmpeq
jumpfalse @draw_handling_data_error
GetStaticp1 24
Pushb 17//gxt header bool
callnative clear_bit 2 0
GetStatic1 38//last selected of item level four
jump @reuse_vehicle_list
:draw_handling_data_error
call @menuerror
Return 1 0//endupdate
//<
//<
//> drawing make player explode online player
:DrawMakePlayerExplodePlayer
PushB 19
SetStatic1 6//item count
GetStatic1 10//player id
CallNative get_player_name 1 1
SetStatic2 380//header
Push_0
SetStatic1 100
PushString "All Players"
call @add_item(string item)
jump @playerdrawloop
//<
//> full model changer lvl 3
//> draw_modelchanger_ambent_female_m
:draw_modelchanger_ambent_female_m
PushB 22
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "Beach_01"
call @add_item(string item)
pushstring "BevHills_01"
call @add_item(string item)
pushstring "BevHills_02"
call @add_item(string item)
pushstring "BodyBuild_01"
call @add_item(string item)
pushstring "Business_02"
call @add_item(string item)
pushstring "Downtown_01"
call @add_item(string item)
pushstring "EastSA_01"
call @add_item(string item)
pushstring "EastSA_02"
call @add_item(string item)
pushstring "FatBla_01"
call @add_item(string item)
pushstring "FatCult_01"
call @add_item(string item)
pushstring "FatWhite_01"
call @add_item(string item)
pushstring "KTown_01"
call @add_item(string item)
pushstring "KTown_02"
call @add_item(string item)
pushstring "ProlHost_01"
call @add_item(string item)
pushstring "Salton_01"
call @add_item(string item)
pushstring "SkidRow_01"
call @add_item(string item)
pushstring "SouCentMC_01"
call @add_item(string item)
pushstring "SouCent_01"
call @add_item(string item)
pushstring "SouCent_02"
call @add_item(string item)
pushstring "Tourist_01"
call @add_item(string item)
pushstring "TrampBeac_01"
call @add_item(string item)
pushstring "Tramp_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_ambent_female_o
:draw_modelchanger_ambent_female_o
Push_6
SetStatic1 6//item count
pushstring "Old"
SetStatic2 380//header
pushstring "GenStreet_01"
call @add_item(string item)
pushstring "Indian_01"
call @add_item(string item)
pushstring "KTown_01"
call @add_item(string item)
pushstring "Salton_01"
call @add_item(string item)
pushstring "SouCent_01"
call @add_item(string item)
pushstring "SouCent_02"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_ambent_female_y
:draw_modelchanger_ambent_female_y
PushB 42
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "Beach_01"
call @add_item(string item)
pushstring "BevHills_01"
call @add_item(string item)
pushstring "BevHills_02"
call @add_item(string item)
pushstring "BevHills_03"
call @add_item(string item)
pushstring "BevHills_04"
call @add_item(string item)
pushstring "Business_01"
call @add_item(string item)
pushstring "Business_02"
call @add_item(string item)
pushstring "Business_03"
call @add_item(string item)
pushstring "Business_04"
call @add_item(string item)
pushstring "EastSA_01"
call @add_item(string item)
pushstring "EastSA_02"
call @add_item(string item)
pushstring "EastSA_03"
call @add_item(string item)
pushstring "Epsilon_01"
call @add_item(string item)
pushstring "Fitness_01"
call @add_item(string item)
pushstring "Fitness_02"
call @add_item(string item)
pushstring "GenHot_01"
call @add_item(string item)
pushstring "Golfer_01"
call @add_item(string item)
pushstring "Hiker_01"
call @add_item(string item)
pushstring "Hippie_01"
call @add_item(string item)
pushstring "Hipster_01"
call @add_item(string item)
pushstring "Hipster_02"
call @add_item(string item)
pushstring "Hipster_03"
call @add_item(string item)
pushstring "Hipster_04"
call @add_item(string item)
pushstring "Indian_01"
call @add_item(string item)
pushstring "Juggalo_01"
call @add_item(string item)
pushstring "Runner_01"
call @add_item(string item)
pushstring "RurMeth_01"
call @add_item(string item)
pushstring "SCDressy_01"
call @add_item(string item)
pushstring "Skater_01"
call @add_item(string item)
pushstring "SouCent_01"
call @add_item(string item)
pushstring "SouCent_02"
call @add_item(string item)
pushstring "SouCent_03"
call @add_item(string item)
pushstring "Tennis_01"
call @add_item(string item)
pushstring "Topless_01"
call @add_item(string item)
pushstring "Tourist_01"
call @add_item(string item)
pushstring "Tourist_02"
call @add_item(string item)
pushstring "Vinewood_01"
call @add_item(string item)
pushstring "Vinewood_02"
call @add_item(string item)
pushstring "Vinewood_03"
call @add_item(string item)
pushstring "Vinewood_04"
call @add_item(string item)
pushstring "Yoga_01"
call @add_item(string item)
pushstring "FemaleAgent"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_ambent_male_m
:draw_modelchanger_ambent_male_m
PushB 45
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "ACult_01"
call @add_item(string item)
pushstring "AfriAmer_01"
call @add_item(string item)
pushstring "Beach_01"
call @add_item(string item)
pushstring "Beach_02"
call @add_item(string item)
pushstring "BevHills_01"
call @add_item(string item)
pushstring "BevHills_02"
call @add_item(string item)
pushstring "Business_01"
call @add_item(string item)
pushstring "EastSA_01"
call @add_item(string item)
pushstring "EastSA_02"
call @add_item(string item)
pushstring "Farmer_01"
call @add_item(string item)
pushstring "FatLatin_01"
call @add_item(string item)
pushstring "GenFat_01"
call @add_item(string item)
pushstring "GenFat_02"
call @add_item(string item)
pushstring "Golfer_01"
call @add_item(string item)
pushstring "HasJew_01"
call @add_item(string item)
pushstring "Hillbilly_01"
call @add_item(string item)
pushstring "Hillbilly_02"
call @add_item(string item)
pushstring "Indian_01"
call @add_item(string item)
pushstring "KTown_01"
call @add_item(string item)
pushstring "Malibu_01"
call @add_item(string item)
pushstring "MexCntry_01"
call @add_item(string item)
pushstring "MexLabor_01"
call @add_item(string item)
pushstring "OG_Boss_01"
call @add_item(string item)
pushstring "Paparazzi_01"
call @add_item(string item)
pushstring "Polynesian_01"
call @add_item(string item)
pushstring "ProlHost_01"
call @add_item(string item)
pushstring "RurMeth_01"
call @add_item(string item)
pushstring "Salton_01"
call @add_item(string item)
pushstring "Salton_02"
call @add_item(string item)
pushstring "Salton_03"
call @add_item(string item)
pushstring "Salton_04"
call @add_item(string item)
pushstring "Skater_01"
call @add_item(string item)
pushstring "Skidrow_01"
call @add_item(string item)
pushstring "SoCenLat_01"
call @add_item(string item)
pushstring "SouCent_01"
call @add_item(string item)
pushstring "SouCent_02"
call @add_item(string item)
pushstring "SouCent_03"
call @add_item(string item)
pushstring "SouCent_04"
call @add_item(string item)
pushstring "StLat_02"
call @add_item(string item)
pushstring "Tennis_01"
call @add_item(string item)
pushstring "Tourist_01"
call @add_item(string item)
pushstring "TrampBeac_01"
call @add_item(string item)
pushstring "Tramp_01"
call @add_item(string item)
pushstring "TranVest_01"
call @add_item(string item)
pushstring "TranVest_02"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_ambent_male_o
:draw_modelchanger_ambent_male_o
PushB 10
SetStatic1 6//item count
pushstring "Old"
SetStatic2 380//header
pushstring "ACult_01"
call @add_item(string item)
pushstring "ACult_02"
call @add_item(string item)
pushstring "Beach_01"
call @add_item(string item)
pushstring "GenStreet_01"
call @add_item(string item)
pushstring "KTown_01"
call @add_item(string item)
pushstring "Salton_01"
call @add_item(string item)
pushstring "SouCent_01"
call @add_item(string item)
pushstring "SouCent_02"
call @add_item(string item)
pushstring "SouCent_03"
call @add_item(string item)
pushstring "Tramp_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_ambent_male_y
:draw_modelchanger_ambent_male_y
PushB 68
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "ACult_01"
call @add_item(string item)
pushstring "ACult_02"
call @add_item(string item)
pushstring "BeachVesp_01"
call @add_item(string item)
pushstring "BeachVesp_02"
call @add_item(string item)
pushstring "Beach_01"
call @add_item(string item)
pushstring "Beach_02"
call @add_item(string item)
pushstring "Beach_03"
call @add_item(string item)
pushstring "BevHills_01"
call @add_item(string item)
pushstring "BevHills_02"
call @add_item(string item)
pushstring "BreakDance_01"
call @add_item(string item)
pushstring "BusiCas_01"
call @add_item(string item)
pushstring "Business_01"
call @add_item(string item)
pushstring "Business_02"
call @add_item(string item)
pushstring "Business_03"
call @add_item(string item)
pushstring "Cyclist_01"
call @add_item(string item)
pushstring "DHill_01"
call @add_item(string item)
pushstring "Downtown_01"
call @add_item(string item)
pushstring "EastSA_01"
call @add_item(string item)
pushstring "EastSA_02"
call @add_item(string item)
pushstring "Epsilon_01"
call @add_item(string item)
pushstring "Epsilon_02"
call @add_item(string item)
pushstring "Gay_01"
call @add_item(string item)
pushstring "Gay_02"
call @add_item(string item)
pushstring "GenStreet_01"
call @add_item(string item)
pushstring "GenStreet_02"
call @add_item(string item)
pushstring "Golfer_01"
call @add_item(string item)
pushstring "HasJew_01"
call @add_item(string item)
pushstring "Hiker_01"
call @add_item(string item)
pushstring "Hippy_01"
call @add_item(string item)
pushstring "Hipster_01"
call @add_item(string item)
pushstring "Hipster_02"
call @add_item(string item)
pushstring "Hipster_03"
call @add_item(string item)
pushstring "Indian_01"
call @add_item(string item)
pushstring "Jetski_01"
call @add_item(string item)
pushstring "Juggalo_01"
call @add_item(string item)
pushstring "KTown_01"
call @add_item(string item)
pushstring "KTown_02"
call @add_item(string item)
pushstring "Latino_01"
call @add_item(string item)
pushstring "MethHead_01"
call @add_item(string item)
pushstring "MexThug_01"
call @add_item(string item)
pushstring "MotoX_01"
call @add_item(string item)
pushstring "MotoX_02"
call @add_item(string item)
pushstring "MusclBeac_01"
call @add_item(string item)
pushstring "MusclBeac_02"
call @add_item(string item)
pushstring "Polynesian_01"
call @add_item(string item)
pushstring "RoadCyc_01"
call @add_item(string item)
pushstring "Runner_01"
call @add_item(string item)
pushstring "Runner_02"
call @add_item(string item)
pushstring "Salton_01"
call @add_item(string item)
pushstring "Skater_01"
call @add_item(string item)
pushstring "Skater_02"
call @add_item(string item)
pushstring "SouCent_01"
call @add_item(string item)
pushstring "SouCent_02"
call @add_item(string item)
pushstring "SouCent_03"
call @add_item(string item)
pushstring "SouCent_04"
call @add_item(string item)
pushstring "StBla_01"
call @add_item(string item)
pushstring "StBla_02"
call @add_item(string item)
pushstring "StLat_01"
call @add_item(string item)
pushstring "StWhi_01"
call @add_item(string item)
pushstring "StWhi_02"
call @add_item(string item)
pushstring "Sunbathe_01"
call @add_item(string item)
pushstring "Surfer_01"
call @add_item(string item)
pushstring "VinDouche_01"
call @add_item(string item)
pushstring "Vinewood_01"
call @add_item(string item)
pushstring "Vinewood_02"
call @add_item(string item)
pushstring "Vinewood_03"
call @add_item(string item)
pushstring "Vinewood_04"
call @add_item(string item)
pushstring "Yoga_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_gang_female_y
:draw_modelchanger_gang_female_y
Push_4
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "ballas_01"
call @add_item(string item)
pushstring "Families_01"
call @add_item(string item)
pushstring "Lost_01"
call @add_item(string item)
pushstring "Vagos_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_gang_male_m
:draw_modelchanger_gang_male_m
PushB 11
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "ArmBoss_01"
call @add_item(string item)
pushstring "ArmGoon_01"
call @add_item(string item)
pushstring "ArmLieut_01"
call @add_item(string item)
pushstring "ChemWork_01"
call @add_item(string item)
pushstring "ChiBoss_01"
call @add_item(string item)
pushstring "ChiCold_01"
call @add_item(string item)
pushstring "ChiGoon_01"
call @add_item(string item)
pushstring "ChiGoon_02"
call @add_item(string item)
pushstring "KorBoss_01"
call @add_item(string item)
pushstring "MexBoss_01"
call @add_item(string item)
pushstring "MexBoss_02"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_gang_male_y
:draw_modelchanger_gang_male_y
PushB 26
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "ArmGoon_02"
call @add_item(string item)
pushstring "Azteca_01"
call @add_item(string item)
pushstring "BallaEast_01"
call @add_item(string item)
pushstring "BallaOrig_01"
call @add_item(string item)
pushstring "BallaSout_01"
call @add_item(string item)
pushstring "FamCA_01"
call @add_item(string item)
pushstring "FamDNF_01"
call @add_item(string item)
pushstring "FamFor_01"
call @add_item(string item)
pushstring "Korean_01"
call @add_item(string item)
pushstring "Korean_02"
call @add_item(string item)
pushstring "KorLieut_01"
call @add_item(string item)
pushstring "Lost_01"
call @add_item(string item)
pushstring "Lost_02"
call @add_item(string item)
pushstring "Lost_03"
call @add_item(string item)
pushstring "MexGang_01"
call @add_item(string item)
pushstring "MexGoon_01"
call @add_item(string item)
pushstring "MexGoon_02"
call @add_item(string item)
pushstring "MexGoon_03"
call @add_item(string item)
pushstring "PoloGoon_01"
call @add_item(string item)
pushstring "PoloGoon_02"
call @add_item(string item)
pushstring "SalvaBoss_01"
call @add_item(string item)
pushstring "SalvaGoon_01"
call @add_item(string item)
pushstring "SalvaGoon_02"
call @add_item(string item)
pushstring "SalvaGoon_03"
call @add_item(string item)
pushstring "StrPunk_01"
call @add_item(string item)
pushstring "StrPunk_02"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_mp_gang_m
:draw_modelchanger_mp_gang_m
Push_1
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "Pros_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_mp_special_m
:draw_modelchanger_mp_special_m
Push_1
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "Armoured_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_special_female_m
:draw_modelchanger_special_female_m
Push_4
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "Fembarber"
call @add_item(string item)
pushstring "Maid_01"
call @add_item(string item)
pushstring "Shop_HIGH"
call @add_item(string item)
pushstring "SweatShop_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_special_female_y
:draw_modelchanger_special_female_y
PushB 19
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "AirHostess_01"
call @add_item(string item)
pushstring "Bartender_01"
call @add_item(string item)
pushstring "Baywatch_01"
call @add_item(string item)
pushstring "Cop_01"
call @add_item(string item)
pushstring "Factory_01"
call @add_item(string item)
pushstring "Hooker_01"
call @add_item(string item)
pushstring "Hooker_02"
call @add_item(string item)
pushstring "Hooker_03"
call @add_item(string item)
pushstring "Migrant_01"
call @add_item(string item)
pushstring "MovPrem_01"
call @add_item(string item)
pushstring "Ranger_01"
call @add_item(string item)
pushstring "Scrubs_01"
call @add_item(string item)
pushstring "Sheriff_01"
call @add_item(string item)
pushstring "Shop_LOW"
call @add_item(string item)
pushstring "Shop_MID"
call @add_item(string item)
pushstring "StripperLite"
call @add_item(string item)
pushstring "Stripper_01"
call @add_item(string item)
pushstring "Stripper_02"
call @add_item(string item)
pushstring "SweatShop_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_special_male_m
:draw_modelchanger_special_male_m
PushB 48
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "AmmuCountry"
call @add_item(string item)
pushstring "Armoured_01"
call @add_item(string item)
pushstring "Armoured_02"
call @add_item(string item)
pushstring "AutoShop_01"
call @add_item(string item)
pushstring "AutoShop_02"
call @add_item(string item)
pushstring "Bouncer_01"
call @add_item(string item)
pushstring "ChemSec_01"
call @add_item(string item)
pushstring "CIASec_01"
call @add_item(string item)
pushstring "CntryBar_01"
call @add_item(string item)
pushstring "DockWork_01"
call @add_item(string item)
pushstring "Doctor_01"
call @add_item(string item)
pushstring "FIBOffice_01"
call @add_item(string item)
pushstring "FIBOffice_02"
call @add_item(string item)
pushstring "Gaffer_01"
call @add_item(string item)
pushstring "Gardener_01"
call @add_item(string item)
pushstring "GenTransport"
call @add_item(string item)
pushstring "HairDress_01"
call @add_item(string item)
pushstring "HighSec_01"
call @add_item(string item)
pushstring "HighSec_02"
call @add_item(string item)
pushstring "Janitor"
call @add_item(string item)
pushstring "LatHandy_01"
call @add_item(string item)
pushstring "LifeInvad_01"
call @add_item(string item)
pushstring "Linecook"
call @add_item(string item)
pushstring "LSMetro_01"
call @add_item(string item)
pushstring "Mariachi_01"
call @add_item(string item)
pushstring "Marine_01"
call @add_item(string item)
pushstring "Marine_02"
call @add_item(string item)
pushstring "Migrant_01"
call @add_item(string item)
pushstring "MovAlien_01"
call @add_item(string item)
pushstring "MovPrem_01"
call @add_item(string item)
pushstring "MovSpace_01"
call @add_item(string item)
pushstring "Paramedic_01"
call @add_item(string item)
pushstring "Pilot_01"
call @add_item(string item)
pushstring "Pilot_02"
call @add_item(string item)
pushstring "Postal_01"
call @add_item(string item)
pushstring "Postal_02"
call @add_item(string item)
pushstring "PrisGuard_01"
call @add_item(string item)
pushstring "Scientist_01"
call @add_item(string item)
pushstring "Security_01"
call @add_item(string item)
pushstring "SnowCop_01"
call @add_item(string item)
pushstring "StrPerf_01"
call @add_item(string item)
pushstring "StrPreach_01"
call @add_item(string item)
pushstring "StrVend_01"
call @add_item(string item)
pushstring "Trucker_01"
call @add_item(string item)
pushstring "UPS_01"
call @add_item(string item)
pushstring "UPS_02"
call @add_item(string item)
pushstring "FIBSec_01"
call @add_item(string item)
pushstring "CCrew_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_special_male_o
:draw_modelchanger_special_male_o
Push_1
SetStatic1 6//item count
pushstring "Old"
SetStatic2 380//header
pushstring "Busker_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_special_male_y
:draw_modelchanger_special_male_y
PushB 46
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "AirWorker"
call @add_item(string item)
pushstring "AmmuCity_01"
call @add_item(string item)
pushstring "ArmyMech_01"
call @add_item(string item)
pushstring "Autopsy_01"
call @add_item(string item)
pushstring "Barman_01"
call @add_item(string item)
pushstring "BayWatch_01"
call @add_item(string item)
pushstring "BlackOps_01"
call @add_item(string item)
pushstring "BlackOps_02"
call @add_item(string item)
pushstring "BusBoy_01"
call @add_item(string item)
pushstring "Chef_01"
call @add_item(string item)
pushstring "Clown_01"
call @add_item(string item)
pushstring "Construct_01"
call @add_item(string item)
pushstring "Construct_02"
call @add_item(string item)
pushstring "Cop_01"
call @add_item(string item)
pushstring "Dealer_01"
call @add_item(string item)
pushstring "DevinSec_01"
call @add_item(string item)
pushstring "DockWork_01"
call @add_item(string item)
pushstring "Doorman_01"
call @add_item(string item)
pushstring "DWService_01"
call @add_item(string item)
pushstring "DWService_02"
call @add_item(string item)
pushstring "Factory_01"
call @add_item(string item)
pushstring "Fireman_01"
call @add_item(string item)
pushstring "Garbage"
call @add_item(string item)
pushstring "Grip_01"
call @add_item(string item)
pushstring "HwayCop_01"
call @add_item(string item)
pushstring "Marine_01"
call @add_item(string item)
pushstring "Marine_02"
call @add_item(string item)
pushstring "Marine_03"
call @add_item(string item)
pushstring "Mime"
call @add_item(string item)
pushstring "PestCont_01"
call @add_item(string item)
pushstring "Pilot_01"
call @add_item(string item)
pushstring "PrisMuscl_01"
call @add_item(string item)
pushstring "Prisoner_01"
call @add_item(string item)
pushstring "Ranger_01"
call @add_item(string item)
pushstring "Robber_01"
call @add_item(string item)
pushstring "Sheriff_01"
call @add_item(string item)
pushstring "Shop_MASK"
call @add_item(string item)
pushstring "StrVend_01"
call @add_item(string item)
pushstring "Swat_01"
call @add_item(string item)
pushstring "USCG_01"
call @add_item(string item)
pushstring "Valet_01"
call @add_item(string item)
pushstring "Waiter_01"
call @add_item(string item)
pushstring "WinClean_01"
call @add_item(string item)
pushstring "XMech_01"
call @add_item(string item)
pushstring "XMech_02"
call @add_item(string item)
pushstring "BlackOps_03"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_unique_female_m
:draw_modelchanger_unique_female_m
Push_3
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "Corpse_01"
call @add_item(string item)
pushstring "Miranda"
call @add_item(string item)
pushstring "ProMourn_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_unique_female_o
:draw_modelchanger_unique_female_o
Push_2
SetStatic1 6//item count
pushstring "Old"
SetStatic2 380//header
pushstring "MovieStar"
call @add_item(string item)
pushstring "ProlHost_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_unique_female_y
:draw_modelchanger_unique_female_y
PushB 10
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "BikerChic"
call @add_item(string item)
pushstring "COMJane"
call @add_item(string item)
pushstring "corpse_01"
call @add_item(string item)
pushstring "corpse_02"
call @add_item(string item)
pushstring "HotPosh_01"
call @add_item(string item)
pushstring "JewelAss_01"
call @add_item(string item)
pushstring "Mistress"
call @add_item(string item)
pushstring "PoppyMich"
call @add_item(string item)
pushstring "Princess"
call @add_item(string item)
pushstring "SpyActress"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_unique_male_m
:draw_modelchanger_unique_male_m
PushB 19
SetStatic1 6//item count
pushstring "Midlife"
SetStatic2 380//header
pushstring "Aldinapoli"
call @add_item(string item)
pushstring "BankMan"
call @add_item(string item)
pushstring "BikeHire_01"
call @add_item(string item)
pushstring "FIBArchitect"
call @add_item(string item)
pushstring "FilmDirector"
call @add_item(string item)
pushstring "GlenStank_01"
call @add_item(string item)
pushstring "Griff_01"
call @add_item(string item)
pushstring "Jesus_01"
call @add_item(string item)
pushstring "JewelSec_01"
call @add_item(string item)
pushstring "JewelThief"
call @add_item(string item)
pushstring "MarkFost"
call @add_item(string item)
pushstring "PartyTarget"
call @add_item(string item)
pushstring "ProlSec_01"
call @add_item(string item)
pushstring "ProMourn_01"
call @add_item(string item)
pushstring "RivalPap"
call @add_item(string item)
pushstring "SpyActor"
call @add_item(string item)
pushstring "WillyFist"
call @add_item(string item)
pushstring "DOA_01"
call @add_item(string item)
pushstring "EdToh"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_unique_male_o
:draw_modelchanger_unique_male_o
Push_3
SetStatic1 6//item count
pushstring "Old"
SetStatic2 380//header
pushstring "FinGuru_01"
call @add_item(string item)
pushstring "TapHillBilly"
call @add_item(string item)
pushstring "Tramp_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//> draw_modelchanger_unique_male_y
:draw_modelchanger_unique_male_y
PushB 25
SetStatic1 6//item count
pushstring "Young"
SetStatic2 380//header
pushstring "Abner"
call @add_item(string item)
pushstring "AntonB"
call @add_item(string item)
pushstring "BabyD"
call @add_item(string item)
pushstring "Baygor"
call @add_item(string item)
pushstring "BurgerDrug_01"
call @add_item(string item)
pushstring "Chip"
call @add_item(string item)
pushstring "Cyclist_01"
call @add_item(string item)
pushstring "FIBMugger_01"
call @add_item(string item)
pushstring "Guido_01"
call @add_item(string item)
pushstring "GunVend_01"
call @add_item(string item)
pushstring "Hippie_01"
call @add_item(string item)
pushstring "ImpoRage"
call @add_item(string item)
pushstring "Justin"
call @add_item(string item)
pushstring "Mani"
call @add_item(string item)
pushstring "MilitaryBum"
call @add_item(string item)
pushstring "Paparazzi"
call @add_item(string item)
pushstring "Party_01"
call @add_item(string item)
pushstring "Pogo_01"
call @add_item(string item)
pushstring "Prisoner_01"
call @add_item(string item)
pushstring "ProlDriver_01"
call @add_item(string item)
pushstring "RSRanger_01"
call @add_item(string item)
pushstring "SBike"
call @add_item(string item)
pushstring "StagGrm_01"
call @add_item(string item)
pushstring "Tattoo_01"
call @add_item(string item)
pushstring "Zombie_01"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> vehicletypechanger
:vehicletypechanger
PushB 8
SetStatic1 6//item count
pushstring "Car"
call @add_item(string item)
pushstring "Quadbike"
call @add_item(string item)
pushstring "Blimp"
call @add_item(string item)
pushstring "Bike"
call @add_item(string item)
pushstring "Bicycle"
call @add_item(string item)
pushstring "Heli"
call @add_item(string item)
pushstring "Plane"
call @add_item(string item)
pushstring "Boat"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> drawing menu level 6
//> menu drawing level6 handling
:menulevel6
GetStatic1 4//last selected of item level zero
Switch [2 @nextinmenulevel6_for_vehicleoptions]
call @menuerror
Return 1 0//endupdate
//> vehicle options submenus menulevel 6
:nextinmenulevel6_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @garage_level6]
call @menuerror
Return 1 0//endupdate
:garage_level6
GetStatic1 1//last selected of item level two
Switch [5 @draw_handling_data_level6]
call @menuerror
Return 1 0//endupdate
:draw_handling_data_level6
GetStatic1 34//last selected of item level three
push_1
jumpeq @draw_handling_data_presets
call @menuerror
Return 1 0//endupdate
//<
//<
//> draw handling data presets
:draw_handling_data_presets
PushB 8
SetStatic1 6//item count
PushString "Handling Editor"
call @add_item(string item)
PushString "Speed Line (Entity)"
call @add_item(string item)
PushString "Wheelie Line (Sabre)"
call @add_item(string item)
PushString "Wheelie Line (Dump)"
call @add_item(string item)
PushString "Lifted Line (Sandking)"
call @add_item(string item)
PushString "Awd Drift Line (Sultan)"
call @add_item(string item)
PushString "Rwd Drift Line (Futo)"
call @add_item(string item)
PushString "Awd Drift Line (Penumbra)"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> drawing menu level 7
//> menu drawing level 7 handling
:menulevel7
GetStatic1 4//last selected of item level zero
Switch [2 @nextinmenulevel7_for_vehicleoptions]
call @menuerror
Return 1 0//endupdate
//> vehicle options submenus menulevel 7
:nextinmenulevel7_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @garage_level7]
call @menuerror
Return 1 0//endupdate
:garage_level7
GetStatic1 1//last selected of item level two
Switch [5 @draw_handling_data_level7]
call @menuerror
Return 1 0//endupdate
:draw_handling_data_level7
GetStatic1 34//last selected of item level three
push_1
jumpeq @draw_handling_data_presets7
call @menuerror
Return 1 0//endupdate
:draw_handling_data_presets7
GetStatic1 204//last selected of item level six
push_1
jumpeq @draw_handling_editor7
call @menuerror
//<
//<
//> draw handling data presets
:draw_handling_editor7
Push_6
SetStatic1 6//item count
PushString "General"
call @add_item(string item)
PushString "Gears & Breaks"
call @add_item(string item)
PushString "Traction"
call @add_item(string item)
PushString "Suspension"
call @add_item(string item)
PushString "Damage"
call @add_item(string item)
PushString "Miscellanous"
call @add_item(string item)
Return 1 0//endupdate
//<
//<
//> drawing menu level 8
//> menu drawing level 8 handling
:menulevel8
GetStatic1 4//last selected of item level zero
Switch [2 @nextinmenulevel8_for_vehicleoptions]
call @menuerror
Return 1 0//endupdate
//> vehicle options submenus menulevel 8
:nextinmenulevel8_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @garage_level8]
call @menuerror
Return 1 0//endupdate
:garage_level8
GetStatic1 1//last selected of item level two
Switch [5 @draw_handling_data_level8]
call @menuerror
Return 1 0//endupdate
:draw_handling_data_level8
GetStatic1 34//last selected of item level three
push_1
jumpeq @draw_handling_data_presets8
call @menuerror
Return 1 0//endupdate
:draw_handling_data_presets8
GetStatic1 204//last selected of item level six
push_1
jumpeq @draw_handling_editor_level8
call @menuerror
Return 1 0//endupdate
:draw_handling_editor_level8
GetStatic1 65//saved handling data hash
call @veh_model_to_handling_hash(hash)
call @get_handling_pointer_from_hash(int hash)
dup
setstatic1 100
push_0
jumpne @handling_editor_pointer_ok
call @menuerror
Return 1 0//endupdate
:handling_editor_pointer_ok
PushF_1
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
GetStatic1 206//last selected of item level seven
Switch [1 @draw_handling_editor_general]:[2 @draw_handling_editor_gears&breaks]:[3 @draw_handling_editor_traction]:[4 @draw_handling_editor_suspension]:[5 @draw_handling_editor_damage]:[6 @draw_handling_editor_misc]
call @menuerror
Return 1 0//endupdate
//<
//<
//> draw_handling_editor_general
:draw_handling_editor_general
Pushb 12
SetStatic1 6//item count
PushString "Precision Level"
Push_4
Push -4
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Mass"
pushf 999999999
pushf -10000
getstatic1 100
add1 4
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Drag Coeff"
pushf 999999999
pushf -10000
getstatic1 100
add1 8
pget
pushf 0.000099999997
fdiv
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Centre Of Mass X"
pushf 999999999
pushf -10000
getstatic1 100
add1 12
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Centre Of Mass Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 16
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Centre Of Mass Z"
pushf 999999999
pushf -10000
getstatic1 100
add1 20
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Centre Of Mass X Mirror"
pushf 999999999
pushf -10000
getstatic1 100
add1 24
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Inertia Multiplier X"
pushf 999999999
pushf -10000
getstatic1 100
add1 28
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Inertia Multiplier Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 32
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Inertia Multiplier Z"
pushf 999999999
pushf -10000
getstatic1 100
add1 36
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Inertia Multiplier X Mirror"
pushf 999999999
pushf -10000
getstatic1 100
add1 40
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Percent Submerged"
pushf 120
pushf 10
getstatic1 100
add1 44
pget
call @add_float(string item,float maxval,float minval,float startindex)
Return 1 0//endupdate
//<
//> draw_handling_editor_gears&breaks
:draw_handling_editor_gears&breaks
Pushb 16
SetStatic1 6//item count
PushString "Precision Level"
Push_4
Push -4
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Drive Bias Front X"
pushf 999999999
pushf -10000
getstatic1 100
add1 52
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Drive Bias Front Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 56
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Drive Gears"
pushb 255
push_0
getstatic1 100
add1 60
pget
pushb 24
callnative shift_right 2 1
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Drive Inertia"
pushf 999999999
pushf -10000
getstatic1 100
add1 64
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Clutch Up Shift Rate"
pushf 999999999
pushf -10000
getstatic1 100
add1 68
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Clutch Down Shift Rate"
pushf 999999999
pushf -10000
getstatic1 100
add1 72
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Drive Force"
pushf 999999999
pushf -10000
getstatic1 100
add1 76
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Max Speed"
pushf 999999999
pushf_1
getstatic1 100
add1 84//y
pget
pushf 0.27777779
fdiv
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Break Force"
pushf 999999999
pushf -10000
getstatic1 100
add1 88
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Unk Brake"
pushf 999999999
pushf -10000
getstatic1 100
add1 92
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Break Bias Front X"
pushf 999999999
pushf -10000
getstatic1 100
add1 96
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Break Bias Front Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 100
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Handbrake Force"
pushf 999999999
pushf -10000
getstatic1 100
add1 104
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Steering Lock X"
pushf 999999999
pushf -10000
getstatic1 100
add1 108
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Steering Lock Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 112
pget
call @add_float(string item,float maxval,float minval,float startindex)
Return 1 0//endupdate
//<
//> draw_handling_editor_traction
:draw_handling_editor_traction
Pushb 14
SetStatic1 6//item count
PushString "Precision Level"
Push_4
Push -4
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Curve Max"
pushf 999999999
pushf -10000
getstatic1 100
add1 116
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Unk Curve"
pushf 999999999
pushf -10000
getstatic1 100
add1 120
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Curve Min"
pushf 999999999
pushf -10000
getstatic1 100
add1 124
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Curve Lateral X"
pushf 999999999
pushf -10000
getstatic1 100
add1 128
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Curve Lateral Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 132
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Curve Lateral Z"
pushf 999999999
pushf -10000
getstatic1 100
add1 136
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Spring Delta Max"
pushf 999999999
pushf -10000
getstatic1 100
add1 140
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Unk Traction"
pushf 999999999
pushf -10000
getstatic1 100
add1 144
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Low Speed Loss Mult"
pushf 999999999
pushf -10000
getstatic1 100
add1 148
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Camber Stiffness"
pushf 999999999
pushf -10000
getstatic1 100
add1 152
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Bias Front X"
pushf 999999999
pushf -10000
getstatic1 100
add1 156
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Bias Front Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 160
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Loss Mult"
pushf 999999999
pushf -10000
getstatic1 100
add1 164
pget
call @add_float(string item,float maxval,float minval,float startindex)
Return 1 0//endupdate
//<
//> draw_handling_editor_suspension
:draw_handling_editor_suspension
Pushb 14
SetStatic1 6//item count
PushString "Precision Level"
Push_4
Push -4
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Force"
pushf 999999999
pushf -10000
getstatic1 100
add1 168
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Comp Damp"
pushf 999999999
pushf -10000
getstatic1 100
add1 172
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Rebound Damp"
pushf 999999999
pushf -10000
getstatic1 100
add1 176
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Upper Limit"
pushf 999999999
pushf -10000
getstatic1 100
add1 180
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Lower Limit"
pushf 999999999
pushf -10000
getstatic1 100
add1 184
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Raise"
pushf 999999999
pushf -10000
getstatic1 100
add1 188
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Bias Front X"
pushf 999999999
pushf -10000
getstatic1 100
add1 192
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Bias Front Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 196
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Anti Roll Bar Force"
pushf 999999999
pushf -10000
getstatic1 100
add1 200
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Anti Roll Bar Bias Front X"
pushf 999999999
pushf -10000
getstatic1 100
add1 204
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Anti Roll Bar Bias Front Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 208
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Roll Centre Height Front"
pushf 999999999
pushf -10000
getstatic1 100
add1 212
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Roll Centre Height Rear"
pushf 999999999
pushf -10000
getstatic1 100
add1 216
pget
call @add_float(string item,float maxval,float minval,float startindex)
Return 1 0//endupdate
//<
//> draw_handling_editor_damage
:draw_handling_editor_damage
Pushb 7
SetStatic1 6//item count
PushString "Precision Level"
Push_4
Push -4
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Collision Mult"
pushf 999999999
pushf -10000
getstatic1 100
add1 220
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Weapon Mult"
pushf 999999999
pushf -10000
getstatic1 100
add1 224
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Deformation Mult"
pushf 999999999
pushf -10000
getstatic1 100
add1 228
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Engine Mult"
pushf 999999999
pushf -10000
getstatic1 100
add1 232
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Petrol Tank Volume"
pushf 999999999
pushf -10000
getstatic1 100
add1 236
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Oil Volume"
pushf 999999999
pushf -10000
getstatic1 100
add1 240
pget
call @add_float(string item,float maxval,float minval,float startindex)
Return 1 0//endupdate
//<
//> draw_handling_editor_misc
:draw_handling_editor_misc
Pushb 13
SetStatic1 6//item count
PushString "Precision Level"
Push_4
Push -4
call @precision_level_to_int
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Unk Misc"
pushf 999999999
pushf -10000
getstatic1 100
add1 244
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Seat Offset Dist X"
pushf 999999999
pushf -10000
getstatic1 100
add1 248
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Seat Offset Dist Y"
pushf 999999999
pushf -10000
getstatic1 100
add1 252
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Seat Offset Dist Z"
pushf 999999999
pushf -10000
getstatic1 100
add2 256
pget
call @add_float(string item,float maxval,float minval,float startindex)
PushString "Monetary Value"
push 999999999
push -10000
getstatic1 100
add2 260
pget
call @add_number(string item,int maxval,int minval,int startindex)
PushString "Model Flag Index"
push_7
push_0
getstatic1 208//model flags index
call @add_autonumber(string item,int maxval,int minval,int startindex)
//add_autonumber(string item,int maxval,int minval,int startindex)
PushString "M Flags"
push_4
push_0
getstatic1 100
add2 264
pget
pushb 28
getstatic1 208//model flags index
mult1 4
sub
callnative shift_right 2 1
pushb 15
and
call @flags_to_enum
pushb 16//model flags
push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Handling Flag Index"
push_7
push_0
getstatic1 209//handling flags index
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "H Flags"
push_4
push_0
getstatic1 100
add2 268
pget
pushb 28
getstatic1 209//handling flags index
mult1 4
sub
callnative shift_right 2 1
pushb 15
and
call @hflags_to_enum
pushb 17//handling flags
push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "Door Damage Flag Index"
push_7
push_0
getstatic1 210//damage flags index
call @add_autonumber(string item,int maxval,int minval,int startindex)
PushString "Door Damage Flags"
push_4
push_0
getstatic1 100
add2 272
pget
pushb 28
getstatic1 210//damage flags index
mult1 4
sub
callnative shift_right 2 1
pushb 15
and
call @dflags_to_enum
pushb 18//damage flags
push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
PushString "AI Handling"
push_3
push_0
getstatic1 100
add2 288
pget
call @aihandling_to_index
pushb 19//ai handling
push_0
call @add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Return 1 0//endupdate
//<
//<
:execute(isrightexe,jumptype)
Function 2 10
GetFrame1 1
jumpfalse @startexecute
GetFrame1 1
switch [1 @ufo_funny_vehicle]:[2 @prologue_plane_funny_vehicle]:[3 @cablecar_funny_vehicle]:[4 @tram_funny_vehicle]:[5 @seatug_funny_vehicle]:[6 @landtug_funny_vehicle]:[7 @favorites_change_components]:[8 @saveobject]:[9 @copyobject]:[10 @copyobjectattached]:[11 @map_mod_windmill_load1]:[12 @map_mod_windmill_load2]:[13 @ufo_funny_object]:[14 @prologue_plane_funny_object]:[15 @cablecar_funny_object]:[16 @tram_funny_object]:[17 @seatug_funny_object]:[18 @landtug_funny_object]:[47 @funnyvehs_animals_A_C_Deer]:[48 @funnyvehs_animals_A_C_boar]:[49 @funnyvehs_animals_A_C_Cormorant]:[50 @funnyvehs_animals_A_C_cow]:[51 @funnyvehs_animals_A_C_mtlion]:[52 @funnyvehs_animals_A_C_pig]:[53 @funnyvehs_animals_A_C_SharkTiger]:[54 @bodyguards_favorites]:[55 @fx_firework]:[56 @anim_dict_custom_anim]:[58 @model_change_favorites_animals]
PushString "Execute Error"
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:startexecute
//> menu level
GetStatic1 7//menu level
Switch [0 @exemenulevel0]:[1 @exemenulevel1]:[2 @exemenulevel2]:[3 @exemenulevel3]:[4 @exemenulevel4]:[5 @exemenulevel5]:[6 @exemenulevel6]:[7 @exemenulevel7]:[8 @exemenulevel8]
PushString "Execute Error"
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//<
//> menu execution level0
:exemenulevel0
call @advance_menu_level
Return 2 0//endexecute
//<
//> menu execution level1
//> menu execution level1 handling
:exemenulevel1
GetStatic1 4//last selected of item level zero
Switch [1 @exe_menu_level_1_last_select_1_atzero]:[2 @exe_menu_level_1_last_select_2_atzero]:[3 @exe_menu_level_1_last_select_3_atzero]:[4 @exe_menu_level_1_last_select_4_atzero]:[5 @exe_menu_level_1_last_select_5_atzero]:[6 @exe_menu_level_1_last_select_6_atzero]:[7 @exe_menu_level_1_last_select_7_atzero]:[8 @exe_menu_level_1_last_select_8_atzero]
Return 2 0//endexecute
//<
//> player options
:exe_menu_level_1_last_select_1_atzero
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_1_last_select_1_atzero_item1]:[2 @exe_menu_level_1_last_select_1_atzero_item2]:[3 @exe_menu_level_1_last_select_1_atzero_item3]:[4 @exe_menu_level_1_last_select_1_atzero_item4]:[5 @exe_menu_level_1_last_select_1_atzero_item5]:[6 @exe_menu_level_1_last_select_1_atzero_item6]:[7 @exe_menu_level_1_last_select_1_atzero_item7]:[8 @exe_menu_level_1_last_select_1_atzero_item8]:[9 @exe_menu_level_1_last_select_1_atzero_item9]:[10 @exe_menu_level_1_last_select_1_atzero_item10]:[11 @exe_menu_level_1_last_select_1_atzero_item11]:[12 @exe_menu_level_1_last_select_1_atzero_item12]:[13 @exe_menu_level_1_last_select_1_atzero_item13]:[14 @exe_menu_level_1_last_select_1_atzero_item14]:[15 @exe_menu_level_1_last_select_1_atzero_item15]:[16 @exe_menu_level_1_last_select_1_atzero_item16]:[17 @exe_menu_level_1_last_select_1_atzero_item17]:[18 @exe_menu_level_1_last_select_1_atzero_item18]:[19 @exe_menu_level_1_last_select_1_atzero_item19]:[20 @exe_menu_level_1_last_select_1_atzero_item20]
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item1
//Online Players
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item2
//All Online Players
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item3
//Model Changer
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item4
//Animations
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item5
//Scenarios
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item6
//Stat Manager
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item7
//Bodyguards
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item8
GetStaticP1 20
Push_0//godmode bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
GetStatic1 20
Push_0//godmode bool
CallNative is_bit_set 2 1
not
Push_0
cmpeq
jumpfalse @dummylabel1
Return 2 0//endexecute
:dummylabel1
CallNative player_id 0 1
Push_0
CallNative set_player_invincible 2 0
callnative player_ped_id 0 1
Push_0
callnative set_ped_can_be_knocked_off_vehicle 2 0
callnative player_ped_id 0 1
Push_1
callnative set_ped_can_be_dragged_out 2 0
CallNative player_ped_id 0 1
Push_1
CallNative set_ped_can_ragdoll 2 0
CallNative player_ped_id 0 1
Push_1
CallNative set_ped_can_ragdoll_from_player_impact 2 0
CallNative player_ped_id 0 1
pushb 32//PED_FLAG_CAN_FLY_THRU_WINDSCREEN
push_1
callnative set_ped_config_flag 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item9
GetStatic1 20
Push_3//never wanted bool
CallNative is_bit_set 2 1
Not
JumpFalse @neverwantedboolfalse
GetStaticP1 20
Push_3//never wanted bool
CallNative set_bit 2 0
CallNative player_id 0 1
CallNative clear_player_wanted_level 1 0
Push_0
CallNative set_max_wanted_level 1 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:neverwantedboolfalse
GetStaticP1 20
Push_3//never wanted bool
CallNative clear_bit 2 0
Push_1
Call @updatemenutext(istoggle)
Push_5
CallNative set_max_wanted_level 1 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item10
GetStatic1 20
Push_1//superrun bool
CallNative is_bit_set 2 1
Not
JumpFalse @superrunboolfalse
GetStaticP1 20
Push_1//superrun bool
CallNative set_bit 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:superrunboolfalse
CallNative player_ped_id 0 1
Push_1
CallNative set_ped_can_ragdoll 2 0
GetStaticP1 20
Push_1//superrun bool
CallNative clear_bit 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item11
GetStaticP1 20
PushB 8//fast run bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
GetStatic1 20
PushB 8//fast run bool
CallNative is_bit_set 2 1
not
Push_0
cmpeq
jumpfalse @dummylabel2
Return 2 0//endexecute
:dummylabel2
CallNative player_id 0 1
PushF_1
CallNative set_run_sprint_multiplier_for_player 2 0//fast run
CallNative player_id 0 1
PushF_1
CallNative set_swim_multiplier_for_player 2 0//fast swim
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item12
GetStatic1 20
Push_2//invis bool
CallNative is_bit_set 2 1
Not
JumpFalse @invisboolfalse
CallNative player_ped_id 0 1
Push_0
CallNative set_entity_visible 2 0
GetStaticP1 20
Push_2//invis bool
CallNative set_bit 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:invisboolfalse
CallNative player_ped_id 0 1
Push_1
CallNative set_entity_visible 2 0
CallNative player_ped_id 0 1
Push_1
callnative set_ped_can_be_targetted 2 0
GetStaticP1 20
Push_2//invis bool
CallNative clear_bit 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item13
GetStaticP1 20
Push_4//forcefield bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item14
GetStaticP1 20
Push_5//super jump bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item15
GetStaticP1 20
Push_6//superman
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item16
GetStaticP1 20
Push_7//unlimited ability
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item17
GetStaticP1 20
PushB 9//First Person
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
GetStatic1 20
PushB 9//First Person
CallNative is_bit_set 2 1
jumpfalse @terminate_cam
GetStatic1 25//saved first person cam
CallNative does_cam_exist 1 1
Not
JumpFalse @set_cam_active
PushString "DEFAULT_SCRIPTED_CAMERA"
Push_1
CallNative create_cam 2 1
SetStatic1 25//saved first person cam
:set_cam_active
GetStatic1 25//saved first person cam
CallNative player_ped_id 0 1
Push GetEnum("SKEL_Head")
PushF 0.00//x
PushF 0.15//y
PushF 0.08//z
Push_1
CallNative attach_cam_to_ped_bone 7 0
GetStatic1 25//saved first person cam
Push_1
CallNative set_cam_active 2 0
Push_1
Push_0
PushS 3000
Push_1
Push_0
CallNative render_script_cams 5 0
Return 2 0//endexecute
:terminate_cam
GetStatic1 25//saved first person cam
CallNative does_cam_exist 1 1
JumpFalse @fixcam
GetStatic1 25//saved first person cam
Push_0
CallNative set_cam_active 2 0
GetStatic1 25//saved first person cam
CallNative detach_cam 1 0
GetStatic1 25//saved first person cam
Push_0
CallNative destroy_cam 2 0
:fixcam
Push_0
Push_0
PushS 3000
Push_1
Push_0
CallNative render_script_cams 5 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item18
CallNative player_ped_id 0 1
dup
CallNative get_ped_max_health 1 1
CallNative set_entity_health 2 0
CallNative player_ped_id 0 1
CallNative player_id 0 1
CallNative get_player_max_armour 1 1
CallNative set_ped_armour 2 0
CallNative player_ped_id 0 1
dup
callnative clear_ped_blood_damage 1 0
callnative reset_ped_visible_damage 1 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item19
CallNative player_id 0 1
call @get_menu_number
push_0
callnative set_player_wanted_level 3 0
CallNative player_id 0 1
push_0
callnative set_player_wanted_level_now 2 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_1_atzero_item20
CallNative player_ped_id 0 1
CallNative get_entity_model 1 1
switch [GetHash("MP_M_Freemode_01") @mpdevmale]:[GetHash("MP_F_Freemode_01") @mpdevfemale]
pushstring "~r~Error:~s~ Rockstar t-shirts are only for mp characters."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:mpdevmale
CallNative player_ped_id 0 1
Push_3//component
Push_0//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
CallNative player_ped_id 0 1
Push_7//component
Push_0//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
CallNative player_ped_id 0 1
PushB2 8 15//component//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
call @get_menu_number
switch [1 @fm_rstar_m_tshirt_000]:[2 @fm_rstar_m_tshirt_001]:[3 @fm_rstar_m_tshirt_002]
Return 2 0//endexecute
:fm_rstar_m_tshirt_000
push GetHash("fm_rstar_m_tshirt_000")
SetStatic1 100
CallNative player_ped_id 0 1
PushB2 11 22//component//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
:femaledevwhite
Jump @unkdevshirt
:fm_rstar_m_tshirt_001
push GetHash("fm_rstar_m_tshirt_001")
SetStatic1 100
CallNative player_ped_id 0 1
PushB2 11 22//component//Model Variation
Push_1//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
:femaledevblack
Jump @unkdevshirt
:fm_rstar_m_tshirt_002
push GetHash("fm_rstar_m_tshirt_002")
SetStatic1 100
CallNative player_ped_id 0 1
PushB2 11 44//component//Model Variation
Push_3//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
:femaledevgrey
Jump @unkdevshirt
:mpdevfemale
CallNative player_ped_id 0 1
Push_3//component
Push_2//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
CallNative player_ped_id 0 1
Push_7//component
Push_0//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
CallNative player_ped_id 0 1
PushB 8//component
Push_3//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
call @get_menu_number
switch [1 @fm_rstar_f_tshirt_000]:[2 @fm_rstar_f_tshirt_001]:[3 @fm_rstar_f_tshirt_002]
Return 2 0//endexecute
:fm_rstar_f_tshirt_000
push GetHash("fm_rstar_f_tshirt_000")
SetStatic1 100
CallNative player_ped_id 0 1
PushB2 11 30//component//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
Jump @femaledevwhite
:fm_rstar_f_tshirt_001
push GetHash("fm_rstar_f_tshirt_001")
SetStatic1 100
CallNative player_ped_id 0 1
PushB2 11 30//component//Model Variation
Push_1//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
Jump @femaledevblack
:fm_rstar_f_tshirt_002
push GetHash("fm_rstar_f_tshirt_002")
SetStatic1 100
CallNative player_ped_id 0 1
PushB2 11 38//component//Model Variation
Push_3//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
Jump @femaledevgrey
:unkdevshirt
CallNative player_ped_id 0 1
callnative clear_ped_decorations 1 0
CallNative player_ped_id 0 1
push GetHash("mphipster_overlays")
GetStatic1 100
CallNative _set_ped_decoration 3 0//imm4 = overlay file hash ex: multiplayer_overlays imm5 = tshirt hash
//-1719270477 = mpBeach_overlays
call @get_player_number
pushstring "TSHIRT_DECAL_HASH"
call @string strcat(string source,string toadd)
GetHash
GetStatic1 100
Push_1
CallNative stat_set_int 3 1
drop
Return 2 0//endexecute
//<
//> vehicle options
:exe_menu_level_1_last_select_2_atzero
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_1_last_select_2_atzero_item1]:[2 @exe_menu_level_1_last_select_2_atzero_item2]:[3 @exe_menu_level_1_last_select_2_atzero_item3]:[4 @exe_menu_level_1_last_select_2_atzero_item4]:[5 @exe_menu_level_1_last_select_2_atzero_item5]:[6 @exe_menu_level_1_last_select_2_atzero_item6]:[7 @exe_menu_level_1_last_select_2_atzero_item7]:[8 @exe_menu_level_1_last_select_2_atzero_item8]:[9 @exe_menu_level_1_last_select_2_atzero_item9]:[10 @exe_menu_level_1_last_select_2_atzero_item10]:[11 @exe_menu_level_1_last_select_2_atzero_item11]:[12 @exe_menu_level_1_last_select_2_atzero_item12]
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item1
//garage
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item2
GetStaticP1 21
Push_0//car color bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item3
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel3
Return 2 0//endexecute
:dummylabel3
GetStatic1 100
CallNative set_vehicle_fixed 1 0
GetStatic1 100
PushF_0
CallNative set_vehicle_dirt_level 2 0
getstatic1 100
pushs 1000
callnative set_entity_health 2 0
getstatic1 100
pushf 1000
callnative set_vehicle_engine_health 2 0
getstatic1 100
pushf 1000
callnative set_vehicle_petrol_tank_health 2 0
getstatic1 100
pushf 1000
callnative set_vehicle_body_health 2 0
pushstring "Vehicle Fixed"
call @print_notification(string text)
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item4
GetStaticP1 21
Push_1//cars stick to ground bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item5
GetStaticP1 21
Push_2//vehicle helper bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
GetStatic1 21
Push_2//vehicle helper bool
CallNative is_bit_set 2 1
not
Push_0
cmpeq
jumpfalse @dummylabel4
Return 2 0//endexecute
:dummylabel4
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel5
Return 2 0//endexecute
:dummylabel5
GetStatic1 100
Push_1
CallNative set_vehicle_can_be_visibly_damaged 2 0
GetStatic1 100
Push_1
CallNative set_entity_can_be_damaged 2 0
GetStatic1 100
Push_0
CallNative set_entity_invincible 2 0
GetStatic1 100
Push_1
callnative set_vehicle_can_break 2 0
getstatic1 100
push_1
callnative set_vehicle_engine_can_degrade 2 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item6
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel6
Return 2 0//endexecute
:dummylabel6
GetStatic1 100
CallNative is_entity_visible 1 1
jumpfalse @isinvisible
GetStatic1 100
Push_0
CallNative set_entity_visible 2 0
:continuecarinvis
CallNative player_ped_id 0 1
Push_1
CallNative set_entity_visible 2 0
Return 2 0//endexecute
:isinvisible
GetStatic1 100
Push_1
CallNative set_entity_visible 2 0
jump @continuecarinvis
:exe_menu_level_1_last_select_2_atzero_item7
GetFrame1 0
not
jumpfalse @inc_nfs_type
GetStaticP1 21
Push_3//nfs bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:inc_nfs_type
call @get_menu_number
SetStatic1 71
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item8
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel7
Return 2 0//endexecute
:dummylabel7
GetStatic1 100
CallNative get_vehicle_door_lock_status 1 1
Push_4
jumpne @lockveh
pushstring "Vehicle doors unlocked."
pushs 5000
call @print(string text,int ms)
GetStatic1 100
Push_1//unlocked
jump @unlockveh
:lockveh
pushstring "Vehicle doors locked."
pushs 5000
call @print(string text,int ms)
GetStatic1 100
Push_4//locked
:unlockveh
CallNative set_vehicle_doors_locked 2 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item9
GetStaticP1 21
Push_4//drive on water bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item10
GetFrame1 0
not
jumpfalse @inc_speed_type
GetStaticP1 21
Push_6//mph/kmh bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:inc_speed_type
call @get_menu_number
SetStatic1 30//num for draw speed mph/kmh
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item11
//bonnet cams to first person
push_0
Call @SetBonnetCamsToFirstPerson
pushstring "Vehicle Bonnet Cams Set"
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_1_last_select_2_atzero_item12
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel8
Return 2 0//endexecute
:dummylabel8
PushB 8
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel9
Return 2 0//endexecute
:dummylabel9
GetStaticP2 262
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Can't convert text into a number."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel10
Return 2 0//endexecute
:dummylabel10
GetStatic1 100
GetStatic1 101
itof
CallNative _set_vehicle_engine_power_multiplier 2 0//vehicle acceleration multiplier
pushstring "Rpm multiplier set to "
GetStaticP2 262
call @string strcat(string source,string toadd)
drop
pushstring " on current vehicle"
GetStaticP1 245//sets var to string
StrAdd 64
GetStaticP1 245
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//<
//> weapon options
:exe_menu_level_1_last_select_3_atzero
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_1_last_select_3_atzero_item1]:[2 @exe_menu_level_1_last_select_3_atzero_item2]:[3 @exe_menu_level_1_last_select_3_atzero_item3]:[4 @exe_menu_level_1_last_select_3_atzero_item4]:[5 @exe_menu_level_1_last_select_3_atzero_item5]:[6 @exe_menu_level_1_last_select_3_atzero_item6]:[7 @exe_menu_level_1_last_select_3_atzero_item7]:[8 @exe_menu_level_1_last_select_3_atzero_item8]:[9 @exe_menu_level_1_last_select_3_atzero_item9]:[10 @exe_menu_level_1_last_select_3_atzero_item10]:[11 @exe_menu_level_1_last_select_3_atzero_item11]:[12 @exe_menu_level_1_last_select_3_atzero_item12]
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item1
GetStaticP1 22
Push_1//onehitonekill bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
GetStatic1 22
Push_1//onehitonekill bool
CallNative is_bit_set 2 1
not
Push_0
cmpeq
jumpfalse @dummylabel11
Return 2 0//endexecute
:dummylabel11
callnative player_id 0 1
PushF_1
callnative set_player_weapon_damage_modifier 2 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item2
GetStaticP1 22
Push_2//unlimited ammo bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item3
GetFrame1 0
not
jumpfalse @inc_rocket_id
call @get_current_weapon_hash
SetStatic1 100
GetStaticP1 22
Push_0//rocket gun bool
call @toggle_bit(var*,bit)
GetStatic1 22
Push_0//rocket gun bool
CallNative is_bit_set 2 1
jumpfalse @skipgiveweapforprojectile
call @give_all_normal_weapons_to_your_ped
call @give_all_dlc_weapons_to_your_ped
CallNative player_ped_id 0 1
GetStatic1 100
Push_1
CallNative set_current_ped_weapon 3 0
:skipgiveweapforprojectile
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:inc_rocket_id
call @get_menu_number
SetStatic1 74
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item4
GetFrame1 0
not
jumpfalse @inc_exp_id
GetStaticP1 22
Push_3//Explosive Bullets bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:inc_exp_id
call @get_menu_number
SetStatic1 76//expid for Explosive Bullets
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item5
call @give_all_normal_weapons_to_your_ped
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item6
call @give_all_dlc_weapons_to_your_ped
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item7
CallNative player_ped_id 0 1
Push_1
CallNative remove_all_ped_weapons 2 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item8
push -2000187721//briefcase
call @give_weapon_to_your_ped(int_hash)
CallNative player_ped_id 0 1
Push -2000187721
Push_1
CallNative set_current_ped_weapon 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item9
push 28811031//briefcase 02
call @give_weapon_to_your_ped(int_hash)
CallNative player_ped_id 0 1
Push 28811031
Push_1
CallNative set_current_ped_weapon 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item10
push -38085395//DIGI SCANNER
call @give_weapon_to_your_ped(int_hash)
CallNative player_ped_id 0 1
Push -38085395
Push_1
CallNative set_current_ped_weapon 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item11
push GetHash("WEAPON_GARBAGEBAG")
call @give_weapon_to_your_ped(int_hash)
CallNative player_ped_id 0 1
push GetHash("WEAPON_GARBAGEBAG")
Push_1
CallNative set_current_ped_weapon 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_3_atzero_item12
push GetHash("WEAPON_HANDCUFFS")
call @give_weapon_to_your_ped(int_hash)
CallNative player_ped_id 0 1
push GetHash("WEAPON_HANDCUFFS")
Push_1
CallNative set_current_ped_weapon 3 0
Return 2 0//endexecute
//<
//> weather options
:exe_menu_level_1_last_select_4_atzero
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_1_last_select_4_atzero_item1]:[2 @exe_menu_level_1_last_select_4_atzero_item2]:[3 @exe_menu_level_1_last_select_4_atzero_item3]:[4 @exe_menu_level_1_last_select_4_atzero_item4]:[5 @exe_menu_level_1_last_select_4_atzero_item5]:[6 @exe_menu_level_1_last_select_4_atzero_item6]:[7 @exe_menu_level_1_last_select_4_atzero_item7]:[8 @exe_menu_level_1_last_select_4_atzero_item8]:[9 @exe_menu_level_1_last_select_4_atzero_item9]:[10 @exe_menu_level_1_last_select_4_atzero_item10]:[11 @exe_menu_level_1_last_select_4_atzero_item11]:[12 @exe_menu_level_1_last_select_4_atzero_item12]:[13 @exe_menu_level_1_last_select_4_atzero_item13]:[14 @exe_menu_level_1_last_select_4_atzero_item14]:[15 @exe_menu_level_1_last_select_4_atzero_item15]:[16 @exe_menu_level_1_last_select_4_atzero_item16]:[17 @exe_menu_level_1_last_select_4_atzero_item17]:[18 @exe_menu_level_1_last_select_4_atzero_item18]
Return 2 0//endexecute
:exe_menu_level_1_last_select_4_atzero_item1
CallNative network_is_in_session 0 1
jumpfalse @setofflinetime
CallNative get_clock_hours 0 1
add1 1
dup
PushB 24
jumplt @setnetime
drop
Push_0
:setnetime
Push_0
Push_0
CallNative network_override_clock_time 3 0
Return 2 0//endexecute
:setofflinetime
Push_1
Push_0
Push_0
CallNative add_to_clock_time 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_4_atzero_item2
call @get_menu_number
CallNative set_time_scale 1 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_4_atzero_item3
call @get_menu_number
callnative set_gravity_level 1 0
pushstring "Gravity level set to "
call @get_menu_number
call @int_to_string
call @string strcat2(string source,string toadd)
pushs 3000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_1_last_select_4_atzero_item4
//346 no_fog_alpha
callnative get_timecycle_modifier_index 0 1
Push_-1
jumpne @clearfogtcycle
pushstring "no_fog_alpha"
callnative set_timecycle_modifier 1 0
jump @updatefogtcycle
:clearfogtcycle
callnative clear_timecycle_modifier 0 0
:updatefogtcycle
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_menu_level_1_last_select_4_atzero_item5
PushString "EXTRASUNNY"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item6
PushString "CLEAR"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item7
PushString "CLOUDS"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item8
PushString "SMOG"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item9
PushString "FOGGY"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item10
PushString "OVERCAST"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item11
PushString "RAIN"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item12
PushString "THUNDER"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item13
PushString "CLEARING"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item14
PushString "NEUTRAL"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item15
PushString "SNOW"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item16
PushString "BLIZZARD"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item17
PushString "SNOWLIGHT"
Jump @set_override_weather
:exe_menu_level_1_last_select_4_atzero_item18
CallNative network_is_in_session 0 1
pushstring "~r~Error:~s~ The Christmas weather type doesn't appear in single player."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel12
Return 2 0//endexecute
:dummylabel12
//christmas
GetGlobalP3 262145
GetImm2 4715//TURN_SNOW_ON_OFF/-1146554960
not
GetGlobalP3 262145
SetImm2 4715//TURN_SNOW_ON_OFF/-1146554960
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:set_override_weather
CallNative set_override_weather 1 0
Return 2 0//endexecute
//<
//> teleport options
:exe_menu_level_1_last_select_5_atzero
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_1_last_select_5_atzero_item1]:[2 @exe_menu_level_1_last_select_5_atzero_item2]:[3 @exe_menu_level_1_last_select_5_atzero_item3]:[4 @exe_menu_level_1_last_select_5_atzero_item4]:[5 @exe_menu_level_1_last_select_5_atzero_item5]:[6 @exe_menu_level_1_last_select_5_atzero_item6]:[7 @exe_menu_level_1_last_select_5_atzero_item7]:[8 @exe_menu_level_1_last_select_5_atzero_item8]:[9 @exe_menu_level_1_last_select_5_atzero_item9]:[10 @exe_menu_level_1_last_select_5_atzero_item10]:[11 @exe_menu_level_1_last_select_5_atzero_item11]:[12 @exe_menu_level_1_last_select_5_atzero_item12]:[13 @exe_menu_level_1_last_select_5_atzero_item13]:[14 @exe_menu_level_1_last_select_5_atzero_item14]:[15 @exe_menu_level_1_last_select_5_atzero_item15]:[16 @exe_menu_level_1_last_select_5_atzero_item16]:[17 @exe_menu_level_1_last_select_5_atzero_item17]:[18 @exe_menu_level_1_last_select_5_atzero_item18]:[19 @exe_menu_level_1_last_select_5_atzero_item19]:[20 @exe_menu_level_1_last_select_5_atzero_item20]:[21 @exe_menu_level_1_last_select_5_atzero_item21]
Return 2 0//endexecute
:exe_menu_level_1_last_select_5_atzero_item1
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @novehhandlefortpf
jump @starttpf
:novehhandlefortpf
CallNative player_ped_id 0 1
SetStatic1 100
:starttpf
GetStatic1 100
GetStatic1 100
PushF_0
PushF_5
PushF_0
CallNative get_offset_from_entity_in_world_coords 4 3
Push_0
Push_0
Push_0
CallNative set_entity_coords_no_offset 7 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_5_atzero_item2
CallNative player_ped_id 0 1
call @get_closest_vehicle(ped_id)
SetStatic1 100
GetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel13
Return 2 0//endexecute
:dummylabel13
GetStatic1 100
call @FindFreeCarSeat
SetStatic1 101
GetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel14
Return 2 0//endexecute
:dummylabel14
CallNative player_ped_id 0 1
GetStatic1 100
GetStatic1 101
CallNative set_ped_into_vehicle 3 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_5_atzero_item3
callnative get_players_last_vehicle 0 1
dup
setstatic1 100
CallNative does_entity_exist 1 1
pushstring "~r~Error:~s~ Your last vehicle is not in memory."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @end_tele_lastveh
GetStatic1 100
call @FindFreeCarSeat
dup
SetStatic1 101
push -2
jumpeq @end_tele_lastveh
CallNative player_ped_id 0 1
GetStatic1 100
GetStatic1 101
CallNative set_ped_into_vehicle 3 0
:end_tele_lastveh
Return 2 0//endexecute
:exe_menu_level_1_last_select_5_atzero_item4
Push_0
call @get_waypoint_coords(bool togoback)
Push_3
GetStaticP1 100
FromStack
Push_3
GetStaticP1 100
toStack
fadd
fadd
PushF_0
fcmpeq
not
Push_0
cmpeq
jumpfalse @dummylabel15
Return 2 0//endexecute
:dummylabel15
Push_3
GetStaticP1 100
toStack
call @teleport_your_player(float_x,float_y,float_z)
Return 2 0//endexecute
:exe_menu_level_1_last_select_5_atzero_item5
call @are_you_in_veh_if_so_get_handle
pushstring "~r~Error:~s~ You're not in a vehicle."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel16
Return 2 0//endexecute
:dummylabel16
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
SetStatic1 100//z
PushF_1
fadd
SetStatic1 101//y
PushF_1
fadd
SetStatic1 102//x
CallNative player_ped_id 0 1
GetStatic1 102//x
GetStatic1 101//y
GetStatic1 100//z
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
Return 2 0//endexecute
:exe_menu_level_1_last_select_5_atzero_item6
PushF -1135.3318
PushF -2885.2365
PushF 14.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item7
PushF 1792.5493
PushF 3247.9440
PushF 43.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item8
PushF -2216.0220194174735
PushF 3222.148924041809
PushF 33.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item9
PushF 494.8440
PushF 5586.5723
PushF 795.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item10
PushF -75.5983
PushF -819.0287
PushF 326.5
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item11
PushF -1838.935
PushF -1223.331
PushF 13.5
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item12
PushF 729.8096
PushF 1204.3917
PushF 326.5
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item13
PushF 139.5538
PushF 6595.8633
PushF 32.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item14
PushF -773.6620
PushF 297.5510
PushF 86.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item15
PushF -232.8728
PushF -1163.517
PushF 23.5
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item16
PushF 409.0
PushF -1634.155
PushF 30.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item17
PushF 228.7188
PushF -989.9847
PushF -99.0
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item18
PushF 136.3219
PushF -749.1016
PushF 258.5
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item19
PushF 3210.9387
PushF -4834.830
PushF 112.2
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item20
PushF 3616
PushF 3738.86
PushF 29
Jump @teleport_your_player
:exe_menu_level_1_last_select_5_atzero_item21
PushF 3525.52
PushF 3709.26
PushF 21.2
Jump @teleport_your_player
//-2356, 3251, 101 air control tower
:teleport_your_player
call @teleport_your_player(float_x,float_y,float_z)
Return 2 0//endexecute
//<
//> object options
:exe_menu_level_1_last_select_6_atzero
GetStatic1 5//cursor index
Switch [1 @objectoptions1]:[2 @objectoptions2]:[3 @objectoptions3]:[4 @objectoptions4]:[5 @objectoptions5]:[6 @objectoptions6]:[7 @objectoptions7]:[8 @objectoptions8]:[9 @objectoptions9]:[10 @objectoptions10]:[11 @objectoptions11]:[12 @objectoptions12]:[13 @objectoptions13]:[14 @objectoptions14]:[15 @objectoptions15]
Return 2 0//endexecute
:objectoptions1
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_attached 1 1
not
pushstring "~r~Error:~s~ You can't move an object that is attached."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel17
Return 2 0//endexecute
:dummylabel17
GetStatic1 87//saved object
Push_1
CallNative freeze_entity_position 2 0
call @advance_menu_level
Return 2 0//endexecute
:objectoptions2
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @advance_menu_level
Return 2 0//endexecute
:objectoptions3
GetFrame1 0
not
jumpfalse @inc_range
GetStaticP1 23
Push_0//forge mode
call @toggle_bit(var*,bit)
GetStatic1 23
Push_0//forge mode
CallNative is_bit_set 2 1
jumpfalse @forgeoffskp
pushstring "Forge gun is 9mm pistol~n~Use ~INPUT_FRONTEND_RT~ to pickup/drop objects"
push_1
push_-1
call @print_help(string,beep,shape)
:forgeoffskp
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:inc_range
call @get_menu_number
SetStatic1 75//forge range
pushstring "Forge range set to "
call @get_menu_number
call @int_to_string
call @string strcat2(string source,string toadd)
pushs 3000
call @print(string text,int ms)
Return 2 0//endexecute
:objectoptions4
call @advance_menu_level
Return 2 0//endexecute
:objectoptions5
PushB 31
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262
StrCopy 32
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel18
Return 2 0//endexecute
:dummylabel18
GetStaticP2 262
GetHash
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
:spawnobjecttosave
PushB 8//saveobject
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel19
Return 2 0//endexecute
:dummylabel19
:saveobject
GetStatic1 26//saved hash and entity for model loading
SetStatic1 87//saved object
Return 2 0//endexecute
:objectoptions6
push GetHash("p_spinning_anus_s")
CallNative player_ped_id 0 1
PushF 50.0
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions7
push GetHash("prop_asteroid_01")
CallNative player_ped_id 0 1
PushF 20.0
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions8
push GetHash("prop_ld_ferris_wheel")
CallNative player_ped_id 0 1
PushF 15.0
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions9
push GetHash("prop_alien_egg_01")
CallNative player_ped_id 0 1
PushF_2
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions10
push GetHash("prop_dummy_car")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions11
push GetHash("prop_temp_block_blocker")
CallNative player_ped_id 0 1
PushF_7
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions12
push GetHash("prop_windmill_01")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions13
push GetHash("prop_ped_gib_01")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions14
call @get_menu_number
switch [1 @mpramp1]:[2 @mpramp2]:[3 @mpramp3]
Return 2 0//endexecute
:mpramp1
push GetHash("prop_mp_ramp_01_tu")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:mpramp2
push GetHash("prop_mp_ramp_02_tu")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:mpramp3
push GetHash("prop_mp_ramp_03_tu")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:objectoptions15
call @get_menu_number
switch [1 @xmastree1]:[2 @xmastree2]
Return 2 0//endexecute
:xmastree1
push GetHash("prop_xmas_tree_int")
CallNative player_ped_id 0 1
PushF_5
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
:xmastree2
push GetHash("prop_xmas_ext")
CallNative player_ped_id 0 1
PushF 10
call @get_coord_in_front(int entity,float range)
Jump @spawnobjecttosave
//<
//> misc options
:exe_menu_level_1_last_select_7_atzero
GetStatic1 5//cursor index
Switch [1 @misc_options1]:[2 @misc_options2]:[3 @misc_options3]:[4 @misc_options4]:[5 @misc_options5]:[6 @misc_options6]:[7 @misc_options7]:[8 @misc_options8]:[9 @misc_options9]:[10 @misc_options10]:[11 @misc_options11]:[12 @misc_options12]:[13 @misc_options13]:[14 @misc_options14]:[15 @misc_options15]:[16 @misc_options16]:[17 @misc_options17]:[18 @misc_options18]
Return 2 0//endexecute
//> misc_options
:misc_options1
call @advance_menu_level
Return 2 0//endexecute
:misc_options2
PushF 0.1
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
call @advance_menu_level
Return 2 0//endexecute
:misc_options3
call @advance_menu_level
Return 2 0//endexecute
:misc_options4
call @advance_menu_level
Return 2 0//endexecute
:misc_options5
//mobile radio
call @advance_menu_level
Return 2 0//endexecute
:misc_options6
GetStaticP1 24
Push_2//xyzh bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options7
//off radar
GetStaticP1 24
Push_0//off radar bool
call @toggle_bit(var*,bit)
GetStatic1 24
Push_0//off radar bool
CallNative is_bit_set 2 1
CallNative player_id 0 1
GetGlobalP3 2390201//search unk_0x20DDCF2F or MPCT_RDR 2nd occurrence in am_contact_requests
GetArrayP1 223
SetImm1 169
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options8
//thermal vision
GetStaticP1 24
Push_6//thermal vision bool
call @toggle_bit(var*,bit)
GetStatic1 24
Push_6//thermal vision bool
CallNative is_bit_set 2 1
callnative set_seethrough 1 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options9
GetStaticP1 24
PushB 15//night vision bool
call @toggle_bit(var*,bit)
GetStatic1 24
PushB 15//night vision bool
CallNative is_bit_set 2 1
call @set_nightvision(bool)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options10
GetStaticP1 24
Push_3//flymod bool
call @toggle_bit(var*,bit)
GetStaticP1 24
Push_4//flymod toggle
callnative clear_bit 2 0
GetStatic1 24
Push_3//flymod bool
CallNative is_bit_set 2 1
not
jumpfalse @flymodon
Push_0
call @freeze_your_car_or_player(bool freeze)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:flymodon
GetStaticP1 24
Push_4//flymod toggle
callnative clear_bit 2 0
pushstring "Hold X and press Left Stick to use Fly Mod."
pushs 5000
call @print(string text,int ms)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options11
GetStaticP1 24
Push_5//fps bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options12
GetStaticP1 24
PushB 16//disable traffic
call @toggle_bit(var*,bit)
GetStatic1 24
PushB 16//disable traffic
CallNative is_bit_set 2 1
not
jumpfalse @disable_traffic_on
Push_1
callnative set_vehicle_population_budget 1 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:disable_traffic_on
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 5000
Push_0
Push_0
Push_0
Push_0
Push_0
CallNative clear_area_of_vehicles 9 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:misc_options13
//get global value
pushstring "SCLB_GLOBAL"
PushB 8
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel20
Return 2 0//endexecute
:dummylabel20
GetStaticP2 262
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Can't convert text into a number."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel21
Return 2 0//endexecute
:dummylabel21
pushstring "Global value ("
GetStaticP2 262
call @string strcat(string source,string toadd)
drop
pushstring ") = "
GetStaticP1 245
StrAdd 8
GetStatic1 101
getstaticp1 102
call @GetGlobalIndex(global,*out_global)
jumpfalse @end_get_global
getstatic1 102
pget
GetStaticP1 245
StrAddi 16
GetStaticP1 245
pushs 5000
call @print(string text,int ms)
:end_get_global
Return 2 0//endexecute
:misc_options14
//set global value
pushstring "SCLB_GLOBAL"
PushB 8
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel22
Return 2 0//endexecute
:dummylabel22
GetStaticP2 262
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Can't convert text into a number."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel23
Return 2 0//endexecute
:dummylabel23
GetStatic1 101
getstaticp1 102
call @GetGlobalIndex(global,*out_global)
jumpfalse @end_get_global
pushstring "BS_WB_VAL"
PushB 8
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel24
Return 2 0//endexecute
:dummylabel24
GetStaticP2 262
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Can't convert text into a number."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel25
Return 2 0//endexecute
:dummylabel25
GetStatic1 101
GetStatic1 102
pset
Return 2 0//endexecute
:misc_options15
pushstring "scr_indep_fireworks"
PushB 55//fx_firework
call @load_fx_no_wait(string fx,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel26
Return 2 0//endexecute
:dummylabel26
:fx_firework
pushstring "scr_indep_fireworks"
CallNative _set_ptfx_asset_next_call 1 0
PushF_0
PushF_1
callnative get_random_float_in_range 2 1
PushF_0
PushF_1
callnative get_random_float_in_range 2 1
PushF_0
PushF_1
callnative get_random_float_in_range 2 1
CallNative set_particle_fx_non_looped_colour 3 0//rgb to float: rgb value/255
Push_1
Push_4
callnative get_random_int_in_range 2 1
switch [2 @fworksh]:[3 @fworkf]:[4 @fworkst]
pushstring "scr_indep_firework_trailburst"
jump @launchfwork
:fworksh
pushstring "scr_indep_firework_shotburst"
jump @launchfwork
:fworkf
pushstring "scr_indep_firework_fountain"
jump @launchfwork
:fworkst
pushstring "scr_indep_firework_starburst"
:launchfwork
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF_0
PushF_0
PushF_0
PushF_1
Push_0
Push_0
Push_0
callnative _start_particle_fx_non_looped_at_coord_2 11 1
drop
Return 2 0//endexecute
:misc_options16
//> enable all dlc
Push_1
GetGlobalP3 262145
SetImm2 4724//TOGGLE_XMAS_CONTENT/1078140755
Push_1
GetGlobalP3 262145
SetImm2 4827//TURN_ON_VALENTINES_EVENT/-1009472989
Push_1
GetGlobalP3 262145
SetImm2 6003//TOGGLE_ACTIVATE_INDEPENDENCE_PACK/-648209009
Push_1
GetGlobalP3 262145
SetImm2 6016//Toggle_activate_Western_sovereign/1299691672
Push_1
GetGlobalP3 262145
SetImm2 6017//Toggle_activate_Monster_truck/-1484555665
Push_0
GetGlobalP3 262145
SetImm2 6011//INDEPENDENCE_DAY_DEACTIVATE_FIREWORKS_LAUNCHER/-1260001661
Push_0
GetGlobalP3 262145
SetImm2 6015//DISABLEFIREWORKS/-642605398
Push_0
GetGlobalP3 262145
SetImm2 6884//DISABLE_CHRISTMAS_CLOTHING/-1021327497
Push_0
GetGlobalP3 262145
SetImm2 6885//DISABLE_CHRISTMAS_MASKS/1745875219
Push_0
GetGlobalP3 262145
SetImm2 6886//DISABLE_CHRISTMAS_VEHICLES/-198497043
Push_1
GetGlobalP3 262145
SetImm2 6935//TOGGLE_CHRISTMAS_EVE_GIFT/673669404
Push_1
GetGlobalP3 262145
SetImm2 6936//TOGGLE_NEW_YEARS_EVE_GIFT/-1382322479
Push_1
GetGlobalP3 262145
SetImm2 6937//TOGGLE_NEW_YEARS_DAY_GIFT/-1824007642
Push_1
GetGlobalP3 262145
SetImm2 4860//TOGGLE_LTS_CONTENT/1538024945
Push_1
GetGlobalP3 262145
SetImm2 6843//toggle_gift_to_player_when_logging_on/-414841407
Push_0
GetGlobalP3 262145
SetImm2 6880//DISABLE_SNOWBALLS/-1195222077
Push_0
GetGlobalP3 262145
SetImm2 6881//DISABLE_CHRISTMAS_TREE_PERISHING_SQUARE_SNOW/642397442
Push_0
GetGlobalP3 262145
SetImm2 6882//DISABLE_CHRISTMAS_TREE_PERISHING_SQUARE/1420047296
Push_0
GetGlobalP3 262145
SetImm2 6883//DISABLE_CHRISTMAS_TREE_APARTMENT/-824588571
Push_0
GetGlobalP3 262145
SetImm2 6884//DISABLE_CHRISTMAS_CLOTHING/-1021327497
Push_0
GetGlobalP3 262145
SetImm2 6885//DISABLE_CHRISTMAS_MASKS/1745875219
Push_0
GetGlobalP3 262145
SetImm2 6886//DISABLE_CHRISTMAS_VEHICLES/-198497043
pushstring "All dlc has been enabled."
pushs 5000
call @print(string text,int ms)
//<
Return 2 0//endexecute
:misc_options17
GetStaticP1 24
Push_7//delete closest cars
callnative set_bit 2 0
Push_0
SetStatic1 69//delete closest vehicles saved loop var
Return 2 0//endexecute
:misc_options18
:terminateloop
Push_0
callnative wait 1 0
pushstring "Do you really want to terminate this script? ~g~A~s~-Confirm ~r~B~s~-Cancel"
pushs 100
call @print(string text,int ms)
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
not
JumpFalse @confirmtermination
Push_2
push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative is_disabled_control_just_pressed 2 1
Not
Push_0
cmpeq
jumpfalse @dummylabel27
Return 2 0//endexecute
:dummylabel27
jump @terminateloop
:confirmtermination
callnative get_this_script_name 0 1
callnative terminate_all_scripts_with_this_name 1 0
CallNative terminate_this_thread 0 0
Return 2 0//endexecute
//<
//<
//> plugins
:exe_menu_level_1_last_select_8_atzero
GetStatic1 5//cursor index
Switch [1 @plugin1]:[2 @plugin2]:[3 @plugin3]:[4 @plugin4]:[5 @plugin5]:[6 @plugin6]:[7 @plugin7]:[8 @plugin8]:[9 @plugin9]:[10 @plugin10]
Return 2 0//endexecute
:plugin1
pushstring "1plugin"
jump @loadscript
:plugin2
pushstring "2plugin"
jump @loadscript
:plugin3
pushstring "3plugin"
jump @loadscript
:plugin4
pushstring "4plugin"
jump @loadscript
:plugin5
pushstring "5plugin"
jump @loadscript
:plugin6
pushstring "6plugin"
jump @loadscript
:plugin7
pushstring "7plugin"
jump @loadscript
:plugin8
pushstring "8plugin"
jump @loadscript
:plugin9
pushstring "9plugin"
jump @loadscript
:plugin10
pushstring "10plugin"
jump @loadscript
:loadscript
pushs 1024
call @bool loadscript(string scriptname,int stacksize)
drop
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//<
//> menu execution level2
//> menu execution level2 handling
:exemenulevel2
GetStatic1 4//last selected of item level zero
Switch [1 @exe_last_sel_1_at_zero_menulevel2]:[2 @exe_last_sel_2_at_zero_menulevel2]:[6 @exe_last_sel_6_at_zero_menulevel2]:[7 @exe_last_sel_7_at_zero_menulevel2]:[8 @exe_last_sel_8_at_zero_menulevel2]
Return 2 0//endexecute
:exe_last_sel_1_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @exe_onlineplayers]:[2 @exe_allplayers]:[3 @exe_modelchanger]:[4 @exe_animations]:[5 @exe_scenarios]:[6 @exe_stat_manager]:[7 @exe_bodyguards]
Return 2 0//endexecute
:exe_last_sel_2_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @exelastselectedatzero2one1]
Return 2 0//endexecute
:exe_last_sel_6_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @exemoveobj]:[2 @exeattachobj]:[4 @exemapmodobj]
Return 2 0//endexecute
:exe_last_sel_7_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @exeipls]:[2 @exedrawtool]:[3 @exechangemenucolor]:[4 @exetimecyclemenu]:[5 @exemobileradio]
Return 2 0//endexecute
:exe_last_sel_8_at_zero_menulevel2
GetStatic1 2//last selected of item level one
Switch [1 @exehandlingdata]:[2 @exevehicle_weapon_data]
Return 2 0//endexecute
//<
//> online players
:exe_onlineplayers
GetStatic1 5//cursor index
Push_1
sub
SetStatic1 10//player index
GetStatic1 10//player index
call @bool_is_player_in_game(playerindex)
Push_0
cmpeq
jumpfalse @dummylabel39
Return 2 0//endexecute
:dummylabel39
Push_1
SetStatic1 12// = temp last sel item,0
call @advance_menu_level
Return 2 0//endexecute
//<
//> all players
:exe_allplayers
call @advance_menu_level
Return 2 0//endexecute
//<
//> modelchanger
:exe_modelchanger
GetStatic1 5//cursor index
Push_2//input model
jumpeq @input_model_for_model_changer
:reuseexemodellist0
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel40
Return 2 0//endexecute
:dummylabel40
GetStatic1 5//cursor index
Push_1//component changer
jumpeq @skp_save_dir1_for_model_changer
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
gethash
SetStatic1 66//saved modelchanger dir1
:skp_save_dir1_for_model_changer
call @advance_menu_level
Return 2 0//endexecute
:input_model_for_model_changer
PushB 30
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
StrCopy 32
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel41
Return 2 0//endexecute
:dummylabel41
GetStaticP2 262
GetHash
Push_0//none
call @Change_Player_Model_no_wait(int model,jumptype)
drop
Return 2 0//endexecute
//<
//> animations
:exe_animations
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item1]:[2 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item2]:[3 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item3]:[4 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item4]:[5 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item5]:[6 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item6]:[7 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item7]:[8 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item8]:[9 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item9]:[10 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item10]:[11 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item11]:[12 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item12]:[13 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item13]:[14 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item14]:[15 @exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item15]
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item1
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item2
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
CallNative player_ped_id 0 1
callnative is_ped_using_any_scenario 1 1
jumpfalse @notinscenario
CallNative player_ped_id 0 1
CallNative clear_ped_tasks 1 0
jump @continuestoptasks
:notinscenario
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
:continuestoptasks
GetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel42
Return 2 0//endexecute
:dummylabel42
GetStatic1 100
call @FindFreeCarSeat
SetStatic1 101
GetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel43
Return 2 0//endexecute
:dummylabel43
CallNative player_ped_id 0 1
GetStatic1 100
GetStatic1 101
CallNative set_ped_into_vehicle 3 0
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item3
//> input anim
PushB 63
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP1 245//sets var to string
StrCopy 64
GetStaticP1 245//sets var to string
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel44
Return 2 0//endexecute
:dummylabel44
GetStaticP1 245
PushB 56//anim_dict_custom_anim
call @load_animdict_no_wait(string dict,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel45
Return 2 0//endexecute
:dummylabel45
:anim_dict_custom_anim
PushB 63
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
StrCopy 64
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel46
Return 2 0//endexecute
:dummylabel46
GetStaticP2 315//256 char text array
GetStaticP2 262
CallNative player_ped_id 0 1
PushB 9
call @PlayAnimation(AnimDir,AnimName,pedid,animflag)
Return 2 0//endexecute
//<
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item4
call @get_menu_number
Switch [1 @strippersel1]:[2 @strippersel2]:[3 @strippersel3]:[4 @strippersel4]:[5 @strippersel5]
Return 2 0//endexecute
:strippersel1
PushString "mp_am_stripper"
PushString "lap_dance_girl"
Jump @exePlaySelfAnimation
:strippersel2
PushString "mini@strip_club@pole_dance@pole_dance1"
PushString "pd_dance_01"
Jump @exePlaySelfAnimation
:strippersel3
PushString "mini@strip_club@pole_dance@pole_dance2"
PushString "pd_dance_02"
Jump @exePlaySelfAnimation
:strippersel4
PushString "mini@strip_club@pole_dance@pole_dance3"
PushString "pd_dance_03"
Jump @exePlaySelfAnimation
:strippersel5
PushString "mini@strip_club@private_dance@part1"
PushString "priv_dance_p1"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item5
call @get_menu_number
Switch [1 @animalanimsel1]:[2 @animalanimsel2]:[3 @animalanimsel3]:[4 @animalanimsel4]:[5 @animalanimsel5]:[6 @animalanimsel6]:[7 @animalanimsel7]:[8 @animalanimsel8]:[9 @animalanimsel9]:[10 @animalanimsel10]:[11 @animalanimsel11]:[12 @animalanimsel12]:[13 @animalanimsel13]:[14 @animalanimsel14]:[15 @animalanimsel15]:[16 @animalanimsel16]:[17 @animalanimsel17]
Return 2 0//endexecute
:animalanimsel1
PushString "creatures@shark@move"
pushstring "swim"
Jump @exePlaySelfAnimation
:animalanimsel2
PushString "creatures@rottweiler@amb@"
PushString "hump_loop_chop"
Jump @exePlaySelfAnimation
:animalanimsel3
PushString "creatures@rottweiler@amb@"
PushString "hump_loop_ladydog"
Jump @exePlaySelfAnimation
:animalanimsel4
PushString "creatures@rottweiler@move"
PushString "dump_enter"
Jump @exePlaySelfAnimation
:animalanimsel5
PushString "creatures@rat@move"
PushString "gallop"
Jump @exePlaySelfAnimation
:animalanimsel6
PushString "creatures@pigeon@move"
PushString "walk"
Jump @exePlaySelfAnimation
:animalanimsel7
PushString "creatures@pigeon@move"
PushString "takeoff"
Jump @exePlaySelfAnimation
:animalanimsel8
PushString "creatures@pigeon@move"
PushString "flapping"
Jump @exePlaySelfAnimation
:animalanimsel9
PushString "creatures@rat@move"
PushString "dying"
Jump @exePlaySelfAnimation
:animalanimsel10
PushString "creatures@pig@move"
PushString "gallop"
Jump @exePlaySelfAnimation
:animalanimsel11
PushString "creatures@hen@amb@world_hen_pecking@base"
PushString "base"
Jump @exePlaySelfAnimation
:animalanimsel12
PushString "creatures@fish@move"
PushString "dead_right"
Jump @exePlaySelfAnimation
:animalanimsel13
PushString "creatures@fish@move"
PushString "swim"
Jump @exePlaySelfAnimation
:animalanimsel14
PushString "creatures@hen@amb@world_hen_pecking@base"
PushString "base"
Jump @exePlaySelfAnimation
:animalanimsel15
PushString "creatures@cow@move"
PushString ""
Jump @exePlaySelfAnimation
:animalanimsel16
PushString "creatures@cow@move"
PushString "idle_moo"
Jump @exePlaySelfAnimation
:animalanimsel17
PushString "creatures@cow@move"
PushString "dead_right"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item6
call @get_menu_number
Switch [1 @mimesel1]:[2 @mimesel2]:[3 @mimesel3]:[4 @mimesel4]:[5 @mimesel5]:[6 @mimesel6]:[7 @mimesel7]:[8 @mimesel8]:[9 @mimesel9]
Return 2 0//endexecute
:mimesel1
PushString "special_ped@mime@monologue_"
pushstring "1@monologue_1a"
call @string strcat(string source,string toadd)
PushString "02_ig_1_r_0"
Jump @exePlaySelfAnimation
:mimesel2
PushString "special_ped@mime@monologue_"
pushstring "2@monologue_2a"
call @string strcat(string source,string toadd)
PushString "02_ig_1_cli_0"
Jump @exePlaySelfAnimation
:mimesel3
PushString "special_ped@mime@monologue_"
pushstring "3@monologue_3a"
call @string strcat(string source,string toadd)
PushString "03_ig_1_open_wind_0"
Jump @exePlaySelfAnimation
:mimesel4
PushString "special_ped@mime@monologue_"
pushstring "4@monologue_4a"
call @string strcat(string source,string toadd)
PushString "09_ig_1_balo_0"
Jump @exePlaySelfAnimation
:mimesel5
PushString "special_ped@mime@monologue_"
pushstring "5@monologue_5a"
call @string strcat(string source,string toadd)
PushString "10_ig_1_wa_0"
Jump @exePlaySelfAnimation
:mimesel6
PushString "special_ped@mime@monologue_"
pushstring "6@monologue_6a"
call @string strcat(string source,string toadd)
PushString "12_ig_1_beaten__0"
Jump @exePlaySelfAnimation
:mimesel7
PushString "special_ped@mime@monologue_"
pushstring "7@monologue_7a"
call @string strcat(string source,string toadd)
PushString "11_ig_1_run_aw_0"
Jump @exePlaySelfAnimation
:mimesel8
PushString "special_ped@mime@monologue_"
pushstring "8@monologue_8a"
call @string strcat(string source,string toadd)
PushString "08_ig_1_wall_ba_0"
Jump @exePlaySelfAnimation
:mimesel9
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_JOG_STANDING"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item7
call @get_menu_number
Switch [1 @tapdancesel1]:[2 @tapdancesel2]:[3 @tapdancesel3]:[4 @tapdancesel4]
Return 2 0//endexecute
:tapdancesel1
PushString "special_ped@mountain_dancer@monologue_"
pushstring "2@monologue_2a"
call @string strcat(string source,string toadd)
PushString "mnt_dnc_angel"
Jump @exePlaySelfAnimation
:tapdancesel2
PushString "special_ped@mountain_dancer@monologue_"
pushstring "3@monologue_3a"
call @string strcat(string source,string toadd)
PushString "mnt_dnc_buttwag"
Jump @exePlaySelfAnimation
:tapdancesel3
PushString "special_ped@mountain_dancer@monologue_"
pushstring "4@monologue_4a"
call @string strcat(string source,string toadd)
PushString "mnt_dnc_verse"
Jump @exePlaySelfAnimation
:tapdancesel4
PushString "special_ped@mountain_dancer@monologue_"
pushstring "1@monologue_1a"
call @string strcat(string source,string toadd)
PushString "mtn_dnc_if_you_want_to_get_to_heaven"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item8
call @get_menu_number
Switch [1 @wavesel1]:[2 @wavesel2]:[3 @wavesel3]:[4 @wavesel4]:[5 @wavesel5]
Return 2 0//endexecute
:wavesel1
pushstring "random@car_thief@victimpoints_ig_3"
pushstring "arms_waving"
Jump @exePlaySelfAnimation
:wavesel2
pushstring "friends@frj@ig_1"
pushstring "wave_a"
Jump @exePlaySelfAnimation
:wavesel3
pushstring "friends@frj@ig_1"
pushstring "wave_b"
Jump @exePlaySelfAnimation
:wavesel4
pushstring "friends@frj@ig_1"
pushstring "wave_d"
Jump @exePlaySelfAnimation
:wavesel5
pushstring "friends@frj@ig_1"
pushstring "wave_e"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item9
call @get_menu_number
Switch [1 @dancesel1]:[2 @dancesel2]:[3 @dancesel3]
Return 2 0//endexecute
:dancesel1
pushstring "misschinese2_crystalmazemcs1_cs"
pushstring "dance_loop_tao"
Jump @exePlaySelfAnimation
:dancesel2
pushstring "missfbi3_sniping"
pushstring "dance_m_default"
Jump @exePlaySelfAnimation
:dancesel3
pushstring "rcmnigel1bnmt_1b"
pushstring "dance_loop_tyler"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item10
call @get_menu_number
Switch [1 @workoutsel1]:[2 @workoutsel2]:[3 @workoutsel3]
Return 2 0//endexecute
:workoutsel1
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_SIT_UPS"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:workoutsel2
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_PUSH_UPS"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:workoutsel3
pushstring "move_fall"
pushstring "dive_loop"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item11
call @get_menu_number
Switch [1 @sexanimssel1]:[2 @sexanimssel2]:[3 @sexanimssel3]:[4 @sexanimssel4]:[5 @sexanimssel5]:[6 @sexanimssel6]:[7 @sexanimssel7]:[8 @sexanimssel8]
Return 2 0//endexecute
:sexanimssel1
pushstring "rcmpaparazzo_2"
pushstring "shag_loop_a"
Jump @exePlaySelfAnimation
:sexanimssel2
pushstring "rcmpaparazzo_2"
pushstring "shag_loop_poppy"
Jump @exePlaySelfAnimation
:sexanimssel3
pushstring "mini@prostitutes@sexnorm_veh"
pushstring "sex_loop_male"
Jump @exePlaySelfAnimation
:sexanimssel4
pushstring "mini@prostitutes@sexnorm_veh"
pushstring "sex_loop_prostitute"
Jump @exePlaySelfAnimation
:sexanimssel5
pushstring "mini@prostitutes@sexnorm_veh"
pushstring "bj_loop_male"
Jump @exePlaySelfAnimation
:sexanimssel6
pushstring "mini@prostitutes@sexnorm_veh"
pushstring "bj_loop_prostitute"
Jump @exePlaySelfAnimation
:sexanimssel7
pushstring "missbigscore1switch_trevor_piss"
pushstring "piss_loop"
Jump @exePlaySelfAnimation
:sexanimssel8
pushstring "missfam2"
pushstring "whackoff_loop"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item12
call @get_menu_number
Switch [1 @sitanimssel1]:[2 @sitanimssel2]:[3 @sitanimssel3]:[4 @sitanimssel4]:[5 @sitanimssel5]:[6 @sitanimssel6]:[7 @sitanimssel7]:[8 @sitanimssel8]:[9 @sitanimssel9]:[10 @sitanimssel10]
Return 2 0//endexecute
:sitanimssel1
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_PICNIC"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:sitanimssel2
pushstring "amb@world_human_picnic@male@idle_a"
pushstring "idle_b"
Jump @exePlaySelfAnimation
:sitanimssel3
pushstring "amb@world_human_picnic@female@base"
pushstring "base"
Jump @exePlaySelfAnimation
:sitanimssel4
pushstring "amb@world_human_picnic@female@idle_a"
pushstring "idle_b"
Jump @exePlaySelfAnimation
:sitanimssel5
pushstring "rcm_barry3"
pushstring "barry_3_sit_loop"
Jump @exePlaySelfAnimation
:sitanimssel6
pushstring "mp_arresting"
pushstring "sit"
Jump @exePlaySelfAnimation
:sitanimssel7
pushstring "rcmjosh2"
pushstring "josh_sitting_loop"
Jump @exePlaySelfAnimation
:sitanimssel8
pushstring "rcmextreme2"
pushstring "sitting_idle"
Jump @exePlaySelfAnimation
:sitanimssel9
pushstring "rcmminute2"
pushstring "sit"
Jump @exePlaySelfAnimation
:sitanimssel10
pushstring "switch@michael@sitting"
pushstring "idle"
Jump @exePlaySelfAnimation
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item13
call @get_menu_number
Switch [1 @flexsel1]:[2 @flexsel2]
Return 2 0//endexecute
:flexsel1
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_MUSCLE_FLEX"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:flexsel2
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_YOGA"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item14
call @get_menu_number
Switch [1 @laydownsel1]:[2 @laydownsel2]:[3 @laydownsel3]
Return 2 0//endexecute
:laydownsel1
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_SUNBATHE"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:laydownsel2
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_SUNBATHE_BACK"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:laydownsel3
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "PROP_HUMAN_SEAT_SUNLOUNGER"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_4_atone_item15
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
pushstring "WORLD_HUMAN_CHEERING"
push_0//delay
push_1
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
:exePlaySelfAnimation
CallNative player_ped_id 0 1
PushB 9
Push_0//none
Push_0
call @PlayAnimation_no_wait(AnimDir,AnimName,pedid,animflag,jumptype,isonline)
drop
Return 2 0//endexecute
//<
//> stat manager
:exe_stat_manager
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item1]:[2 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item2]
push GetHash("MPPLY_KILLS_PLAYERS")
GetStaticP1 100
Push_-1
callnative stat_get_int 3 1
pushstring "~r~Error:~s~ Multiplayer stats can not be retrieved."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel47
Return 2 0//endexecute
:dummylabel47
Push_0
SetStatic1 100
GetStatic1 5//cursor index
Switch [3 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item3]:[4 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item4]:[5 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item5]:[6 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item6]:[7 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item7]:[8 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item8]:[9 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item9]:[10 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item10]:[11 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item11]:[12 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item12]:[13 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item13]:[14 @exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item14]
Return 2 0//endexecute
//PVC_WALLET_BALANCE
//EVC_WALLET_BALANCE
//PVC_BANK_BALANCE
//EVC_BANK_BALANCE
//PVC_BALANCE
//EVC_BALANCE
//WALLET_BALANCE
//BANK_BALANCE
//PVC_BALANCE_MAX
//PVC_BALANCE_MAX
//EVC_BALANCE_CLEARED
//EVC_BALANCE_CLEARED
//CLIENT_PVC_BALANCE
//CLIENT_EVC_BALANCE
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item1
GetFrame1 0
not
jumpfalse @inc_stat_type
PushB 63
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 64
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel48
Return 2 0//endexecute
:dummylabel48
pushstring "~r~Error:~s~ Can't convert stat into a "
GetStaticP1 245
strcopy 64
call @get_menu_number
Switch [1 @drawint]:[2 @drawbool]:[3 @drawfloat]
Return 2 0//endexecute
:drawint
GetStaticP2 262
gethash
GetStaticP1 101
Push_-1
callnative stat_get_int 3 1
pushstring "int."
GetStaticP1 245
stradd 16
GetStaticP1 245
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel49
Return 2 0//endexecute
:dummylabel49
jump @printintstat
:drawbool
GetStaticP2 262
gethash
GetStaticP1 101
Push_-1
callnative stat_get_bool 3 1
pushstring "bool."
GetStaticP1 245
stradd 16
GetStaticP1 245
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel50
Return 2 0//endexecute
:dummylabel50
jump @printintstat
:drawfloat
GetStaticP2 262
gethash
GetStaticP1 101
Push_-1
callnative stat_get_float 3 1
pushstring "float."
GetStaticP1 245
stradd 16
GetStaticP1 245
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel51
Return 2 0//endexecute
:dummylabel51
GetStatic1 101
pushs 9000
call @print_float(float number,int ms)
Push_0
cmpeq
jumpfalse @dummylabel52
Return 2 0//endexecute
:dummylabel52
:printintstat
pushstring "Stat ("
GetStaticP2 262
call @string strcat(string source,string toadd)
drop
pushstring ") = "
GetStaticP1 245
StrAdd 8
GetStatic1 101
GetStaticP1 245
StrAddi 16
GetStaticP1 245
pushs 9000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item2
GetFrame1 0
not
jumpfalse @inc_stat_type
PushB 63
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 64
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel53
Return 2 0//endexecute
:dummylabel53
PushB 18
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 245//sets var to string
strcopy 64
GetStaticP2 245
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel54
Return 2 0//endexecute
:dummylabel54
call @get_menu_number
Switch [1 @setstatint]:[2 @setstatbool]:[3 @setstatfloat]
Return 2 0//endexecute
:setstatint
GetStaticP1 245
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Could not convert string to int."
pushs 3000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel55
Return 2 0//endexecute
:dummylabel55
GetStaticP2 262
gethash
GetStatic1 101
Push_1
callnative stat_set_int 3 1
jumpfalse @couldnotsetstat
jump @setintstat
:setstatbool
GetStaticP1 245
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Could not convert string to int."
pushs 3000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel56
Return 2 0//endexecute
:dummylabel56
GetStatic1 101
Push_1
cmpeq
GetStatic1 101
Push_0
cmpeq
or
pushstring "~r~Error:~s~ Could not convert string to bool."
pushs 3000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel57
Return 2 0//endexecute
:dummylabel57
GetStaticP2 262
gethash
GetStatic1 101
Push_1
callnative stat_set_bool 3 1
jumpfalse @couldnotsetstat
jump @setintstat
:setstatfloat
GetStaticP2 262
gethash
GetStaticP1 245
call @string_to_float(string* toconvert)
Push_1
callnative stat_set_float 3 1
jumpfalse @couldnotsetstat
:setintstat
pushstring "Stat set."
call @print_notification(string text)
Return 2 0//endexecute
:couldnotsetstat
pushstring "~r~Error:~s~ Could not set stat."
pushs 3000
call @print(string text,int ms)
Return 2 0//endexecute
:inc_stat_type
pushstring "Stat type set to "
call @get_menu_number
switch [1 @stat_int]:[2 @stat_bool]:[3 @stat_float]
pushstring ""
jump @print_stat
:stat_int
pushstring "integer."
jump @print_stat
:stat_bool
pushstring "boolean."
jump @print_stat
:stat_float
pushstring "float."
jump @print_stat
:print_stat
call @string strcat(string source,string toadd)
pushs 3000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item3
//set saved cash
pushstring "PIM_TCASH"
PushB 10
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel58
Return 2 0//endexecute
:dummylabel58
GetStaticP2 262
GetStaticP1 100
CallNative string_to_int 2 1
Push_0
cmpeq
jumpfalse @dummylabel59
Return 2 0//endexecute
:dummylabel59
GetStatic1 100
Push_0
jumplt @removesavedcash
:savedcashloop
GetStatic1 100
Push_1
cmplt
jumpfalse @dummylabel60
Return 2 0//endexecute
:dummylabel60
GetStatic1 100
pushi24 500000
jumpgt @add500000
GetStatic1 100
jump @addlessthen500000
:add500000
pushi24 500000
:addlessthen500000
push GetHash("MP_PROP_1")
callnative network_earn_from_property 2 0
GetStatic1 100
pushi24 500000
sub
SetStatic1 100
jump @savedcashloop
:removesavedcash
GetStatic1 100
push GetHash("MP_PROP_1")
Push_0
Push_1
callnative network_buy_property 4 0
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item4
pushstring "PIM_TCASH"
PushB 18
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 64
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel61
Return 2 0//endexecute
:dummylabel61
pushstring "WALLET_BALANCE"
GetStaticP2 262
call @string_to_float(string* toconvert)
Push_1
call @set_mp_stat(string stat,val value,bool increment)
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item5
//> set rank
Push_0
SetStatic1 100
pushstring "TR_RANK"
Push_4
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
SetStatic1 101
GetStatic1 101
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel62
Return 2 0//endexecute
:dummylabel62
GetStatic1 101
GetStaticP1 100
CallNative string_to_int 2 1
Push_0
cmpeq
jumpfalse @dummylabel63
Return 2 0//endexecute
:dummylabel63
GetStatic1 100
Push_1
cmplt
jumpfalse @dummylabel64
Return 2 0//endexecute
:dummylabel64
GetStatic1 100
pushs 8000//max 8000
cmpgt
jumpfalse @dummylabel65
Return 2 0//endexecute
:dummylabel65
pushstring "CHAR_XP_FM"
GetStatic1 100
GetGlobalP3 269837//in net_rank_tunable_loader
GetArray1 1//gets array
Push_0
call @set_mp_stat(string stat,val value,bool increment)
//<
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item6
call @get_player_number
pushstring "PLAYER_MENTAL_STATE"
call @string strcat(string source,string toadd)
GetHash
call @get_menu_number
itof
Push_1
CallNative stat_set_float 3 1
drop
pushstring "Mental state has been set."
call @print_notification(string text)
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item7
//k/d ratio * base deaths = kills : kills / k/d ratio = deaths
pushstring "PM_KD_RATIO"
PushB 18//k/d
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 64
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel66
Return 2 0//endexecute
:dummylabel66
pushstring "SCLB_C_TDEATH"
PushB 9//base deaths
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 245//sets var to string
strcopy 64
GetStaticP2 245
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel67
Return 2 0//endexecute
:dummylabel67
GetStaticP1 245
GetStaticP1 101
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Could not convert string to int."
pushs 3000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel68
Return 2 0//endexecute
:dummylabel68
GetStaticP2 262
call @string_to_float(string* toconvert)
dup
SetStatic1 100//kd
GetStatic1 101//base deaths
itof
fmult
SetStatic1 102//kills
push GetHash("MPPLY_KILLS_PLAYERS")
GetStatic1 102//kills
ftoi
Push_1
CallNative stat_set_int 3 1
drop
push GetHash("MPPLY_DEATHS_PLAYER")
GetStatic1 102//kills
GetStatic1 100//kd
fdiv
ftoi
Push_1
CallNative stat_set_int 3 1
drop
pushstring "kill/death ratio set."
call @print_notification(string text)
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item8
//> mp skip tut
call @get_player_number
pushstring "CHAR_XP_FM"
call @string strcat(string source,string toadd)
GetHash
GetStaticP1 100
Push_-1
callnative stat_get_int 3 1
pushstring "~r~Error:~s~ Can't convert stat into a int."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel69
Return 2 0//endexecute
:dummylabel69
GetStatic1 100
pushs 6100
jumplt @con_skip_tut
pushstring "~r~Error:~s~ You have already completed the GTA Online tutorial."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:con_skip_tut
pushstring "NO_TUT_SPAWN"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_RACETUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_BUYGAR_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_CHANGECHAR_ASKED"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FRONT_END_JIP_UNLOCKED"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_TRIGTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_HOLDTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_CMODTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_NOTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_INTRO_CUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_INTRO_MISS_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "CP_WELCOMETUT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CR_HOLDUP_TUT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "TUTORIAL_BITSET"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "TUTORIAL_BITSET"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CHAR_XP_FM"
PushF 6100
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "fm_intro"
CallNative terminate_all_scripts_with_this_name 1 0
pushstring "fm_intro_cut_dev"
CallNative terminate_all_scripts_with_this_name 1 0
pushstring "fm_hold_up_tut"
CallNative terminate_all_scripts_with_this_name 1 0
pushstring "am_car_mod_tut"
CallNative terminate_all_scripts_with_this_name 1 0
:reloadmain
pushstring "maintransition"
pushs 8032
call @bool loadscript(string scriptname,int stacksize)
jumpfalse @reloadmain
pushstring "GTA Online tutorial bypassed."
pushs 5000
call @print(string text,int ms)
//<
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item9
//> Clear Cheat & Badsport Record
Push_0
SetStatic1 100//cheat
Push_0
SetStatic1 101//reports
Push_0
SetStatic1 102//badsport
//> cheat
pushstring "TIMES_CHEATED"
call @clear_and_get_reports_mp(string* statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
pushstring "CHEAT_BITSET"//mp - bitset
call @clear_and_get_reports_mp_bitset(string* statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_OVERALL_CHEAT")
call @clear_and_get_reports_float(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_IS_CHEATER")
call @clear_and_get_reports_bool(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_WAS_I_CHEATER")
call @clear_and_get_reports_bool(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_BECAME_CHEATER_NUM")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_DM_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_RACE_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_MC_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_MGAME_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("SCADMIN_IS_CHEATER")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_CAP_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_SUR_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_LTS_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
push GetHash("MPPLY_PARA_CHEAT_TALLY")
call @clear_and_get_reports(int statname)
GetStatic1 100//cheat
add
SetStatic1 100//cheat
//<
//> reports
push GetHash("MPPLY_GRIEFING")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_VC_ANNOYINGME")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_VC_HATE")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_OFFENSIVE_LANGUAGE")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_OFFENSIVE_TAGPLATE")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_OFFENSIVE_UGC")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_BAD_CREW_NAME")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_BAD_CREW_MOTTO")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_BAD_CREW_STATUS")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_BAD_CREW_EMBLEM")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_GAME_EXPLOITS")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_EXPLOITS")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_PLAYERMADE_TITLE")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
push GetHash("MPPLY_PLAYERMADE_DESC")
call @clear_and_get_reports(int statname)
GetStatic1 101//reports
add
SetStatic1 101//reports
//<
//> bad sport
pushstring "BAD_SPORT_BITSET"
call @clear_and_get_reports_mp_bitset(string* statname)
GetStatic1 102//badsport
add
SetStatic1 102//badsport
push GetHash("MPPLY_OVERALL_BADSPORT")
call @clear_and_get_reports_float(int statname)
GetStatic1 102//badsport
add
SetStatic1 102//badsport
push GetHash("MPPLY_WAS_I_BAD_SPORT")
call @clear_and_get_reports_bool(int statname)
GetStatic1 102//badsport
add
SetStatic1 102//badsport
push GetHash("MPPLY_CHAR_IS_BADSPORT")
call @clear_and_get_reports_bool(int statname)
GetStatic1 102//badsport
add
SetStatic1 102//badsport
push GetHash("MPPLY_BECAME_BADSPORT_NUM")
call @clear_and_get_reports(int statname)
GetStatic1 102//badsport
add
SetStatic1 102//badsport
push GetHash("MPPLY_DESTROYED_PVEHICLES")
call @clear_and_get_reports(int statname)
GetStatic1 102//badsport
add
SetStatic1 102//badsport
//<
pushstring ""
GetStaticP2 315//256 char text array
strcopy 252
GetStatic1 100//cheat
GetStaticP2 315//256 char text array
straddi 8
pushstring " Cheat flags detected.~n~"
GetStaticP2 315//256 char text array
stradd 252
GetStatic1 101//reports
GetStaticP2 315//256 char text array
straddi 8
pushstring " Report flags detected.~n~"
GetStaticP2 315//256 char text array
stradd 252
GetStatic1 102//badsport
GetStaticP2 315//256 char text array
straddi 8
pushstring " BadSport flags detected.~n~"
GetStaticP2 315//256 char text array
stradd 252
GetStaticP2 315//256 char text array
pushs 9000
call @print(string text,int ms)
//<
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item10
//Re-enable Char Transfer To Next Gen
push GetHash("MPPLY_DID_SAVE_TRANS")
Push_0
Push_1
CallNative stat_set_int 3 1
drop
pushstring "WAS_CHAR_TRANSFERED"
Push_0
call @set_mp_stat_bool(stringstatname,bool)
pushstring "Next-gen character transfer enabled."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item11
//> unlimited ammo
CallNative player_ped_id 0 1
Push_1
CallNative remove_all_ped_weapons 2 0
pushstring "GRNLAUNCH_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "GRNLAUNCH_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "RPG_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "RPG_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "MINIGUNS_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "MINIGUNS_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "STKYBMB_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "STKYBMB_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "SMKGRENADE_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "SMKGRENADE_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "GRENADE_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "GRENADE_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "PRXMINE_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "PRXMINE_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "HOMLNCH_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "HOMLNCH_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "FIREWRK_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "FIREWRK_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "MOLOTOV_FM_AMMO_BOUGHT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "MOLOTOV_FM_AMMO_CURRENT"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "Unlimited ammo set on weapons with no clip.~n~Please join a new session for affects to take place."
pushs 5000
call @print(string text,int ms)
//<
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item12
//> max consumables
pushstring "MP_CHAR_ARMOUR_"
Push_1
Push_5
pushstring "_COUNT"
push 2147383647
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "FIREWORK_TYPE_"
Push_1
Push_4
pushstring "_WHITE"
push 2147383647
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "FIREWORK_TYPE_"
Push_1
Push_4
pushstring "_RED"
push 2147383647
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "FIREWORK_TYPE_"
Push_1
Push_4
pushstring "_BLUE"
push 2147383647
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "NO_BOUGHT_YUM_SNACKS"
push 2147383647
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "NO_BOUGHT_HEALTH_SNACKS"
push 2147383647
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "NO_BOUGHT_EPIC_SNACKS"
push 2147383647
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "NUMBER_OF_ORANGE_BOUGHT"
push 2147383647
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "NUMBER_OF_BOURGE_BOUGHT"
push 2147383647
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CIGARETTES_BOUGHT"
push 2147383647
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "Consumables maxed."
pushs 5000
call @print(string text,int ms)
//<
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item13
//> unlock all
//> inc stat unlocks
pushstring "TATTOO_FM_UNLOCKS_"
Push_0
PushB 12
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_CARMOD_"
Push_1
Push_7
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_VEHICLE_"
Push_1
Push_2
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_HEALTH_"
Push_1
Push_2
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_CLOTHES_"
Push_1
PushB 11
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_WEAP_ADDON_"
Push_1
Push_5
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_WEAP_ADDON_"
Push_1
Push_4
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_KIT_"
Push_1
PushB 12
pushstring "_FM_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_KIT_FM_PURCHASE"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CHAR_KIT_FM_PURCHASE"
Push_2
PushB 12
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_ABILITY_"
Push_1
Push_3
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_ABILITY_"
Push_1
Push_3
pushstring "_UNLCK"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "RANKAP_UNLK_"
Push_0
Push_4
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "WEAP_FM_ADDON_PURCH"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "WEAP_FM_ADDON_PURCH"
Push_2
Push_5
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_FM_PACKAGE_"
Push_1
PushB 9
pushstring "_COLLECT"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_CREWUNLOCK_"
Push_1
Push_5
pushstring "_FM_EQUIP"
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "CHAR_HAIR_UNLCK"
Push_1
PushB 12
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
//<
//> acquired
pushstring "dlc_apparel_acquired_"
Push_0
PushB 40
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_hair"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_hair_"
Push_1
Push_7
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_jbib"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_jbib_"
Push_1
Push_7
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_legs"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_legs_"
Push_1
Push_7
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_feet"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_feet_"
Push_1
Push_7
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_berd"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_berd_"
Push_1
Push_7
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_props"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_props_"
Push_1
PushB 10
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_torso"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_special"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_special_"
Push_1
Push_7
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_special2"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_special2_1"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_decl"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_teeth"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "clths_acquired_teeth_"
Push_1
Push_2
pushstring ""
Push_-1
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "clths_acquired_outfit"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
//<
//> misc stat unlocks
pushstring "CHAR_HEIST_"
pushstring "1_UNLCK"
call @unlock_mp_bitset_concat(string stat1,string stat2)
pushstring "CHAR_CREWUNLOCK_"
pushstring "1_UNLCK"
call @unlock_mp_bitset_concat(string stat1,string stat2)
pushstring "CHAR_FM_HAIRCUT_"
pushstring "1_UNLCK"
call @unlock_mp_bitset_concat(string stat1,string stat2)
pushstring "CHAR_FM_WEAP_"
pushstring "UNLOCKED"
call @unlock_mp_bitset_concat(string stat1,string stat2)
pushstring "CHAR_FM_WEAP_"
pushstring "UNLOCKED2"
call @unlock_mp_bitset_concat(string stat1,string stat2)
pushstring "CHAR_WEAP_"
pushstring "UNLOCKED2"
call @unlock_mp_bitset_concat(string stat1,string stat2)
pushstring "HOLDUPS_BITSET"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "WEAPON_PICKUP_BITSET"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "WEAPON_PICKUP_BITSET2"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "WEAPON_PICKUP_BITSET2"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CHAR_WEAP_FM_PURCHASE"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "TOTAL_NO_SHOPS_HELD_UP"
PushB 20
Push_0
call @set_mp_stat(string stat,val value,bool increment)
//<
//> car mod unlocks
pushstring "USJS_FOUND"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "USJS_COMPLETED"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_FMWINAIRRACE"
PushF_1
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_FMWINSEARACE"
PushF_1
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_FMRALLYWONDRIVE"
PushF_1
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_FMRALLYWONNAV"
PushF_1
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "NUMBER_SLIPSTREAMS_IN_RACE"
PushF 150.0
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "NUMBER_TURBO_STARTS_IN_RACE"
PushF 50.0
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_FM_RACES_FASTEST_LAP"
PushF 50.0
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "RACES_WON"
PushF 100.0
Push_1
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_RACES_WON"
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
//<
//> misc dlc unlocks
pushstring "PILOT_SCHOOL_MEDAL_"
Push_0
PushB 9
pushstring ""
Push_3
call @set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
pushstring "PILOT_ASPASSEDLESSON_"
Push_0
PushB 9
pushstring ""
Push_1
call @set_inc_stats_bool(string start,int minincnum,int maxincnum,string end,bool valtoset)
pushstring "UNLOCK_HIPSTER_TSHIRT_DOG"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "UNLOCK_HIPSTER_TSHIRT_VINYL"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "UNLOCK_HIPSTER_TSHIRT_MESS"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "UNLOCK_RACE_HIPSTER_TSHIRT"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "UNLOCK_DM_HIPSTER_TSHIRT"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "HEIST_CUTS_DONE_ORNATE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "HEIST_CUTS_DONE_BIOLAB"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "HEIST_CUTS_DONE_PRISON"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "HEIST_CUTS_DONE_NARCOTIC"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "HEIST_CUTS_DONE_TUTORIAL"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "CR_PRISON_PLANE"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CR_PRISON_BUS"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CR_PRISON_STATION"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CR_PRISON_UNFINISHED_BIZ"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CR_PRISON_FINALE"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_DO_HEIST_AS_MEMBER"
PushB 25
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_DO_HEIST_AS_THE_LEADER"
PushB 25
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_DROPOFF_CAP_PACKAGES"
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_PICKUP_CAP_PACKAGES"
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_WIN_CAPTURE_DONT_DYING"
PushB 25
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_WIN_CAPTURES"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_KILL_TEAM_YOURSELF_LTS"
PushB 25
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_NIGHTVISION_KILLS"
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_KILL_PSYCHOPATHS"
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_KILL_CARRIER_CAPTURE"
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_WIN_LAST_TEAM_STANDINGS"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_ONLY_PLAYER_ALIVE_LTS"
PushB 50
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "AWD_STORE_20_CAR_IN_GARAGES"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
///<stat Name="BITSET_HEIST_VS_MISSIONS" Type="int" SaveCategory="1" online="true" profile="false" Owner="script" characterStat="true" Comment="bitfield to control the Heist Reward Versus Missions that get unlocked as Heist Strands get completed." />
///
///<stat Name="AWD_SPLIT_HEIST_TAKE_EVENLY" Type="bool" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Split the Heist take evenly" />
///<stat Name="AWD_FINISH_HEISTS" Type="int" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Complete Heists" />
///<stat Name="AWD_FINISH_HEIST_SETUP_JOB" Type="int" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Complete Heist set up jobs" />
///<stat Name="AWD_DO_HEIST_AS_MEMBER" Type="int" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Participate in a Heist as a member" />
///<stat Name="AWD_DO_HEIST_AS_THE_LEADER" Type="int" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Participate in a Heist as the leader" />
///<stat Name="AWD_COMPLETE_HEIST_NOT_DIE" Type="int" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Complete a Heist without dying" />
///<stat Name="AWD_FINISH_HEIST_NO_DAMAGE" Type="bool" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Complete a Heist without taking any damage" />
///<stat Name="AWD_WIN_GOLD_MEDAL_HEISTS" Type="int" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Win Gold medals for Heists" />
///<stat Name="AWD_MATCHING_OUTFIT_HEIST" Type="bool" SaveCategory="1" online="true" profile="true" ServerAuthoritative="false" FlushPriority="10" Owner="script" characterStat="true" Comment="Complete a Heist without taking any damage" />
///<stat Name="AWD_ALL_ROLES_HEIST" Type="bool" SaveCategory="1" online="true" profile="true" Owner="script" characterStat="true" Comment="Complete a Heist without taking any damage" />
///
///<stat Name="MPPLY_AWD_FLEECA_FIN" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed The Fleeca Job finale." />
///<stat Name="MPPLY_AWD_PRISON_FIN" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed The Prison Break finale." />
///<stat Name="MPPLY_AWD_HUMANE_FIN" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed The Humane Labs Raid finale." />
///<stat Name="MPPLY_AWD_SERIESA_FIN" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed Series A Funding finale." />
///<stat Name="MPPLY_AWD_PACIFIC_FIN" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed The Pacific Standard Job finale." />
///<stat Name="MPPLY_AWD_HST_ORDER" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed the Heist Order Bonus." />
///<stat Name="MPPLY_AWD_HST_SAME_TEAM" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Completed the Heist Same Team Bonus." />
///<stat Name="MPPLY_AWD_HST_ULT_CHAL" Type="bool" SaveCategory="0" online="true" profile="true" FlushPriority="15" ServerAuthoritative="true" Owner="script" Comment="Has player completed the heists award " />
//<
//> ability unlocks
pushstring "SCRIPT_INCREASE_"
pushstring "STAM"
call @unlock_mp_ability_concat(string stat1,string stat2)
pushstring "SCRIPT_INCREASE_"
pushstring "STRN"
call @unlock_mp_ability_concat(string stat1,string stat2)
pushstring "SCRIPT_INCREASE_"
pushstring "LUNG"
call @unlock_mp_ability_concat(string stat1,string stat2)
pushstring "SCRIPT_INCREASE_"
pushstring "DRIV"
call @unlock_mp_ability_concat(string stat1,string stat2)
pushstring "SCRIPT_INCREASE_"
pushstring "FLY"
call @unlock_mp_ability_concat(string stat1,string stat2)
pushstring "SCRIPT_INCREASE_"
pushstring "SHO"
call @unlock_mp_ability_concat(string stat1,string stat2)
pushstring "SCRIPT_INCREASE_"
pushstring "STL"
call @unlock_mp_ability_concat(string stat1,string stat2)
//<
//> tuneable unlocks
Push_1
GetGlobalP3 262145
SetImm2 6530//LTS_M_EVENT_ITEM_VICTORY_FIST_TSHIRT/1449076729
Push_1
GetGlobalP3 262145
SetImm2 6531//LTS_F_EVENT_ITEM_VICTORY_FIST_TOP/756290153
Push_1
GetGlobalP3 262145
SetImm2 6532//LTS_M_EVENT_ITEM_PLEASE_STOP_ME_HOCKEY/825703862
pushs 6040//UNLOCKINDEPENDENCE_BEER_HAT_1 (865790036) addr
SetStatic1 100
:tuneableindependenceloop
Push_1
GetGlobalP3 262145
GetStatic1 100
GetImmP
pset
GetStatic1 100
add1 1
SetStatic1 100
GetStatic1 100
pushs 6046//UNLOCKINDEPENDENCE_STATUE_HAPPINESS_SHIRT addr
jumple @tuneableindependenceloop
pushstring "To unlock tuneable unlocks you must die."
pushs 8000
call @print(string text,int ms)
//<
//<
Return 2 0//endexecute
:exe_menu_level_2_last_select_1_atzero_last_select_5_atone_item14
Push_0
Push_0
PushB 27
callnative stat_save 3 1
pushstring "~r~Error:~s~ Saveing failed."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel70
Return 2 0//endexecute
:dummylabel70
pushstring "Save successful."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//<
//> Bodyguards
:exe_bodyguards
GetStatic1 5//cursor index
Push_2//input model
jumpeq @bodyguardsoption2
Jump @reuseexemodellist0
:bodyguardsoption2
PushB 30
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
StrCopy 32
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel71
Return 2 0//endexecute
:dummylabel71
GetStaticP2 262
GetHash
call @get_random_primary
call @get_random_secondary
Push_0//none
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
//<
//> Scenarios
:exe_scenarios
GetStatic1 5//cursor index
Switch [1 @scenario0]:[2 @scenario1]:[3 @scenario2]:[4 @scenario3]:[5 @scenario4]:[6 @scenario5]:[7 @scenario6]:[8 @scenario7]:[9 @scenario8]:[10 @scenario9]:[11 @scenario10]:[12 @scenario11]:[13 @scenario12]:[14 @scenario13]:[15 @scenario14]:[16 @scenario15]:[17 @scenario16]:[18 @scenario17]:[19 @scenario18]:[20 @scenario19]:[21 @scenario20]:[22 @scenario21]:[23 @scenario22]:[24 @scenario23]:[25 @scenario24]:[26 @scenario25]:[27 @scenario26]:[28 @scenario27]:[29 @scenario28]:[30 @scenario29]:[31 @scenario30]:[32 @scenario31]:[33 @scenario32]
Return 2 0//endexecute
:scenario0
CallNative player_ped_id 0 1
CallNative clear_ped_tasks 1 0
Return 2 0
:scenario1
pushstring "PROP_HUMAN_SEAT_MUSCLE_BENCH_PRESS"
jump @exe_scenarios_sel
:scenario2
pushstring "PROP_HUMAN_SEAT_MUSCLE_BENCH_PRESS_PRISON"
jump @exe_scenarios_sel
:scenario3
pushstring "WORLD_HUMAN_AA_COFFEE"//
jump @exe_scenarios_sel
:scenario4
pushstring "WORLD_HUMAN_AA_SMOKE"//
jump @exe_scenarios_sel
:scenario5
pushstring "WORLD_HUMAN_BINOCULARS"
jump @exe_scenarios_sel
:scenario6
pushstring "WORLD_HUMAN_BUM_FREEWAY"
jump @exe_scenarios_sel
:scenario7
pushstring "WORLD_HUMAN_CAR_PARK_ATTENDANT"
jump @exe_scenarios_sel
:scenario8
pushstring "WORLD_HUMAN_CLIPBOARD"
jump @exe_scenarios_sel
:scenario9
pushstring "WORLD_HUMAN_CONST_DRILL"
jump @exe_scenarios_sel
:scenario10
pushstring "WORLD_HUMAN_DRINKING"
jump @exe_scenarios_sel
:scenario11
pushstring "WORLD_HUMAN_DRUG_DEALER"
jump @exe_scenarios_sel
:scenario12
pushstring "WORLD_HUMAN_GARDENER_LEAF_BLOWER"
jump @exe_scenarios_sel
:scenario13
pushstring "WORLD_HUMAN_GARDENER_PLANT"
jump @exe_scenarios_sel
:scenario14
pushstring "WORLD_HUMAN_GOLF_PLAYER"
jump @exe_scenarios_sel
:scenario15
pushstring "WORLD_HUMAN_HAMMERING"
jump @exe_scenarios_sel
:scenario16
pushstring "WORLD_HUMAN_JANITOR"
jump @exe_scenarios_sel
:scenario17
pushstring "WORLD_HUMAN_MOBILE_FILM_SHOCKING"
jump @exe_scenarios_sel
:scenario18
pushstring "WORLD_HUMAN_MUSCLE_FREE_WEIGHTS"
jump @exe_scenarios_sel
:scenario19
pushstring "WORLD_HUMAN_MUSICIAN"
jump @exe_scenarios_sel
:scenario20
pushstring "WORLD_HUMAN_PAPARAZZI"
jump @exe_scenarios_sel
:scenario21
pushstring "WORLD_HUMAN_PARTYING"
jump @exe_scenarios_sel
:scenario22
pushstring "WORLD_HUMAN_PROSTITUTE_HIGH_CLASS"
jump @exe_scenarios_sel
:scenario23
pushstring "WORLD_HUMAN_SECURITY_SHINE_TORCH"
jump @exe_scenarios_sel
:scenario24
pushstring "WORLD_HUMAN_SMOKING"
jump @exe_scenarios_sel
:scenario25
pushstring "WORLD_HUMAN_SMOKING_POT"//
jump @exe_scenarios_sel
:scenario26
pushstring "WORLD_HUMAN_STAND_FISHING"
jump @exe_scenarios_sel
:scenario27
pushstring "WORLD_HUMAN_STAND_MOBILE"
jump @exe_scenarios_sel
:scenario28
pushstring "WORLD_HUMAN_TENNIS_PLAYER"
jump @exe_scenarios_sel
:scenario29
pushstring "WORLD_HUMAN_TOURIST_MAP"
jump @exe_scenarios_sel
:scenario30
pushstring "WORLD_HUMAN_TOURIST_MOBILE"
jump @exe_scenarios_sel
:scenario31
pushstring "WORLD_HUMAN_WELDING"
jump @exe_scenarios_sel
:scenario32
pushstring "PROP_HUMAN_BBQ"
jump @exe_scenarios_sel
:exe_scenarios_sel
callnative remove_scenario_blocking_areas 0 0
callnative player_ped_id 0 1
call @exch
push_0//delay
GetStatic1 5//cursor index
push_4
cmpeq
GetStatic1 5//cursor index
push_5
cmpeq
GetStatic1 5//cursor index
pushb 26
cmpeq
or
or
not
jumpfalse @playscenarioexit
push_1
jump @playscenarioenter
:playscenarioexit
push_0
:playscenarioenter
callnative task_start_scenario_in_place 4 0
Return 2 0//endexecute
//<
//> garage
:exelastselectedatzero2one1
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item1]:[2 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item2]:[3 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item3]:[4 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item4]:[5 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item5]:[6 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item6]:[7 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item7]:[8 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item8]:[9 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item9]:[10 @exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item10]
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item1
//vehicle spawner submenu
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item2
//paint submenu
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item3
//upgrades submenu
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @notinvehmod
GetStatic1 100
Push_0
CallNative set_vehicle_mod_kit 2 0
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item4
//performance upgrades
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @notinvehmod
GetStatic1 100
Push_0
CallNative set_vehicle_mod_kit 2 0
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item5
//handling data
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item6
//vehicle weapon data
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item7
//change vehicle type
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item8
//vehicle extras
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @notinvehmod
Push_1
SetStatic1 101
:doescarhaveextras
GetStatic1 101
PushB 10
jumpge @enddoescarhaveextras
GetStatic1 100
GetStatic1 101
CallNative does_extra_exist 2 1
jumpfalse @incdoescarhaveextras
call @advance_menu_level
Return 2 0//endexecute
:incdoescarhaveextras
GetStatic1 101
add1 1
SetStatic1 101
jump @doescarhaveextras
:enddoescarhaveextras
pushstring "~r~Error:~s~ This vehicle does not have any extras."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:notinvehmod
pushstring "~r~Error:~s~ You're not in a vehicle."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item9
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_2_last_select_2_atzero_last_select_1_atone_item10
call @advance_menu_level
Return 2 0//endexecute
//<
//> move object
:exemoveobj
GetStatic1 5//cursor index
Switch [1 @exe_move_obj_precision]:[2 @exe_move_obj_coords]:[3 @exe_move_obj_coords]:[4 @exe_move_obj_coords]:[5 @exe_move_obj_rot]:[6 @exe_move_obj_rot]:[7 @exe_move_obj_rot]:[8 @exe_move_obj_delete]:[9 @exe_move_obj_copy]:[10 @exe_move_obj_snap]
Return 2 0//endexecute
:exe_move_obj_precision
call @set_menu_number_to_precision_level
Return 2 0//endexecute
:exe_move_obj_coords
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 87//saved object
Push_0
CallNative freeze_entity_position 2 0
GetStatic1 87//saved object
Push_2
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_3
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_4
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_1
Push_1
Push_0
Push_1
CallNative set_entity_coords 8 0
GetStatic1 87//saved object
Push_1
CallNative freeze_entity_position 2 0
Return 2 0//endexecute
:exe_move_obj_rot
//rz
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 87//saved object
Push_0
CallNative freeze_entity_position 2 0
GetStatic1 87//saved object
Push_5
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_6
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_7
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_2
Push_1
CallNative set_entity_rotation 6 0
GetStatic1 87//saved object
Push_1
CallNative freeze_entity_position 2 0
Return 2 0//endexecute
:exe_move_obj_delete
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 87
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStaticP1 87
CallNative delete_object 1 0
GetStaticP1 87
CallNative set_object_as_no_longer_needed 1 0
GetStatic1 7//menu level
Push_1
Sub
SetStatic1 7//go back
Push_0
Call @updatemenutext(istoggle)
pushstring "Object was deleted."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_move_obj_copy
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
Push_1
CallNative get_entity_coords 2 3
Push_3
GetStaticP1 100
FromStack
GetStatic1 87//saved object
Push_2
CallNative get_entity_rotation 2 3
Push_3
GetStaticP1 103
FromStack
GetStatic1 87//saved object
CallNative get_entity_model 1 1
Push_3
GetStaticP1 100
toStack
PushB 9//copyobject
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel72
Return 2 0//endexecute
:dummylabel72
:copyobject
GetStatic1 26//saved hash for model loading
SetStatic1 87//saved object
GetStatic1 87//saved object
Push_3
GetStaticP1 103
toStack
Push_2
Push_1
CallNative set_entity_rotation 6 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_move_obj_snap
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
Push_1
CallNative get_entity_coords 2 3
Push_3
GetStaticP1 100
FromStack
GetStatic1 87//saved object
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 87//saved object
PushF_0
PushF_0
PushF_0
Push_2
Push_1
CallNative set_entity_rotation 6 0
GetStatic1 87//saved object
Push_3
GetStaticP1 100
toStack
PushF_5
PushF_5
PushF_0
vadd
Push_1
Push_1
Push_0
Push_1
CallNative set_entity_coords 8 0
Push_3
GetStaticP1 100
toStack
PushF 2.0
fadd
GetStaticP1 103
CallNative get_ground_z_for_3d_coord 4 1
pushstring "~r~Error:~s~ Ground z coord not found."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel73
Return 2 0//endexecute
:dummylabel73
GetStatic1 87//saved object
CallNative get_entity_model 1 1
GetStaticP1 104//101 = x 102 = y 103 = z//left side:front:down
GetStaticP1 107//104 = x 105 = y 106 = z//right side:back:up
CallNative get_model_dimensions 3 0
GetStatic1 87//saved object
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 87//saved object
GetStatic1 100
GetStatic1 101
GetStatic1 103
GetStatic1 106
PushF_-1
fmult
fadd
Push_1
Push_1
Push_0
Push_1
CallNative set_entity_coords 8 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:errorobj
pushstring "~r~Error:~s~ Saved object is no longer in memory."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//<
//> attach object
:exeattachobj
GetStatic1 5//cursor index
Switch [1 @attach_object1]:[2 @attach_object2]:[3 @attach_object3]:[4 @attach_object4]:[5 @attach_object5]:[6 @attach_object6]:[7 @attach_object7]:[8 @attach_object8]:[9 @attach_object9]:[10 @attach_object10]:[11 @attach_object11]:[12 @attach_object12]
Return 2 0//endexecute
:attach_object1
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
pushstring "Object attached to your player."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @otop
pushstring "Object attached to your vehicle."
pushs 5000
call @print(string text,int ms)
GetStatic1 87//saved object
GetStatic1 100
jump @otov
:otop
GetStatic1 87//saved object
CallNative player_ped_id 0 1
:otov
CallNative player_ped_id 0 1
GetStatic1 85//saved bone
CallNative get_ped_bone_index 2 1
PushF_0
PushF_0
PushF_0
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
PushF_0
PushF_0
PushF_0
Push_3
GetStaticP2 296
FromStack
PushF_0
PushF_0
PushF_0
Push_3
GetStaticP2 299
FromStack
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:attach_object2
PushB 8
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel74
Return 2 0//endexecute
:dummylabel74
GetStaticP2 262
GetStaticP1 100
CallNative string_to_int 2 1
pushstring "~r~Error:~s~ Can't convert text into a number."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel75
Return 2 0//endexecute
:dummylabel75
GetStatic1 100
SetStatic1 85//saved bone
pushstring "Bone set to "
GetStaticP2 262
call @string strcat(string source,string toadd)
pushstring " default (-1)."
call @string strcat2(string source,string toadd)
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:attach_object3
call @set_menu_number_to_precision_level
Return 2 0//endexecute
:attach_object4
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @attach_obj_to_situation
call @get_menu_number
SetStatic2 296
Return 2 0//endexecute
:attach_object5
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @attach_obj_to_situation
call @get_menu_number
SetStatic2 297
Return 2 0//endexecute
:attach_object6
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @attach_obj_to_situation
call @get_menu_number
SetStatic2 298
Return 2 0//endexecute
:attach_object7
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @attach_obj_to_situation
call @get_menu_number
SetStatic2 299
Return 2 0//endexecute
:attach_object8
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @attach_obj_to_situation
call @get_menu_number
SetStatic2 300
Return 2 0//endexecute
:attach_object9
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
call @attach_obj_to_situation
call @get_menu_number
SetStatic2 301
Return 2 0//endexecute
:attach_object10
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative get_entity_model 1 1
CallNative player_ped_id 0 1
Push_0
CallNative get_entity_coords 2 3
PushF_5
PushF_5
PushF_0
vadd
PushB 10//copyobjectattached
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel76
Return 2 0//endexecute
:dummylabel76
:copyobjectattached
GetStatic1 26//saved hash and entity for model loading
SetStatic1 87//saved object
call @attach_obj_to_situation
Return 2 0//endexecute
:attach_object11
GetStatic1 87//saved object
CallNative does_entity_exist 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_an_object 1 1
jumpfalse @errorobj
GetStatic1 87//saved object
CallNative is_entity_attached 1 1
Push_0
cmpeq
jumpfalse @dummylabel77
Return 2 0//endexecute
:dummylabel77
GetStatic1 87//saved object
Push_0
Push_0
CallNative detach_entity 3 0
Return 2 0//endexecute
:attach_object12
Jump @exe_move_obj_delete
//<
//> map mods
:exemapmodobj
GetStatic1 5//cursor index
Switch [1 @map_mod1]
Return 2 0//endexecute
:map_mod1
push GetHash("prop_windmill_01")
PushF 229.67
PushF -1026.3
PushF -101.600
PushB 11//map_mod_windmill_load1
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel78
Return 2 0//endexecute
:dummylabel78
:map_mod_windmill_load1
GetStatic1 26//saved hash and entity for model loading
PushF -90
PushF_0
PushF_0
Push_2
Push_1
CallNative set_entity_rotation 6 0
push GetHash("prop_windmill_01")
PushF 229.67
PushF -1026.3
PushF -101.700
PushB 12//map_mod_windmill_load2
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel79
Return 2 0//endexecute
:dummylabel79
:map_mod_windmill_load2
GetStatic1 26//saved hash and entity for model loading
PushF -90
PushF_0
PushF_0
Push_2
Push_1
CallNative set_entity_rotation 6 0
pushstring "10 car garage now has a windmill."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//<
//> ipls
:exeipls
GetStatic1 5//cursor index
Switch [1 @ipl1]:[2 @ipl2]:[3 @ipl3]:[4 @ipl4]
Return 2 0//endexecute
:ipl1
//> north yankton
PushString "prologue"
pushstring "01"
call @request_concat_ipl
PushString "prologue"
pushstring "01c"
call @request_concat_ipl
PushString "prologue"
pushstring "01d"
call @request_concat_ipl
PushString "prologue"
pushstring "01e"
call @request_concat_ipl
PushString "prologue"
pushstring "01f"
call @request_concat_ipl
PushString "prologue"
pushstring "01g"
call @request_concat_ipl
PushString "prologue"
pushstring "01h"
call @request_concat_ipl
PushString "prologue"
pushstring "01i"
call @request_concat_ipl
PushString "prologue"
pushstring "01j"
call @request_concat_ipl
PushString "prologue"
pushstring "01k"
call @request_concat_ipl
PushString "prologue"
pushstring "01z"
call @request_concat_ipl
PushString "prologue"
pushstring "02"
call @request_concat_ipl
PushString "prologue"
pushstring "03"
call @request_concat_ipl
PushString "prologue"
pushstring "03b"
call @request_concat_ipl
PushString "prologue"
pushstring "04"
call @request_concat_ipl
PushString "prologue"
pushstring "04b"
call @request_concat_ipl
PushString "prologue"
pushstring "05"
call @request_concat_ipl
PushString "prologue"
pushstring "05b"
call @request_concat_ipl
PushString "prologue"
pushstring "06"
call @request_concat_ipl
PushString "prologue"
pushstring "06b"
call @request_concat_ipl
PushString "prologue"
pushstring "rd"
call @request_concat_ipl
PushString "prologue"
pushstring "rdb"
call @request_concat_ipl
PushString "prologue"
pushstring "_m2_door"
call @request_concat_ipl
PushString "prologue"
pushstring "_LODLights"
call @request_concat_ipl
PushString "prologue"
pushstring "_DistantLights"
call @request_concat_ipl
PushString "prologue"
pushstring "03_grv_dug"
call @request_concat_ipl
PushString "prologue"
pushstring "_grv_torch"
call @request_concat_ipl
//<
PushF 3210.9387
PushF -4834.830
PushF 112.2
call @teleport_your_player(float_x,float_y,float_z)
Jump @ipldone
:ipl2
CallNative network_is_in_session 0 1
jumpfalse @iplneterror
//> AIRCRAFT_CARRIER
pushstring "hei_carrier"
call @request_ipl(string_ipl)
pushstring "hei_Carrier_int"
pushstring "1"
call @request_concat_ipl
pushstring "hei_Carrier_int"
pushstring "2"
call @request_concat_ipl
pushstring "hei_Carrier_int"
pushstring "3"
call @request_concat_ipl
pushstring "hei_Carrier_int"
pushstring "4"
call @request_concat_ipl
pushstring "hei_Carrier_int"
pushstring "5"
call @request_concat_ipl
pushstring "hei_Carrier_int"
pushstring "6"
call @request_concat_ipl
pushstring "hei_carrier"
pushstring "_DistantLights"
call @request_concat_ipl
pushstring "hei_carrier"
pushstring "_LODLights"
call @request_concat_ipl
pushstring "AZL_HEI_AIRCRAFT_CARRIER"
Push_1
Push_1
callnative set_ambient_zone_list_state_persistent 3 0
//<
PushF 3089.711
PushF -4751.966
PushF 15.5
call @teleport_your_player(float_x,float_y,float_z)
Jump @ipldone
:ipl3
CallNative network_is_in_session 0 1
jumpfalse @iplneterror
//> yacht
pushstring "hei_yacht_heist"
call @request_ipl(string_ipl)
pushstring "hei_yacht_heist"
pushstring "_enginrm"
call @request_concat_ipl
pushstring "hei_yacht_heist"
pushstring "_Lounge"
call @request_concat_ipl
pushstring "hei_yacht_heist"
pushstring "_Bridge"
call @request_concat_ipl
pushstring "hei_yacht_heist"
pushstring "_Bar"
call @request_concat_ipl
pushstring "hei_yacht_heist"
pushstring "_Bedrm"
call @request_concat_ipl
pushstring "hei_yacht_heist"
pushstring "_DistantLights"
call @request_concat_ipl
pushstring "hei_yacht_heist"
pushstring "_LODLights"
call @request_concat_ipl
pushstring "AZL_DLC_HEI_MILO_YACHT_ZONES"
Push_1
Push_1
callnative set_ambient_zone_list_state_persistent 3 0
//<
PushF -2043.639
PushF -1031.495
PushF 12.2
call @teleport_your_player(float_x,float_y,float_z)
Jump @ipldone
:ipl4
CallNative network_is_in_session 0 1
jumpfalse @iplneterror
//> O'Neils Farm House
pushstring "cs1_02_cf_offmission"
CallNative is_ipl_active 1 1
JumpFalse @skp_remove_ipl_farm
pushstring "cs1_02_cf_offmission"
callnative remove_ipl 1 0
:skp_remove_ipl_farm
pushstring "cs1_02_cf_onmission"
pushstring "1"
call @request_concat_ipl
pushstring "cs1_02_cf_onmission"
pushstring "2"
call @request_concat_ipl
pushstring "cs1_02_cf_onmission"
pushstring "3"
call @request_concat_ipl
pushstring "cs1_02_cf_onmission"
pushstring "4"
call @request_concat_ipl
//<
Jump @ipldone
:iplneterror
pushstring "~r~Error:~s~ This ipl doesn't appear in single player."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:ipldone
pushstring "Ipl loaded."
call @print_notification(string text)
Return 2 0//endexecute
//<
//> exedrawtool
:exedrawtool
call @advance_menu_level
Return 2 0//endexecute
//<
//> exechangemenucolor
:exechangemenucolor
GetStatic1 5//cursor index
Switch [1 @TextColor1]:[2 @TextColor2]:[3 @TextColor3]:[4 @TextColor4]:[5 @TextColor5]:[6 @TextColor6]:[7 @TextColor7]
Return 2 0//endexecute
:TextColor1
:reloop_TextColor1
push 0xFF000000
SetStatic1 100
GetStaticP1 100
Push_1
GetStaticP1 240
PushB 12//header txt r
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_2
GetStaticP1 240
PushB 13//header txt g
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_3
GetStaticP1 240
PushB 14//header txt b
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Header Text Color"
GetStatic1 100
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel80
Return 2 0//endexecute
:dummylabel80
GetStaticP1 240
PushB 12//header txt r
GetStaticP1 101
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 13//header txt g
GetStaticP1 101
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 14//header txt b
GetStaticP1 101
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @reloop_TextColor1
:TextColor2
:reloop_TextColor
push 0xFF000000
SetStatic1 100
GetStaticP1 100
Push_1
GetStaticP1 240
Push_0//txt r
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_2
GetStaticP1 240
Push_1//txt g
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_3
GetStaticP1 240
Push_2//txt b
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Text Color"
GetStatic1 100
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel81
Return 2 0//endexecute
:dummylabel81
GetStaticP1 240
Push_0//txt r
GetStaticP1 101
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
Push_1//txt g
GetStaticP1 101
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
Push_2//txt b
GetStaticP1 101
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @reloop_TextColor
:TextColor3
:reloop_backgroundcolor
push 0xFF000000
SetStatic1 100
GetStaticP1 100
Push_1
GetStaticP1 240
Push_3//background r
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_2
GetStaticP1 240
Push_4//background g
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_3
GetStaticP1 240
Push_5//background b
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Background Color"
GetStatic1 100
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel82
Return 2 0//endexecute
:dummylabel82
GetStaticP1 240
Push_3//background r
GetStaticP1 101
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
Push_4//background g
GetStaticP1 101
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
Push_5//background b
GetStaticP1 101
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @reloop_backgroundcolor
:TextColor4
:reloop_scrollbarcolor
push 0xFF000000
SetStatic1 100
GetStaticP1 100
Push_1
GetStaticP1 240
Push_6//scroll bar r
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_2
GetStaticP1 240
Push_7//scroll bar g
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_3
GetStaticP1 240
PushB 8//scroll bar b
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Scroll Bar Color"
GetStatic1 100
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel83
Return 2 0//endexecute
:dummylabel83
GetStaticP1 240
Push_6//scroll bar r
GetStaticP1 101
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
Push_7//scroll bar g
GetStaticP1 101
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 8//scroll bar b
GetStaticP1 101
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @reloop_scrollbarcolor
:TextColor5
:reloop_selTextColor
push 0xFF000000
SetStatic1 100
GetStaticP1 100
Push_1
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_2
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_3
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Selected Text Color"
GetStatic1 100
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel84
Return 2 0//endexecute
:dummylabel84
GetStaticP1 240
PushB 9//sel txt r
GetStaticP1 101
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 10//sel txt g
GetStaticP1 101
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 11//sel txt b
GetStaticP1 101
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @reloop_selTextColor
:TextColor6
:reloop_infoTextColor
push 0xFF000000
SetStatic1 100
GetStaticP1 100
Push_1
GetStaticP1 240
PushB 15//info txt r
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_2
GetStaticP1 240
PushB 16//info txt g
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 100
Push_3
GetStaticP1 240
PushB 17//info txt b
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Info Text Color"
GetStatic1 100
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 101
push -2
cmpeq
jumpfalse @dummylabel85
Return 2 0//endexecute
:dummylabel85
GetStaticP1 240
PushB 15//info txt r
GetStaticP1 101
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 16//info txt g
GetStaticP1 101
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 240
PushB 17//info txt b
GetStaticP1 101
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @reloop_infoTextColor
:TextColor7
push 0xFFFFFF00
push 0x0000FFFF
push 0xFF000000
push 0xFFFFFFFF
push 0xFFFF0000
Push_5
GetStaticP1 240//change menu color byte[]
fromstack
pushstring "Menu color reset."
call @print_notification(string text)
Return 2 0//endexecute
//<
//> exetimecyclemenu
:exetimecyclemenu
GetStatic1 5//cursor index
push_1
jumpne @notdefault
callnative clear_timecycle_modifier 0 0
pushstring "Timecycle has been set to Default."
call @print_notification(string text)
Return 2 0//endexecute
:notdefault
call @advance_menu_level
Return 2 0//endexecute
//<
//> exemobileradio
:exemobileradio
GetStatic1 5//cursor index
Switch [1 @mobileradio1]:[2 @mobileradio2]:[3 @mobileradio3]
Return 2 0//endexecute
:mobileradio1
GetStaticP1 24
Push_1//mobile radio
call @toggle_bit(var*,bit)
GetStatic1 24
Push_1//mobile radio
CallNative is_bit_set 2 1
dup
callnative set_mobile_radio_enabled_during_gameplay 1 0
callnative set_mobile_phone_radio_state 1 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:mobileradio2
callnative skip_radio_forward 0 0
Return 2 0//endexecute
:mobileradio3
call @advance_menu_level
Return 2 0//endexecute
//<
//> exehandlingdata
:exehandlingdata
call @advance_menu_level
Return 2 0//endexecute
//<
//> exevehicle_weapon_data
:exevehicle_weapon_data
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
SetStatic2 380//header
call @advance_menu_level
Return 2 0//endexecute
//<
//<
//> menu execution level3
//> menu execution level3 handling
:exemenulevel3
GetStatic1 4//last selected of item level zero
Switch [1 @exelast_sel_1_at_zero_menulevel3]:[2 @exelast_sel_2_at_zero_menulevel3]:[7 @exelast_sel_7_at_zero_menulevel3]
Return 2 0//endexecute
//> level 3 player options handling
:exelast_sel_1_at_zero_menulevel3
GetStatic1 2//last selected of item level one
Switch [1 @onlineplayersel]:[2 @allplayermodsel]:[3 @modelchangesel]:[4 @animationsel]:[7 @exebodyguardsel]//if online player was pressed
Return 2 0//endexecute
:onlineplayersel
GetStatic1 12//temp last sel item
Switch [1 @mainonlineplayers]//if player was pressed
Return 2 0//endexecute
:allplayermodsel
Push_-1
SetStatic1 10//player loop index
Push_0
SetStatic1 26//player bitset
:reloopforallplayers
Call @bool_can_continue_all_player_loop
Push_0
cmpeq
jumpfalse @dummylabel86
Return 2 0//endexecute
:dummylabel86
GetStatic1 1//last selected of item level two
Push_1
GetFrame1 0
Push_0
call @online_player_options(submenu,islooped,is_exe_on_dpad,onlinejumptype)
jump @reloopforallplayers
:modelchangesel
GetStatic1 1//last selected of item level two
Switch [1 @componentchanger]:[3 @exe_favorites_in_modelchanger]:[5 @exe_dir1_in_modelchanger]:[6 @exe_dir1_in_modelchanger]:[8 @exe_dir1_in_modelchanger]:[9 @exe_dir1_in_modelchanger]:[11 @exe_dir1_in_modelchanger]
:exereusemodellistdir1
GetStatic1 1//last selected of item level two
switch [4 @exe_dirs1_to_2_in_modelchanger]:[7 @exe_dirs1_to_2_in_modelchanger]:[10 @exe_dirs1_to_2_in_modelchanger]:[12 @exe_dirs1_to_2_in_modelchanger]:[13 @exe_dirs1_to_2_in_modelchanger]
Return 2 0//endexecute
:animationsel
GetStatic1 1//last selected of item level two
Switch [1 @movement_group]//if change movement group was pressed
Return 2 0//endexecute
:exebodyguardsel
GetStatic1 1//last selected of item level two
Switch [1 @exebodyguardoptions]:[3 @exe_favorites_in_bodyguards]:[5 @exe_dir1_in_bodyguards]:[6 @exe_dir1_in_bodyguards]:[8 @exe_dir1_in_bodyguards]:[9 @exe_dir1_in_bodyguards]:[11 @exe_dir1_in_bodyguards]
Jump @exereusemodellistdir1
//<
//> level 3 vehicle options handling
:exelast_sel_2_at_zero_menulevel3
GetStatic1 2//last selected of item level one
Switch [1 @exegaragesel]
Return 2 0//endexecute
:exegaragesel
GetStatic1 1//last selected of item level two
Switch [1 @exevehspawner]:[2 @exepaint]:[3 @exevehmods]:[4 @exevehperformance]:[5 @exe_handlingdata]:[6 @exe_veh_weap_data]:[7 @exe_change_veh_type]:[8 @exevehextras]:[9 @exevehicledoors]:[10 @exefunnyvehs]//if paint was pressed
Return 2 0//endexecute
//<
//> level 3 misc options handling
:exelast_sel_7_at_zero_menulevel3
GetStatic1 2//last selected of item level one
Switch [2 @exedrawtoolsel]:[4 @exetimecyclessel]:[5 @exe_song_selector_station_sel]
Return 2 0//endexecute
:exedrawtoolsel
GetStatic1 1//last selected of item level two
Switch [1 @exedrawtext]:[2 @exedrawbox]:[3 @exedrawsprite]
Return 2 0//endexecute
:exetimecyclessel
GetStatic1 1//last selected of item level two
push_4
jumpne @consettimecycle
GetStatic1 5//cursor index
pushb 27
jumpne @consettimecycle
pushstring "LODmult_HD_orphan_LOD_reduce"
callnative set_timecycle_modifier 1 0
Return 2 0//endexecute
:consettimecycle
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1
callnative set_timecycle_modifier 1 0
Return 2 0//endexecute
:exe_song_selector_station_sel
GetStatic1 5//cursor index
push_1
jumpne @radio_submenu
push_0
setstatic1 73//big song start index as song id
callnative stop_stream 0 0
pushstring "Audio Stopped. "
call @print_notification(string text)
Return 2 0//endexecute
:radio_submenu
call @advance_menu_level
Return 2 0//endexecute
//<
//<
//> main menu for online players
:mainonlineplayers
call @advance_menu_level
Return 2 0//endexecute
//<
//> component changer
:componentchanger
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_3_last_sel1_atzero_last_sel3_atone_sel1_attwoitem1]:[2 @exe_menu_level_3_last_sel1_atzero_last_sel3_atone_sel1_attwoitem2]:[3 @exe_menu_level_3_last_sel1_atzero_last_sel3_atone_sel1_attwoitem3]
call @get_menu_number
SetStatic1 94
GetStatic1 5//cursor index
GetStaticP1 110//static var to hold maxval array
GetArray1 1//getting the array
SetStatic1 12//temp last sel item
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel1_atzero_last_sel3_atone_sel1_attwoitem1
CallNative player_ped_id 0 1
CallNative get_entity_model 1 1
SetStatic1 100
push GetHash("MP_F_Freemode_01")
GetStatic1 100
cmpeq
push GetHash("MP_M_Freemode_01")
GetStatic1 100
cmpeq
or
not
pushstring "~r~Error:~s~ You cannot randomize your components as a mp character."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel87
Return 2 0//endexecute
:dummylabel87
CallNative player_ped_id 0 1
Push_0
CallNative set_ped_random_component_variation 2 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel1_atzero_last_sel3_atone_sel1_attwoitem2
CallNative player_ped_id 0 1
CallNative set_ped_random_props 1 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel1_atzero_last_sel3_atone_sel1_attwoitem3
CallNative player_ped_id 0 1
CallNative clear_all_ped_props 1 0
Return 2 0//endexecute
//<
//> exe_favorites_in_modelchanger
:exe_favorites_in_modelchanger
call @exe_favorites
dup
jumpfalse @favoriteerrormodelchanger
Push_7//favorites_change_components
call @Change_Player_Model_no_wait(int model,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel88
Return 2 0//endexecute
:dummylabel88
:favorites_change_components
CallNative player_ped_id 0 1
SetStatic1 100
:reuse_favorites_itemc
GetStatic1 5//cursor index
Switch [10 @exe_favorites_itemc10]:[23 @exe_favorites_itemc23]:[28 @exe_favorites_itemc28]:[29 @exe_favorites_itemc29]
Return 2 0//endexecute
:favoriteerrormodelchanger
drop
Return 2 0//endexecute
:exe_favorites_itemc10
//> components
GetStatic1 100
Push_0//component
Push_1//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
Push_3//component
Push_2//Model Variation
Push_4//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
Push_4//component
Push_0//Model Variation
Push_4//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
Push_5//component
Push_1//Model Variation
Push_1//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
PushB 8//component
Push_0//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
PushB 9//component
Push_1//Model Variation
Push_1//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
PushB 11//component
Push_0//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
CallNative clear_all_ped_props 1 0
//<
Return 2 0//endexecute
:exe_favorites_itemc23
//> components
GetStatic1 100
Push_0//component
Push_2//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
CallNative player_ped_id 0 1
CallNative clear_all_ped_props 1 0
//<
Return 2 0//endexecute
:exe_favorites_itemc28
//> components
GetStatic1 100
Push_0//component
Push_0//Model Variation
Push_3//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
Push_3//component
Push_3//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
GetStatic1 100
CallNative clear_all_ped_props 1 0
//<
Return 2 0//endexecute
:exe_favorites_itemc29
//> components
pushs 1000
CallNative wait 1 0
GetStatic1 100
Push_0//component
Push_0//Model Variation
Push_3//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
//<
Return 2 0//endexecute
//<
//> exe_dirs1_to_2_in_modelchanger
:exe_dirs1_to_2_in_modelchanger
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel89
Return 2 0//endexecute
:dummylabel89
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
gethash
SetStatic1 67//saved modelchanger dir2
call @advance_menu_level
Return 2 0//endexecute
//<
//> exe_dir1_in_modelchanger
:exe_dir1_in_modelchanger
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel90
Return 2 0//endexecute
:dummylabel90
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
Push_0
Push_0
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
Push_0//none
call @Change_Player_Model_no_wait(int model,jumptype)
drop
Return 2 0//endexecute
//<
//> exe_favorites_in_bodyguards
:exe_favorites_in_bodyguards
call @exe_favorites
dup
jumpfalse @favoriteerrormodelchanger
call @get_random_primary
call @get_random_secondary
PushB 54//bodyguards_favorites
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
:bodyguards_favorites
GetStatic1 26//saved hash and entity for model loading
SetStatic1 100
Jump @reuse_favorites_itemc
//<
//> exe_dir1_in_bodybuards
:exe_dir1_in_bodyguards
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel91
Return 2 0//endexecute
:dummylabel91
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
Push_0
Push_0
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
call @get_random_primary
call @get_random_secondary
Push_0//none
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
//<
//> movement group
:movement_group
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem1]:[2 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem2]:[3 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem3]:[4 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem4]:[5 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem5]:[6 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem6]:[7 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem7]:[8 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem8]:[9 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem9]:[10 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem10]:[11 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem11]:[12 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem12]:[13 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem13]:[14 @exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem14]
Return 2 0//endexecute
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem1
CallNative player_ped_id 0 1
PushF 0.25
callnative reset_ped_movement_clipset 2 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem2
PushB 60
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 64
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel92
Return 2 0//endexecute
:dummylabel92
GetStaticP2 262
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem3
pushstring "move_m@generic"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem4
pushstring "move_f@generic"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem5
pushstring "move_injured_generic"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem6
pushstring "FEMALE_FAST_RUNNER"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem7
pushstring "move_m@drunk@verydrunk"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem8
pushstring "move_m@gangster@generic"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem9
pushstring "move_m@alien"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem10
pushstring "move_m@hipster@a"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem11
pushstring "move_m@fat@a"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem12
pushstring "move_lester_CaneUp"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem13
pushstring "move_f@film_reel"
jump @exe_set_ped_movement_group
:exe_menu_level_3_last_sel1_atzero_last_sel4_atone_sel1_attwoitem14
pushstring "move_m@hobo@a"
jump @exe_set_ped_movement_group
:exe_set_ped_movement_group
call @set_ped_movement_clipset_no_wait(string animset)
Return 2 0//endexecute
//<
//> bodyguard options
:exebodyguardoptions
call @is_my_group_valid_if_not_create_one
GetStatic1 5//cursor index
switch [2 @exebodyguardoptionsitem2]:[3 @exebodyguardoptionsitem3]:[12 @exebodyguardoptionsitem12]:[13 @exebodyguardoptionsitem13]:[14 @exebodyguardoptionsitem14]
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStaticP1 100//leaders?
GetStaticP1 101//members?
CallNative get_group_size 3 0
GetStatic1 101
Push_0
cmple
jumpfalse @dummylabel93
Return 2 0//endexecute
:dummylabel93
Push_1//bodyguard index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_0
cmpeq
jumpfalse @dummylabel94
Return 2 0//endexecute
:dummylabel94
CallNative player_id 0 1
CallNative get_player_group 1 1
Push_1//bodyguard index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_1
sub
CallNative get_ped_as_group_member 2 1//index starts at zero
SetStatic1 100
GetStatic1 5//cursor index
Switch [1 @exebodyguardoptionsitem1]:[4 @exebodyguardoptionsitem4]:[5 @exebodyguardoptionsitem5]:[6 @exebodyguardoptionsitem6]:[7 @exebodyguardoptionsitem7]:[8 @exebodyguardoptionsitem8]:[9 @exebodyguardoptionsitem9]:[10 @exebodyguardoptionsitem10]:[11 @exebodyguardoptionsitem11]
Return 2 0//endexecute
:exebodyguardoptionsitem1
GetStatic1 100//group ped
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel95
Return 2 0//endexecute
:dummylabel95
CallNative player_ped_id 0 1
Push_0
CallNative get_entity_coords 2 3
GetStatic1 100
Push_0
CallNative get_entity_coords 2 3
Push_0
Push_1
Push GetHash("VEHICLE_WEAPON_PLAYER_LASER")
Push_0
Push_0
Push_1
Push -1082130432
CallNative shoot_single_bullet_between_coords 13 0
Return 2 0//endexecute
:exebodyguardoptionsitem2
CallNative player_id 0 1
CallNative get_player_group 1 1
call @get_menu_number
dup
SetStatic1 195//saved group formation
CallNative set_group_formation 2 0
pushstring "Group formation set."
call @print_notification(string text)
Return 2 0//endexecute
:exebodyguardoptionsitem3
CallNative player_id 0 1
CallNative get_player_group 1 1
call @get_menu_number
dup
SetStatic1 196//saved group spacing
Push -1082130432
Push -1082130432
CallNative set_group_formation_spacing 4 0
pushstring "Group spacing set."
call @print_notification(string text)
Return 2 0//endexecute
:exebodyguardoptionsitem4
GetStatic1 100//group ped
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel96
Return 2 0//endexecute
:dummylabel96
GetStatic1 100
CallNative get_entity_model 1 1
SetStatic1 102
push GetHash("MP_F_Freemode_01")
GetStatic1 102
cmpeq
push GetHash("MP_M_Freemode_01")
GetStatic1 102
cmpeq
or
not
pushstring "~r~Error:~s~ You cannot randomize the components of a mp character."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel97
Return 2 0//endexecute
:dummylabel97
GetStatic1 100//group ped
Push_0
CallNative set_ped_random_component_variation 2 0
Return 2 0//endexecute
:exebodyguardoptionsitem5
GetStatic1 100//group ped
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel98
Return 2 0//endexecute
:dummylabel98
GetStatic1 100
CallNative get_entity_model 1 1
SetStatic1 102
push GetHash("MP_F_Freemode_01")
GetStatic1 102
cmpeq
push GetHash("MP_M_Freemode_01")
GetStatic1 102
cmpeq
or
not
pushstring "~r~Error:~s~ You cannot randomize the components of a mp character."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel99
Return 2 0//endexecute
:dummylabel99
GetStatic1 100//group ped
CallNative set_ped_random_props 1 0
Push_0
Push_5
CallNative get_random_int_in_range 2 1
Push_0
cmpgt
jumpfalse @dummylabel100
Return 2 0//endexecute
:dummylabel100
GetStatic1 100//group ped
CallNative clear_all_ped_props 1 0
Return 2 0//endexecute
:exebodyguardoptionsitem6
GetStatic1 100//group ped
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel101
Return 2 0//endexecute
:dummylabel101
GetStatic1 100//group ped
Push_1
CallNative remove_all_ped_weapons 2 0
Return 2 0//endexecute
:exebodyguardoptionsitem7
:reusenextmenuinbguards
Push_1//bodyguard index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
SetStatic1 197//saved bodyguard index
GetStatic1 100
SetStatic1 63//saved bodyguard ped
call @advance_menu_level
Return 2 0//endexecute
:exebodyguardoptionsitem8
jump @reusenextmenuinbguards
:exebodyguardoptionsitem9
jump @reusenextmenuinbguards
:exebodyguardoptionsitem10
GetStatic1 100//group ped
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel102
Return 2 0//endexecute
:dummylabel102
GetStatic1 100//group ped
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStatic1 100//group ped
CallNative remove_ped_from_group 1 0
GetStaticP1 100//group ped
CallNative set_ped_as_no_longer_needed 1 0
Jump @endexecute_bguardupdate
:exebodyguardoptionsitem11
GetStatic1 100//group ped
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel103
Return 2 0//endexecute
:dummylabel103
GetStatic1 100//group ped
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStatic1 100//group ped
CallNative remove_ped_from_group 1 0
GetStaticP1 100//group ped
CallNative delete_ped 1 0
:endexecute_bguardupdate
Push_0
SetStatic1 197//saved bodyguard index
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exebodyguardoptionsitem12
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStaticP1 100//leaders?
GetStaticP1 101//members?
CallNative get_group_size 3 0
GetStatic1 101
Push_0
cmple
jumpfalse @dummylabel104
Return 2 0//endexecute
:dummylabel104
Push_0
SetStatic1 102
:bguardteleallloop
GetStatic1 102
GetStatic1 101
cmpge
jumpfalse @dummylabel105
Return 2 0//endexecute
:dummylabel105
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStatic1 102
CallNative get_ped_as_group_member 2 1//index starts at zero
dup
SetStatic1 100//group ped
CallNative does_entity_exist 1 1
jumpfalse @bguardtelenoexist
GetStatic1 100
CallNative player_ped_id 0 1
PushF 1.0
call @get_coord_in_front(int entity,float range)
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
:bguardtelenoexist
GetStatic1 102
add1 1
SetStatic1 102
jump @bguardteleallloop
:exebodyguardoptionsitem13
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStaticP1 100//leaders?
GetStaticP1 101//members?
CallNative get_group_size 3 0
GetStatic1 101
Push_0
cmple
jumpfalse @dummylabel106
Return 2 0//endexecute
:dummylabel106
Push_0
SetStatic1 102
:bguarddisbandallloop
GetStatic1 102
GetStatic1 101
jumpge @endexecute_bguardupdate
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStatic1 102
CallNative get_ped_as_group_member 2 1//index starts at zero
dup
SetStatic1 100//group ped
CallNative does_entity_exist 1 1
jumpfalse @bguarddisbandnoexist
GetStatic1 100//group ped
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStatic1 100//group ped
CallNative remove_ped_from_group 1 0
GetStaticP1 100//group ped
CallNative set_ped_as_no_longer_needed 1 0
Push_1
Call @updatemenutext(istoggle)
:bguarddisbandnoexist
GetStatic1 102
add1 1
SetStatic1 102
jump @bguarddisbandallloop
:exebodyguardoptionsitem14
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStaticP1 100//leaders?
GetStaticP1 101//members?
CallNative get_group_size 3 0
GetStatic1 101
Push_0
cmple
jumpfalse @dummylabel107
Return 2 0//endexecute
:dummylabel107
Push_0
SetStatic1 102
:bguarddelallloop
GetStatic1 102
GetStatic1 101
jumpge @endexecute_bguardupdate
CallNative player_id 0 1
CallNative get_player_group 1 1
GetStatic1 102
CallNative get_ped_as_group_member 2 1//index starts at zero
dup
SetStatic1 100//group ped
CallNative does_entity_exist 1 1
jumpfalse @bguarddelnoexist
GetStatic1 100//group ped
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStatic1 100//group ped
CallNative remove_ped_from_group 1 0
GetStaticP1 100//group ped
CallNative delete_ped 1 0
:bguarddelnoexist
GetStatic1 102
add1 1
SetStatic1 102
jump @bguarddelallloop
//PushString "Teleport All To You"
//call @add_item(string item)
//PushString "Disband All"
//call @add_item(string item)
//PushString "Delete All"
//call @add_item(string item)
//<
//> vehicle spawner
:exevehspawner
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel108
Return 2 0//endexecute
:dummylabel108
call @advance_menu_level
Return 2 0//endexecute
//<
//> vehicle mods
:exevehmods
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
Push_0
CallNative set_vehicle_mod_kit 2 0
GetStatic1 5//cursor index
switch [1 @setvehplatetext]:[2 @setvehplatetexture]
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
pushstring "Custom Tyres Off"
CallNative are_strings_equal 2 1
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
pushstring "Custom Tyres On"
CallNative are_strings_equal 2 1
or
not
jumpfalse @turnoncustomtyres
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
pushstring "Wheel Type"
CallNative are_strings_equal 2 1
jumpfalse @notvehmodstatics
GetStatic1 100
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
CallNative set_vehicle_wheel_type 2 0
GetStatic1 100
CallNative get_vehicle_wheel_type 1 1
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
jumpeq @congoodwheeltype
GetStatic1 100
CallNative get_vehicle_wheel_type 1 1
switch [5 @wheeltype5]:[7 @wheeltype7]
jump @congoodwheeltype
:wheeltype5
GetStatic1 100
Push_7
CallNative set_vehicle_wheel_type 2 0
jump @congoodwheeltype
:wheeltype7
GetStatic1 100
Push_5
CallNative set_vehicle_wheel_type 2 0
jump @congoodwheeltype
:congoodwheeltype
GetStatic1 100
PushB 23
Push_0
GetStatic1 100
PushB 23
CallNative get_vehicle_mod_variation 2 1
CallNative set_vehicle_mod 4 0
Push_1
GetStatic1 5//cursor index
add1 1
GetStaticP2 511//array for drawing incremented number
SetArray1 1//sets array
Push_1//update to update the max num for wheels
Call @updatemenutext(istoggle)
//GetStatic1 100
//PushB 24//does vehicle have bike wheels
//CallNative get_num_vehicle_mods 2 1
Return 2 0//endexecute
:setvehplatetext
pushstring "CMOD_MOD_18_D"
PushB 8
call @string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
GetStaticP2 262//sets var to string
StrCopy 16
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel109
Return 2 0//endexecute
:dummylabel109
GetStatic1 100
GetStaticP2 262
CallNative set_vehicle_number_plate_text 2 0
Return 2 0//endexecute
:setvehplatetexture
GetStatic1 100
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
CallNative set_vehicle_number_plate_text_index 2 0
Return 2 0//endexecute
:notvehmodstatics
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
call @vehicle_mod_to_num
SetStatic1 103
GetStatic1 103
PushB 17
cmpeq
GetStatic1 103
PushB 19
cmpeq
GetStatic1 103
PushB 20
cmpeq
GetStatic1 103
PushB 21
cmpeq
GetStatic1 103
PushB 22
cmpeq
or
or
or
or
not
jumpfalse @vehtoggle
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
jumpfalse @removevehmod
GetStatic1 100
GetStatic1 103
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_1
sub
GetStatic1 100
GetStatic1 103
CallNative get_vehicle_mod_variation 2 1
CallNative set_vehicle_mod 4 0
Return 2 0//endexecute
:removevehmod
GetStatic1 100
GetStatic1 103
CallNative remove_vehicle_mod 2 0
Return 2 0//endexecute
:vehtoggle
GetStatic1 100
GetStatic1 103
GetStatic1 100
GetStatic1 103
CallNative is_toggle_mod_on 2 1
Not
CallNative toggle_vehicle_mod 3 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:turnoncustomtyres
GetStatic1 100
GetStatic1 100
PushB 23
CallNative get_vehicle_mod_variation 2 1
not
call @toggle_custom_tyres(vehhandle,bool)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> color and tint
:exepaint
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem1]:[2 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem2]:[3 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem3]:[4 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem4]:[5 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem5]:[6 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem6]:[7 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem7]:[8 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem8]:[9 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem9]:[10 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem10]
Return 2 0//endexecute
:notinvehpaint
pushstring "~r~Error:~s~ You're not in a vehicle."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem1
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem2
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem3
GetStatic1 100
PushB 20//tyre smoke
CallNative is_toggle_mod_on 2 1
not
jumpfalse @skptsmokeforrgb
GetStatic1 100
PushB 20//tyre smoke
Push_1
CallNative toggle_vehicle_mod 3 0
:skptsmokeforrgb
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem4
//Set Vehicle Primary Color
:reloop_Set_Vehicle_Primary_Color
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_colours 3 0
pushstring "Set Primary Color"
GetStatic1 101
Push_0
Push_0
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 103
push -2
cmpeq
jumpfalse @dummylabel110
Return 2 0//endexecute
:dummylabel110
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_colours 3 0
GetStatic1 100
GetStatic1 103
GetStatic1 102
CallNative set_vehicle_colours 3 0
Jump @reloop_Set_Vehicle_Primary_Color
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem5
//Set Vehicle Secondary Color
:reloop_Set_Vehicle_Secondary_Color
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_colours 3 0
pushstring "Set Secondary Color"
GetStatic1 102
Push_0
Push_0
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 103
push -2
cmpeq
jumpfalse @dummylabel111
Return 2 0//endexecute
:dummylabel111
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_colours 3 0
GetStatic1 100
GetStatic1 101
GetStatic1 103
CallNative set_vehicle_colours 3 0
jump @reloop_Set_Vehicle_Secondary_Color
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem6
//Set Vehicle Pearlescent Color
:reloop_Set_Vehicle_Pearlescent_Color
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_extra_colours 3 0
pushstring "Set Pearlescent Color"
GetStatic1 101
Push_0
Push_0
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 103
push -2
cmpeq
jumpfalse @dummylabel112
Return 2 0//endexecute
:dummylabel112
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_extra_colours 3 0
GetStatic1 100
GetStatic1 103
GetStatic1 102
CallNative set_vehicle_extra_colours 3 0
Jump @reloop_Set_Vehicle_Pearlescent_Color
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem7
//Set Vehicle Wheel Color
:reloop_Set_Vehicle_Wheel_Color
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_extra_colours 3 0
pushstring "Set Wheel Color"
GetStatic1 102
Push_0
Push_0
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 103
push -2
cmpeq
jumpfalse @dummylabel113
Return 2 0//endexecute
:dummylabel113
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
CallNative get_vehicle_extra_colours 3 0
GetStatic1 100
GetStatic1 101
GetStatic1 103
CallNative set_vehicle_extra_colours 3 0
Jump @reloop_Set_Vehicle_Wheel_Color
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem8
//Set Vehicle Tyre Smoke Color
GetStatic1 100
PushB 20//tyre smoke
CallNative is_toggle_mod_on 2 1
not
jumpfalse @skptsmokefortsc
GetStatic1 100
PushB 20//tyre smoke
Push_1
CallNative toggle_vehicle_mod 3 0
:skptsmokefortsc
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem9
//Set Vehicle Window Tint
GetStatic1 100
Push_0
CallNative set_vehicle_mod_kit 2 0
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel3_attwoitem10
GetStatic1 100
CallNative get_vehicle_livery_count 1 1
Push_0
cmpgt
pushstring "~r~Error:~s~ This vehicle does not have livery."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel114
Return 2 0//endexecute
:dummylabel114
GetStatic1 100
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
CallNative set_vehicle_livery 2 0
Return 2 0//endexecute
//<
//> vehicle performance
:exevehperformance
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
Push_0
CallNative set_vehicle_mod_kit 2 0
GetStatic1 5//cursor index
switch [1 @bulletprooftyres]:[2 @turbo]
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
call @vehicle_mod_to_num
SetStatic1 102
GetStatic1 100
GetStatic1 102
CallNative remove_vehicle_mod 2 0
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_0
cmpeq
jumpfalse @dummylabel115
Return 2 0//endexecute
:dummylabel115
GetStatic1 100
GetStatic1 102
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_1
sub
Push_0
CallNative set_vehicle_mod 4 0
Return 2 0//endexecute
:bulletprooftyres
GetStatic1 21
Push_2//vehicle helper bool
CallNative is_bit_set 2 1
not
Push_0
cmpeq
jumpfalse @dummylabel116
Return 2 0//endexecute
:dummylabel116
GetStatic1 100
dup
CallNative get_vehicle_tyres_can_burst 1 1
not
CallNative set_vehicle_tyres_can_burst 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:turbo
GetStatic1 100
PushB 18
GetStatic1 100
PushB 18
CallNative is_toggle_mod_on 2 1
Not
CallNative toggle_vehicle_mod 3 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> handling data
:exe_handlingdata
GetStatic1 5//cursor index
Switch [1 @exehandlingdata1]:[2 @exehandlingdata2]:[3 @exehandlingdata3]
Return 2 0//endexecute
:exehandlingdata1
//handling editor
call @advance_menu_level
Return 2 0//endexecute
:exehandlingdata2
//Reset All Handling Lines
//damn this is going to be big
pushstring "Sorry, not implemented yet."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exehandlingdata3
//Set All Handling Lines To Realistic
//damn this is going to be big
pushstring "Sorry, not implemented yet."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//<
//> vehicle weapon data
:exe_veh_weap_data
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
SetStatic2 380//header
call @advance_menu_level
Return 2 0//endexecute
//<
//> change vehicle type
:exe_change_veh_type
call @advance_menu_level
Return 2 0//endexecute
//<
//> vehicle extras
:exevehextras
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel117
Return 2 0//endexecute
:dummylabel117
GetStatic1 100
call @get_menu_number
CallNative does_extra_exist 2 1
pushstring "~r~Error:~s~ This extra does not exist."
pushs 2000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel118
Return 2 0//endexecute
:dummylabel118
GetStatic1 100
call @get_menu_number
GetStatic1 100
call @get_menu_number
CallNative is_vehicle_extra_turned_on 2 1
CallNative set_vehicle_extra 3 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> exevehicledoors
:exevehicledoors
GetStatic1 5//cursor index
Switch [1 @exevehicledoors1]:[2 @exevehicledoors2]
Return 2 0//endexecute
:exevehicledoors1
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel119
Return 2 0//endexecute
:dummylabel119
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
SetStatic1 102
GetStatic1 100
GetStatic1 102
CallNative get_vehicle_door_angle_ratio 2 1
PushF_0
fCmpGt
not
dup
SetStatic1 101
jumpfalse @closevehdoor
GetStatic1 100
GetStatic1 102
Push_0
Push_0
CallNative set_vehicle_door_open 4 0
jump @openvehdoor
:closevehdoor
GetStatic1 100
GetStatic1 102
Push_1
CallNative set_vehicle_door_shut 3 0
:openvehdoor
Return 2 0//endexecute
:exevehicledoors2
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel120
Return 2 0//endexecute
:dummylabel120
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
SetStatic1 102
GetStatic1 100
GetStatic1 102
Push_1
Push_0
CallNative set_vehicle_door_open 4 0
GetStatic1 100
GetStatic1 102
Push_1
CallNative set_vehicle_door_broken 3 0
Return 2 0//endexecute
//<
//> funny vehicles
:exefunnyvehs
GetStatic1 5//cursor index
Switch [1 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem1]:[2 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem2]:[3 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem3]:[4 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem4]:[5 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem5]:[6 @exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem6]
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem1
call @advance_menu_level
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem2
//ufo
push GetHash("blimp")
Push_1//ufo funny vehicle
call @spawn_vehicle_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel121
Return 2 0//endexecute
:dummylabel121
:ufo_funny_vehicle
CallNative player_ped_id 0 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
Push_0
cmpeq
jumpfalse @dummylabel122
Return 2 0//endexecute
:dummylabel122
GetStatic1 26//saved hash and entity for model loading
Push_0
CallNative set_entity_visible 2 0
push GetHash("p_spinning_anus_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF -50.0
fsub//z
PushB 13//ufo_funny_object
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel123
Return 2 0//endexecute
:dummylabel123
:ufo_funny_object
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel124
Return 2 0//endexecute
:dummylabel124
GetStatic1 26//saved hash and entity for model loading
GetStatic1 100//veh
Push_-1
PushF_0
PushF_0
PushF_3
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem3
//prologue plane
push GetHash("titan")
Push_2//prologue_plane_funny_vehicle
call @spawn_vehicle_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel125
Return 2 0//endexecute
:dummylabel125
:prologue_plane_funny_vehicle
CallNative player_ped_id 0 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
Push_0
cmpeq
jumpfalse @dummylabel126
Return 2 0//endexecute
:dummylabel126
GetStatic1 26
Push_0
CallNative set_entity_visible 2 0
push GetHash("prop_med_jet_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF -50.0
fsub//z
PushB 14//prologue_plane_funny_object
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel127
Return 2 0//endexecute
:dummylabel127
:prologue_plane_funny_object
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel128
Return 2 0//endexecute
:dummylabel128
GetStatic1 26//saved hash and entity for model loading
GetStatic1 100//veh
Push_-1
PushF_0
PushF -8.0
PushF 0.3
PushF -1.1
PushF_0
PushF 180.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem4
//cablecar
push GetHash("sandking")
Push_3//cablecar_funny_vehicle
call @spawn_vehicle_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel129
Return 2 0//endexecute
:dummylabel129
:cablecar_funny_vehicle
CallNative player_ped_id 0 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
Push_0
cmpeq
jumpfalse @dummylabel130
Return 2 0//endexecute
:dummylabel130
GetStatic1 26//saved hash and entity for model loading
Push_0
CallNative set_entity_visible 2 0
push GetHash("p_cablecar_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF -50.0
fsub//z
PushB 15//cablecar_funny_object
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel131
Return 2 0//endexecute
:dummylabel131
:cablecar_funny_object
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel132
Return 2 0//endexecute
:dummylabel132
GetStatic1 26//saved hash and entity for model loading
GetStatic1 100
Push_-1
PushF_0
PushF -0.2
PushF 5.8
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem5
push GetHash("bus")
Push_4//tram_funny_vehicle
call @spawn_vehicle_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel133
Return 2 0//endexecute
:dummylabel133
:tram_funny_vehicle
CallNative player_ped_id 0 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
Push_0
cmpeq
jumpfalse @dummylabel134
Return 2 0//endexecute
:dummylabel134
push GetHash("p_tram_crash_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF -50.0
fsub//z
PushB 16//tram_funny_object
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel135
Return 2 0//endexecute
:dummylabel135
:tram_funny_object
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel136
Return 2 0//endexecute
:dummylabel136
GetStatic1 26//saved hash and entity for model loading
GetStatic1 100
Push_-1
PushF_0
PushF_0
PushF -0.1
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Return 2 0//endexecute
:exe_menu_level_3_last_sel2_atzero_last_sel1_atone_sel6_attwoitem6
call @get_menu_number
Push_2
jumpeq @landtugboat
push GetHash("jetmax")
Push_5//seatug_funny_vehicle
call @spawn_vehicle_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel137
Return 2 0//endexecute
:dummylabel137
:seatug_funny_vehicle
CallNative player_ped_id 0 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
Push_0
cmpeq
jumpfalse @dummylabel138
Return 2 0//endexecute
:dummylabel138
push GetHash("hei_prop_heist_tug")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF -50.0
fsub//z
PushB 17//seatug_funny_object
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel139
Return 2 0//endexecute
:dummylabel139
:seatug_funny_object
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel140
Return 2 0//endexecute
:dummylabel140
GetStatic1 26//saved hash and entity for model loading
GetStatic1 100
Push_-1
PushF_0
PushF_0
PushF 4.5
PushF_0
PushF_0
PushF 180
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Return 2 0//endexecute
:landtugboat
push GetHash("pounder")
Push_6//landtug_funny_vehicle
call @spawn_vehicle_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel141
Return 2 0//endexecute
:dummylabel141
:landtug_funny_vehicle
push GetHash("hei_prop_heist_tug")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF -50.0
fsub//z
PushB 18//landtug_funny_object
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Push_0
cmpeq
jumpfalse @dummylabel142
Return 2 0//endexecute
:dummylabel142
:landtug_funny_object
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel143
Return 2 0//endexecute
:dummylabel143
GetStatic1 26//saved hash and entity for model loading
GetStatic1 100
Push_-1
PushF_0
PushF -4
PushF_4
PushF_0
PushF_0
PushF 180
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Return 2 0//endexecute
//<
//> exedrawtext
:exedrawtext
GetStatic1 5//cursor index
Switch [1 @exedrawtext1]:[2 @exedrawtext2]:[3 @exedrawtext3]:[4 @exedrawtext4]:[5 @exedrawtext5]:[6 @exedrawtext6]:[7 @exedrawtext7]:[8 @exedrawtext8]:[9 @exedrawtext9]:[10 @exedrawtext10]:[11 @exedrawtext11]:[12 @exedrawtext12]:[13 @exedrawtext13]:[14 @exedrawtext14]:[15 @exedrawtext15]:[16 @exedrawtext16]
Return 2 0//endexecute
:exedrawtext1
GetStaticP1 24
PushB 8//draw text bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exedrawtext2
call @set_menu_number_to_precision_level
Return 2 0//endexecute
:exedrawtext3
PushB 31
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 32
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel144
Return 2 0//endexecute
:dummylabel144
GetStaticP2 262
pushstring "TMP_TEXT_NAME000000000000000000"//sets var to string
strcopy 32
pushstring "Text set."
call @print_notification(string text)
Return 2 0//endexecute
:exedrawtext4
//x
call @get_menu_number
SetStatic1 198//draw text x coord
Return 2 0//endexecute
:exedrawtext5
//y
call @get_menu_number
SetStatic1 199//draw text y coord
Return 2 0//endexecute
:exedrawtext6
//h
call @get_menu_number
SetStatic1 200//draw text height
Return 2 0//endexecute
:exedrawtext7
//font
call @get_menu_number
SetStatic1 201//draw text font
Return 2 0//endexecute
:exedrawtext8
//r
GetStaticP1 202//draw text rgba
Push_0
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawtext9
//g
GetStaticP1 202//draw text rgba
Push_1
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawtext10
//b
GetStaticP1 202//draw text rgba
Push_2
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawtext11
//a
GetStaticP1 202//draw text rgba
Push_3
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawtext12
GetStaticP1 24
PushB 9//draw drop shadow_2
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exedrawtext13
GetStaticP1 24
PushB 10//draw outline
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exedrawtext14
GetStaticP1 24
PushB 11//draw center
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exedrawtext15
GetStaticP1 24
PushB 12//draw right justify
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exedrawtext16
//Reset Text
PushF 0.1// = draw text x coord
PushF 0.1// = draw text y coord
PushF_1// = draw text height
Push GetEnum("Chalet-LondonNineteenSixty")//font
Push_-1//draw tool r,g,b,a
PushB 5
GetStaticP1 198
fromStack
GetStaticP1 24
PushB 9// draw drop shadow_2
CallNative clear_bit 2 0
GetStaticP1 24
PushB 10// draw outline
CallNative clear_bit 2 0
GetStaticP1 24
PushB 11// draw center
CallNative clear_bit 2 0
GetStaticP1 24
PushB 12// draw right justify
CallNative clear_bit 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> exedrawbox
:exedrawbox
GetStatic1 5//cursor index
Switch [1 @exedrawbox1]:[2 @exedrawbox2]:[3 @exedrawbox3]:[4 @exedrawbox4]:[5 @exedrawbox5]:[6 @exedrawbox6]:[7 @exedrawbox7]:[8 @exedrawbox8]:[9 @exedrawbox9]:[10 @exedrawbox10]:[11 @exedrawbox11]
Return 2 0//endexecute
:exedrawbox1
GetStaticP1 24
PushB 13//draw box bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exedrawbox2
call @set_menu_number_to_precision_level
Return 2 0//endexecute
:exedrawbox3
//x
call @get_menu_number
SetStatic1 213//draw text x coord
Return 2 0//endexecute
:exedrawbox4
//y
call @get_menu_number
SetStatic1 214//draw text y coord
Return 2 0//endexecute
:exedrawbox5
//w
call @get_menu_number
SetStatic1 215//draw text width
Return 2 0//endexecute
:exedrawbox6
//h
call @get_menu_number
SetStatic1 216//draw text height
Return 2 0//endexecute
:exedrawbox7
//r
GetStaticP1 217//draw box rgba
Push_0
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawbox8
//b
GetStaticP1 217//draw box rgba
Push_1
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawbox9
//g
GetStaticP1 217//draw box rgba
Push_2
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawbox10
//a
GetStaticP1 217//draw box rgba
Push_3
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exedrawbox11
PushF 0.500
PushF 0.500
PushF 0.200
PushF 0.300
push 0x000000FF
PushB 5
GetStaticP1 213//draw tool draw box x,y,w,h,r,g,b,a
fromStack
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> exedrawsprite
:exedrawsprite
GetStatic1 5//cursor index
Switch [1 @exespritebox1]:[2 @exespritebox2]:[3 @exespritebox3]:[4 @exespritebox4]:[5 @exespritebox5]:[6 @exespritebox6]:[7 @exespritebox7]:[8 @exespritebox8]:[9 @exespritebox9]:[10 @exespritebox10]:[11 @exespritebox11]:[12 @exespritebox12]:[13 @exespritebox13]:[14 @exespritebox14]:[15 @exespritebox15]
Return 2 0//endexecute
:exespritebox1
GetStaticP1 24
PushB 14//draw sprite bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exespritebox2
call @set_menu_number_to_precision_level
Return 2 0//endexecute
:exespritebox3
PushB 31
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 32
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel145
Return 2 0//endexecute
:dummylabel145
pushstring "TMP_SRRITE_DICT0000000000000000"
CallNative is_string_null_or_empty 1 1
not
jumpfalse @continuedrawspritebox
pushstring "TMP_SRRITE_DICT0000000000000000"
CallNative has_streamed_texture_dict_loaded 1 1
JumpFalse @continuedrawspritebox
pushstring "TMP_SRRITE_DICT0000000000000000"
pushstring "commonmenu"
CallNative are_strings_equal 2 1
pushstring "TMP_SRRITE_DICT0000000000000000"
pushstring "mpleaderboard"
CallNative are_strings_equal 2 1
or
not
jumpfalse @continuedrawspritebox
pushstring "TMP_SRRITE_DICT0000000000000000"
callnative set_streamed_texture_dict_as_no_longer_needed 1 0
:continuedrawspritebox
GetStaticP2 262
pushstring "TMP_SRRITE_DICT0000000000000000"//draw tool sprite dict array
strcopy 32
pushstring "Sprite dictionary set."
call @print_notification(string text)
Return 2 0//endexecute
:exespritebox4
PushB 31
call @string get_input_from_onscreen_keyboard(int maxcharcount)
GetStaticP2 262//sets var to string
strcopy 32
GetStaticP2 262
CallNative is_string_null_or_empty 1 1
not
Push_0
cmpeq
jumpfalse @dummylabel146
Return 2 0//endexecute
:dummylabel146
GetStaticP2 262
pushstring "TMP_SRRITE_NAME0000000000000000"//draw tool sprite name array
strcopy 32
pushstring "Sprite name set."
call @print_notification(string text)
Return 2 0//endexecute
:exespritebox5
call @get_menu_number
SetStatic1 218//draw sprite x coord
Return 2 0//endexecute
:exespritebox6
call @get_menu_number
SetStatic1 219//draw sprite y coord
Return 2 0//endexecute
:exespritebox7
call @get_menu_number
SetStatic1 220//draw sprite width
Return 2 0//endexecute
:exespritebox8
call @get_menu_number
SetStatic1 221//draw sprite height
Return 2 0//endexecute
:exespritebox9
call @get_menu_number
SetStatic1 222//draw sprite rot
Return 2 0//endexecute
:exespritebox10
GetStaticP1 223//draw sprite rgba
Push_0
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exespritebox11
GetStaticP1 223//draw sprite rgba
Push_1
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exespritebox12
GetStaticP1 223//draw sprite rgba
Push_2
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exespritebox13
GetStaticP1 223//draw sprite rgba
Push_3
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Return 2 0//endexecute
:exespritebox14
pushstring "TMP_SRRITE_DICT0000000000000000"//draw tool sprite dict array
pushstring "TMP_SRRITE_NAME0000000000000000"//draw tool sprite name array
call @getsizefromtexture(txddict,txdname)
SetStatic1 221//draw sprite height
SetStatic1 220//draw sprite width
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exespritebox15
PushF 0.500
PushF 0.500
pushstring "TMP_SRRITE_DICT0000000000000000"//draw tool sprite dict array
pushstring "TMP_SRRITE_NAME0000000000000000"//draw tool sprite name array
call @getsizefromtexture(txddict,txdname)
PushF_0
Push_-1
Push_6
GetStaticP1 218//draw tool draw sprite x,y,w,h,rot,rgba
fromStack
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//<
//> menu execution level4
//> menu execution level4 handling
:exemenulevel4
GetStatic1 4//last selected of item level zero
Switch [1 @exenextinmenulevel4_for_playeroptions]:[2 @exenextinmenulevel4_for_vehicleoptions]:[7 @exenextinmenulevel4_for_miscoptions]
Return 2 0//endexecute
//> level 4 player options handling
:exenextinmenulevel4_for_playeroptions
GetStatic1 2//last selected of item level one
Switch [1 @exeonlineplayers3_for4]:[3 @exemodelchanger3_for4]:[7 @exebodyguards3_for4]
Return 2 0//endexecute
:exeonlineplayers3_for4
GetStatic1 12//last selected of item level two
Switch [1 @exenextinmenulevel4_for4]//if player was pressed
Return 2 0//endexecute
:exenextinmenulevel4_for4
GetStatic1 34//last selected of item level three
Push_0
GetFrame1 0
Push_0
call @online_player_options(submenu,islooped,is_exe_on_dpad,onlinejumptype)
Return 2 0//endexecute
//> modelchanger
:exemodelchanger3_for4
GetStatic1 1//last selected of item level two
Switch [1 @execomponentchanger4_for4]:[3 @exe_lvl4_modelchanger_favorites]:[4 @exe_lvl4_modelchanger_ambent]:[10 @exe_lvl4_modelchanger_mp]
:reuseexemodellistlvl2
GetStatic1 1//last selected of item level two
switch [7 @exe_lvl4_modelchanger_gang]:[12 @exe_lvl4_modelchanger_special]:[13 @exe_lvl4_modelchanger_unique]
Return 2 0//endexecute
:execomponentchanger4_for4
GetStatic1 12//temp last sel item
Switch [1 @exe_propandtexture]:[2 @exe_componentandtexture]
Return 2 0//endexecute
:exe_lvl4_modelchanger_favorites
GetStatic1 34//last selected of item level three
Switch [1 @exeanimals]
Return 2 0//endexecute
:exe_lvl4_modelchanger_ambent
GetStatic1 34//last selected of item level three
Switch [1 @exe_dir2_in_modelchanger]:[2 @exe_dirs2_to_3_in_modelchanger]:[3 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
:exe_lvl4_modelchanger_gang
GetStatic1 34//last selected of item level three
Switch [1 @exe_dirs2_to_3_in_modelchanger]:[2 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
:exe_lvl4_modelchanger_mp
GetStatic1 34//last selected of item level three
Switch [1 @exe_dirs2_to_3_in_modelchanger]:[2 @exe_dir2_in_modelchanger]:[3 @exe_dir2_in_modelchanger]:[4 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
:exe_lvl4_modelchanger_special
GetStatic1 34//last selected of item level three
Switch [1 @exe_dirs2_to_3_in_modelchanger]:[2 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
:exe_lvl4_modelchanger_unique
GetStatic1 34//last selected of item level three
Switch [1 @exe_dirs2_to_3_in_modelchanger]:[2 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
//<
:exebodyguards3_for4
GetStatic1 1//last selected of item level two
Switch [1 @exe_lvl4_bodyguards_options]:[3 @exe_lvl4_bodyguards_favorites]:[4 @exe_lvl4_bodyguards_ambent]:[10 @exe_lvl4_bodyguards_mp]
jump @reuseexemodellistlvl2
:exe_lvl4_bodyguards_options
GetStatic1 34//last selected of item level three
Switch [7 @bguard_giveweapon]:[8 @bguard_giveweapon]:[9 @bguard_giveweapon]
Return 2 0//endexecute
:exe_lvl4_bodyguards_favorites
GetStatic1 34//last selected of item level three
Switch [1 @exeanimals_bguards]
Return 2 0//endexecute
:exe_lvl4_bodyguards_ambent
GetStatic1 34//last selected of item level three
Switch [1 @exe_dir2_creatures_in_bodyguards]:[2 @exe_dirs2_to_3_in_modelchanger]:[3 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
:exe_lvl4_bodyguards_mp
GetStatic1 34//last selected of item level three
Switch [1 @exe_dirs2_to_3_in_modelchanger]:[2 @exe_dir2_in_bodyguards]:[3 @exe_dir2_in_bodyguards]:[4 @exe_dirs2_to_3_in_modelchanger]
Return 2 0//endexecute
//<
//> level 4 vehicle options handling
:exenextinmenulevel4_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @exelevel4_garage]
Return 2 0//endexecute
:exelevel4_garage
GetStatic1 1//last selected of item level two
Switch [1 @spawnvehiclelvl4]:[2 @exelevel4_paint]:[5 @exe_vehicle_classes_handling_data]:[6 @exe_veh_weap_data_level4]:[7 @exe_vehicles_vehicle_type]:[10 @exelevel4_funnyvehs]
Return 2 0//endexecute
:exelevel4_paint
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
Push_0
cmpeq
jumpfalse @dummylabel152
Return 2 0//endexecute
:dummylabel152
GetStatic1 34//last selected of item level three
Switch [1 @exe_custom_Primary_paint]:[2 @exe_custom_Secondary_paint]:[3 @exe_custom_tiresmoke]:[8 @exe_set_tyre_smoke_color]:[9 @exe_window_tint]
Return 2 0//endexecute
:exelevel4_funnyvehs
GetStatic1 34//last selected of item level three
Switch [1 @exe_funnyvehs_animals]
Return 2 0//endexecute
//<
//> level 4 misc options handling
:exenextinmenulevel4_for_miscoptions
GetStatic1 2//last selected of item level one
Switch [5 @exe_mobileradio_sel_level4]
Return 2 0//endexecute
:exe_mobileradio_sel_level4
GetStatic1 1//last selected of item level two
Switch [3 @exe_songselector_sel_level4]
Return 2 0//endexecute
:exe_songselector_sel_level4
GetStatic1 34//last selected of item level three
Switch [2 @exe_Los_Santos_Rock_Radio]:[3 @exe_Non-Stop-Pop_FM]:[4 @exe_Radio_Los_Santos]:[5 @exe_Channel_X]:[6 @exe_West_Coast_Talk_Radio]:[7 @exe_Rebel_Radio]:[8 @exe_Soulwax_FM]:[9 @exe_East_Los_FM]:[10 @exe_West_Coast_Classics]:[11 @exe_Blue_Ark]:[12 @exe_Worldwide_FM]:[13 @exe_FlyLo_FM]:[14 @exe_The_Lowdown_91.1]:[15 @exe_The_Lab]:[16 @exe_Radio_Mirror_Park]:[17 @exe_Space_103.2]:[18 @exe_Vinewood_Boulevard_Radio]:[19 @exe_Blaine_County_Radio]
Return 2 0//endexecute
//<
//<
//> componentandtexture
:exe_propandtexture
GetStatic1 5//cursor index
Switch [1 @exe_changeprop]:[2 @exe_changeproptexture]
Return 2 0//endexecute
:exe_changeprop
CallNative player_ped_id 0 1
GetStatic1 94//prop
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//Model Variation
jumpfalse @clearprop
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//Model Variation
Push_1
sub
Push_0//texture
Push_0//net bool?
CallNative set_ped_prop_index 5 0
Push_1
Call @updatemenutext(istoggle)
jump @settexturetozero
:clearprop
CallNative clear_ped_prop 2 0
:settexturetozero
Push_0
Push_2
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Return 2 0//endexecute
:exe_changeproptexture
CallNative player_ped_id 0 1
GetStatic1 94//prop
Push_1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//model Variation
Push_1
sub
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//texture Variation
Push_0//net bool?
CallNative set_ped_prop_index 5 0
Return 2 0//endexecute
:exe_componentandtexture
GetStatic1 5//cursor index
Switch [1 @exe_changecomponent]:[2 @exe_changetexture]
Return 2 0//endexecute
:exe_changecomponent
CallNative player_ped_id 0 1
GetStatic1 94//component
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//Model Variation
Push_0//Texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:exe_changetexture
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative player_ped_id 0 1
GetStatic1 94//component
CallNative get_ped_drawable_variation 2 1//model Variation
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//texture Variation
Push_0//palette variation
CallNative set_ped_component_variation 5 0
Return 2 0//endexecute
//<
//> give weapon
:bguard_giveweapon
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel153
Return 2 0//endexecute
:dummylabel153
call @get_menu_number
CallNative is_weapon_valid 1 1
Push_0
cmpeq
jumpfalse @dummylabel154
Return 2 0//endexecute
:dummylabel154
GetStatic1 63//saved bodyguard ped
call @get_menu_number
Push_1
Push_1
Push_1
callnative give_weapon_to_ped 5 0
GetStatic1 63//saved bodyguard ped
Push_1
call @get_menu_number
CallNative set_ped_infinite_ammo 3 0
Return 2 0//endexecute
//<
//> animals
:exeanimals
call @exe_animals_favorites
dup
jumpfalse @favoriteanimalerrormodelchanger
push 58//model_change_favorites_animals
call @Change_Player_Model_no_wait(int model,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel155
Return 2 0//endexecute
:dummylabel155
:model_change_favorites_animals
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_MtLion")
jumpne @notmtlionmeleeload
pushstring "creatures@cougar@melee@streamed_core@"//anim = "attack";
Push_0//none
call @load_animdict_no_wait(string dict,jumptype)
drop
Return 2 0//endexecute
:notmtlionmeleeload
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_Coyote")
cmpeq
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_Chop")
cmpeq
or
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_Husky")
cmpeq
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_Retriever")
cmpeq
or
or
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_Rottweiler")
cmpeq
GetStatic1 26//saved hash and entity for model loading
push GetHash("A_C_shepherd")
cmpeq
or
or
jumpfalse @notdogmeleeload
pushstring "creatures@rottweiler@melee@streamed_core@"//anim = "attack";
Push_0//none
call @load_animdict_no_wait(string dict,jumptype)
drop
:notdogmeleeload
Return 2 0//endexecute
:favoriteanimalerrormodelchanger
drop
Return 2 0//endexecute
//<
//> exe_dirs2_to_3_in_modelchanger
:exe_dirs2_to_3_in_modelchanger
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel156
Return 2 0//endexecute
:dummylabel156
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
gethash
SetStatic1 68//saved modelchanger dir3
call @advance_menu_level
Return 2 0//endexecute
//<
//> exe_dir2_in_modelchanger
:exe_dir2_in_modelchanger
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel157
Return 2 0//endexecute
:dummylabel157
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
GetStatic1 67//saved modelchanger dir2
Push_0
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
Push_0//none
call @Change_Player_Model_no_wait(int model,jumptype)
drop
Return 2 0//endexecute
//<
//> exe_dir2_in_bodyguards
:exe_dir2_in_bodyguards
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel158
Return 2 0//endexecute
:dummylabel158
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
GetStatic1 67//saved modelchanger dir2
Push_0
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
call @get_random_primary
call @get_random_secondary
Push_0//none
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
//<
//> exe_dir2_creatures_in_bodyguards
:exe_dir2_creatures_in_bodyguards
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel159
Return 2 0//endexecute
:dummylabel159
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
GetStatic1 67//saved modelchanger dir2
Push_0
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
Push_0
Push_0
Push_0//none
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
//<
//> exeanimals_bguards
:exeanimals_bguards
call @exe_animals_favorites
dup
jumpfalse @favoriteanimalerrormodelchanger
Push_0
Push_0
Push_0//none
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
//<
//> spawn vehicle
:spawnvehiclelvl4
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
GetArray1 1//veh hash
Push_0//none
call @spawn_vehicle_no_wait(hash,jumptype)
drop
Return 2 0//endexecute
//<
//> custom colors
:exe_custom_Primary_paint
GetStatic1 5//cursor index
Switch [1 @exe_clear_custom_Primary]:[2 @exe_custom_primary_pallet]:[3 @exe_custom_primary_execute]:[4 @exe_custom_primary_execute]:[5 @exe_custom_primary_execute]
Return 2 0//endexecute
:exe_clear_custom_Primary
GetStatic1 100
CallNative clear_vehicle_custom_primary_colour 1 0
pushstring "Custom Primary Color Cleared."
call @print_notification(string text)
Return 2 0//endexecute
:exe_custom_primary_pallet
:reloop_exe_custom_primary_pallet
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_custom_primary_colour 4 0
push 0xFF000000
SetStatic1 104
GetStaticP1 104
Push_1
GetStatic1 101
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 104
Push_2
GetStatic1 102
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 104
Push_3
GetStatic1 103
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Custom Primary Color"
GetStatic1 104
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 105
push -2
jumpne @concustompc
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:concustompc
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 105
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 105
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 105
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
CallNative set_vehicle_custom_primary_colour 4 0
Jump @reloop_exe_custom_primary_pallet
:exe_custom_primary_execute
GetStatic1 100
Push_3
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_4
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_5
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
CallNative set_vehicle_custom_primary_colour 4 0
Return 2 0//endexecute
:exe_custom_Secondary_paint
GetStatic1 5//cursor index
Switch [1 @exe_clear_custom_Secondary]:[2 @exe_custom_Secondary_pallet]:[3 @exe_custom_secondary_execute]:[4 @exe_custom_secondary_execute]:[5 @exe_custom_secondary_execute]
Return 2 0//endexecute
:exe_clear_custom_Secondary
GetStatic1 100
CallNative clear_vehicle_custom_secondary_colour 1 0
pushstring "Custom Secondary Color Cleared."
call @print_notification(string text)
Return 2 0//endexecute
:exe_custom_Secondary_pallet
:reloop_exe_custom_Secondary_pallet
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_custom_Secondary_colour 4 0
push 0xFF000000
SetStatic1 104
GetStaticP1 104
Push_1
GetStatic1 101
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 104
Push_2
GetStatic1 102
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 104
Push_3
GetStatic1 103
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Custom Secondary Color"
GetStatic1 104
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 105
push -2
jumpne @concustomsc
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:concustomsc
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 105
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 105
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 105
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
CallNative set_vehicle_custom_secondary_colour 4 0
Jump @reloop_exe_custom_Secondary_pallet
:exe_custom_secondary_execute
GetStatic1 100
Push_3
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_4
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_5
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
CallNative set_vehicle_custom_secondary_colour 4 0
Return 2 0//endexecute
:exe_custom_tiresmoke
GetStatic1 5//cursor index
Switch [1 @exe_custom_tiresmoke_pallet]:[2 @exe_custom_tiresmoke_execute]:[3 @exe_custom_tiresmoke_execute]:[4 @exe_custom_tiresmoke_execute]
Return 2 0//endexecute
:exe_custom_tiresmoke_pallet
GetStatic1 100
PushB 20//tyre smoke
CallNative is_toggle_mod_on 2 1
not
jumpfalse @reloop_Set_Vehicle_Tyre_Smoke_Color
GetStatic1 100
PushB 20//tyre smoke
Push_1
CallNative toggle_vehicle_mod 3 0
:reloop_Set_Vehicle_Tyre_Smoke_Color
GetStatic1 100
GetStaticP1 101
GetStaticP1 102
GetStaticP1 103
CallNative get_vehicle_tyre_smoke_color 4 0
push 0xFF000000
SetStatic1 104
GetStaticP1 104
Push_1
GetStatic1 101
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 104
Push_2
GetStatic1 102
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStaticP1 104
Push_3
GetStatic1 103
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
pushstring "Custom Tyre Smoke Color"
GetStatic1 104
Push_1
Push_1
call @draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
dup
SetStatic1 105
push -2
jumpne @concustomtsc
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:concustomtsc
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehpaint
GetStatic1 100
GetStaticP1 105
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 105
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 105
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
CallNative set_vehicle_tyre_smoke_color 4 0
Jump @reloop_Set_Vehicle_Tyre_Smoke_Color
:exe_custom_tiresmoke_execute
GetStatic1 100
Push_2
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_3
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_4
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
CallNative set_vehicle_tyre_smoke_color 4 0
Return 2 0//endexecute
//<
//> set tyre smoke color
:exe_set_tyre_smoke_color
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehtsc
GetStatic1 5//cursor index
Switch [1 @exe_set_tyre_smoke_color1]:[2 @exe_set_tyre_smoke_color2]:[3 @exe_set_tyre_smoke_color3]:[4 @exe_set_tyre_smoke_color4]:[5 @exe_set_tyre_smoke_color5]:[6 @exe_set_tyre_smoke_color6]:[7 @exe_set_tyre_smoke_color7]:[8 @exe_set_tyre_smoke_color8]:[9 @exe_set_tyre_smoke_color9]:[10 @exe_set_tyre_smoke_color10]:[11 @exe_set_tyre_smoke_color11]
Return 2 0//endexecute
:notinvehtsc
pushstring "~r~Error:~s~ You're not in a vehicle."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
:exe_set_tyre_smoke_color1
GetStatic1 100
PushB3 255 255 255
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color2
GetStatic1 100
PushB3 20 20 20
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color3
GetStatic1 100
PushB3 0 174 239
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color4
GetStatic1 100
PushB3 252 238 0
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color5
GetStatic1 100
PushB3 100 79 142
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color6
GetStatic1 100
PushB3 255 127 0
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color7
GetStatic1 100
PushB3 102 152 104
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color8
GetStatic1 100
PushB3 226 6 6
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color9
GetStatic1 100
PushB3 203 54 148
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color10
GetStatic1 100
PushB3 180 130 97
jump @exesettyresmokeccolor
:exe_set_tyre_smoke_color11
GetStatic1 100
Push_0
Push_0
Push_0
jump @exesettyresmokeccolor
:exesettyresmokeccolor
CallNative set_vehicle_tyre_smoke_color 4 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> window tint
:exe_window_tint
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehtint
GetStatic1 5//cursor index
Switch [1 @exewindowtint_none]:[2 @exewindowtint_lsmoke]:[3 @exewindowtint_dsmoke]:[4 @exewindowtint_limo]:[5 @exewindowtint_pureblack]:[6 @exewindowtint_green]
Return 2 0//endexecute
:notinvehtint
pushstring "~r~Error:~s~ You're not in a vehicle."
pushs 5000
call @print(string text,int ms)
Return 2 0//endexecute
//0 - none
//1 - limo
//2 - dark smoke
//3 - light smoke
//4 - none 2
//5 - pure black
//6 - green
:exewindowtint_none
GetStatic1 100
Push_0
Jump @exewindowtint
:exewindowtint_lsmoke
GetStatic1 100
Push_3
Jump @exewindowtint
:exewindowtint_dsmoke
GetStatic1 100
Push_2
Jump @exewindowtint
:exewindowtint_limo
GetStatic1 100
Push_1
Jump @exewindowtint
:exewindowtint_pureblack
GetStatic1 100
Push_5
Jump @exewindowtint
:exewindowtint_green
GetStatic1 100
Push_6
Jump @exewindowtint
:exewindowtint
CallNative set_vehicle_window_tint 2 0
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
//<
//> vehicle classes for handling data
:exe_vehicle_classes_handling_data
//vehicle classes
call @advance_menu_level
Return 2 0//endexecute
//<
//> vehicle weapon data sel
:exe_veh_weap_data_level4
call @get_menu_number
Push_0
cmpeq
jumpfalse @weapdatavalidcontinue
Return 2 0//endexecute
:weapdatavalidcontinue
call @cursorindex_to_vehicle_weapon//weapon
GetStatic2 380//header
gethash
call @get_vehicle_weapon_pointer_from_model_hash(hash)
call @get_menu_number
Push_1
sub
mult1 4
add
pset
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 101
jumpfalse @updateexehandlingdataseltext
GetStatic2 380//header
gethash
GetStatic1 101
CallNative get_entity_model 1 1
jumpne @updateexehandlingdataseltext
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
GetStatic1 101
call @FindFreeCarSeat
dup
SetStatic1 102
push -2
cmpeq
jumpfalse @resetpedvehicleweapon
jump @updateexehandlingdataseltext
:resetpedvehicleweapon
CallNative player_ped_id 0 1
GetStatic1 101
GetStatic1 102
CallNative set_ped_into_vehicle 3 0
:updateexehandlingdataseltext
Push_1
call @updatemenutext(istoggle)
pushstring "Vehicle weapon set."
call @print_notification(string text)
Return 2 0//endexecute
//<
//> vehicles for vehicle type
:exe_vehicles_vehicle_type
//vehicles
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
GetArray1 1//veh hash
dup
SetStatic1 65//saved handling data hash
Push_0
cmpeq
jumpfalse @vehicle_type_hash_ok
Return 2 0//endexecute
:vehicle_type_hash_ok
GetStatic1 65//saved handling data hash
callnative is_this_model_a_train 1 1
GetStatic1 65//saved handling data hash
callnative is_this_model_a_boat 1 1
or
not
pushstring "~r~Error:~s~ You cannot change a vehicle of this type."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @vehicle_type_vehicle_ok
Return 2 0//endexecute
:vehicle_type_vehicle_ok
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
dup
SetStatic2 380//header
CallNative does_text_label_exist 1 1
jumpfalse @skip_gxttext_vtype
GetStaticp1 24
Pushb 17//gxt header bool
callnative set_bit 2 0
:skip_gxttext_vtype
call @advance_menu_level
Return 2 0//endexecute
//<
//> funnyvehs_animals
:exe_funnyvehs_animals
GetStatic1 5//cursor index
Switch [1 @funnyvehs_animals_item1]:[2 @funnyvehs_animals_item2]:[3 @funnyvehs_animals_item3]:[4 @funnyvehs_animals_item4]:[5 @funnyvehs_animals_item5]:[6 @funnyvehs_animals_item6]:[7 @funnyvehs_animals_item7]:[8 @funnyvehs_animals_item8]
Return 2 0//endexecute
:funnyvehs_animals_item1
GetStaticP1 21
Push_5//animal control bool
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
Push_0
cmpeq
jumpfalse @dummylabel160
Return 2 0//endexecute
:dummylabel160
:funnyvehs_animals_item2
push GetHash("A_C_Deer")
PushB 47
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel161
Return 2 0//endexecute
:dummylabel161
:funnyvehs_animals_A_C_Deer
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel162
Return 2 0//endexecute
:dummylabel162
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:funnyvehs_animals_item3
push GetHash("A_C_boar")
PushB 48
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel163
Return 2 0//endexecute
:dummylabel163
:funnyvehs_animals_A_C_boar
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel164
Return 2 0//endexecute
:dummylabel164
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:funnyvehs_animals_item4
push GetHash("A_C_Cormorant")
PushB 49
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel165
Return 2 0//endexecute
:dummylabel165
:funnyvehs_animals_A_C_Cormorant
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel166
Return 2 0//endexecute
:dummylabel166
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:funnyvehs_animals_item5
push GetHash("A_C_cow")
PushB 50
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel167
Return 2 0//endexecute
:dummylabel167
:funnyvehs_animals_A_C_cow
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel168
Return 2 0//endexecute
:dummylabel168
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:funnyvehs_animals_item6
push GetHash("A_C_mtlion")
PushB 51
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel169
Return 2 0//endexecute
:dummylabel169
:funnyvehs_animals_A_C_mtlion
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel170
Return 2 0//endexecute
:dummylabel170
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:funnyvehs_animals_item7
push GetHash("A_C_pig")
PushB 52
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel171
Return 2 0//endexecute
:dummylabel171
:funnyvehs_animals_A_C_pig
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel172
Return 2 0//endexecute
:dummylabel172
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:funnyvehs_animals_item8
push GetHash("A_C_SharkTiger")
PushB 53
call @spawn_ped_no_wait(hash,jumptype)
Push_0
cmpeq
jumpfalse @dummylabel173
Return 2 0//endexecute
:dummylabel173
:funnyvehs_animals_A_C_SharkTiger
GetStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
Push_0
cmpeq
jumpfalse @dummylabel174
Return 2 0//endexecute
:dummylabel174
GetStatic1 26//saved hash and entity for model loading
SetStatic1 77
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
CallNative player_ped_id 0 1
GetStatic1 77
GetStatic1 77
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.3
PushF_0
PushF 0.3
PushF_0
PushF_0
PushF 90.0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @rideanim_invin
:rideanim_invin
GetStatic1 77
Push_0
CallNative set_ped_can_ragdoll 2 0
GetStatic1 77
Push_1
CallNative set_entity_invincible 2 0
pushstring "rcmjosh2"
pushstring "josh_sitting_loop"
CallNative player_ped_id 0 1
PushB 9
Push_0//none
Push_0
call @PlayAnimation_no_wait(AnimDir,AnimName,pedid,animflag,jumptype,isonline)
drop
Return 2 0//endexecute
//<
//> radio stations
:exe_Los_Santos_Rock_Radio
pushstring "RADIO_01_CLASS_ROCK_"
jump @exe_radio
:exe_Non-Stop-Pop_FM
pushstring "RADIO_02_POP_"
jump @exe_radio
:exe_Radio_Los_Santos
pushstring "RADIO_03_HIPHOP_NEW_"
jump @exe_radio
:exe_Channel_X
pushstring "RADIO_04_PUNK_"
jump @exe_radio
:exe_West_Coast_Talk_Radio
pushstring "RADIO_05_TALK_01_"
jump @exe_radio
:exe_Rebel_Radio
pushstring "RADIO_06_COUNTRY_"
jump @exe_radio
:exe_Soulwax_FM
pushstring "RADIO_07_DANCE_01_"
GetStatic1 5//cursor index
push_1
jumpeq @exe_radio
jump @RadioIndexSelection1
:exe_East_Los_FM
pushstring "RADIO_08_MEXICAN_"
GetStatic1 5//cursor index
push_1
jumpeq @exe_radio
jump @RadioIndexSelection1
:exe_West_Coast_Classics
pushstring "RADIO_09_HIPHOP_OLD_"
jump @exe_radio
:exe_Blue_Ark
pushstring "RADIO_12_REGGAE_"
jump @exe_radio
:exe_Worldwide_FM
pushstring "RADIO_13_JAZZ_"
GetStatic1 5//cursor index
push_1
cmpeq
GetStatic1 5//cursor index
push_2
cmpeq
or
not
jumpfalse @exe_radio
GetStatic1 5//cursor index
push_2
cmpgt
GetStatic1 5//cursor index
pushb 14
cmple
and
not
jumpfalse @RadioIndexSelection1
GetStatic1 5//cursor index
pushb 14
cmpgt
GetStatic1 5//cursor index
pushb 21
cmple
and
not
jumpfalse @RadioIndexSelection2
drop
Return 2 0//endexecute
:exe_FlyLo_FM
pushstring "RADIO_14_DANCE_02_"
GetStatic1 5//cursor index
push_1
jumpeq @exe_radio
GetStatic1 5//cursor index
push_1
cmpgt
GetStatic1 5//cursor index
pushb 22
cmple
and
not
jumpfalse @RadioIndexSelection1
drop
Return 2 0//endexecute
:exe_The_Lowdown_91.1
pushstring "RADIO_15_MOTOWN_"
jump @exe_radio
:exe_The_Lab
pushstring "DLC_THELAB_"
GetStatic1 5//cursor index
push_1
cmpeq
GetStatic1 5//cursor index
push_2
cmpeq
or
not
jumpfalse @exe_radio
GetStatic1 5//cursor index
push_2
cmpgt
GetStatic1 5//cursor index
pushb 10
cmple
and
not
jumpfalse @RadioIndexSelection1
GetStatic1 5//cursor index
pushb 10
cmpgt
GetStatic1 5//cursor index
pushb 15
cmple
and
not
jumpfalse @RadioIndexSelection2
drop
Return 2 0//endexecute
:exe_Radio_Mirror_Park
pushstring "RADIO_16_SILVERLAKE_"
jump @exe_radio
:exe_Space_103.2
pushstring "RADIO_17_FUNK_"
jump @exe_radio
:exe_Vinewood_Boulevard_Radio
pushstring "RADIO_18_90S_ROCK_"
jump @exe_radio
:exe_Blaine_County_Radio
pushstring "RADIO_11_TALK_02_"
jump @exe_radio
:exe_radio
GetStatic1 34//last selected of item level three
GetStatic1 5//cursor index
call @get_radio_station_song_from_index(stationid,selid)
call @string strcat(string source,string toadd)
GetStaticP1 245
call @play_audio(name)
Return 2 0//endexecute
:RadioIndexSelection1
GetStatic1 34//last selected of item level three
push_1
call @get_radio_station_song_from_index(stationid,selid)
call @string strcat(string source,string toadd)
jump @exe_radio_at_index
:RadioIndexSelection2
GetStatic1 34//last selected of item level three
push_2
call @get_radio_station_song_from_index(stationid,selid)
call @string strcat(string source,string toadd)
:exe_radio_at_index
GetStatic1 34//last selected of item level three
GetStatic1 5//cursor index
call @get_radio_station_song_from_index(stationid,selid)
call @play_audio_at_index(name,index)
Return 2 0//endexecute
//<
//<
//> menu execution level5
:exemenulevel5
//> menu execution level5 handling
GetStatic1 4//last selected of item level zero
Switch [1 @exenextinmenulevel5_for_playeroptions]:[2 @exenextinmenulevel5_for_vehicleoptions]
Return 2 0//endexecute
//> level 5 player options handling
:exenextinmenulevel5_for_playeroptions
GetStatic1 2//last selected of item level one
Switch [1 @exeonlineplayersfor5]:[3 @exe_dir3_in_modelchanger]:[7 @exe_dir3_in_bodyguards]
Return 2 0//endexecute
:exeonlineplayersfor5
GetStatic1 12//last selected of item level two
Switch [1 @exeonlineplayerfor5]//if player was pressed
Return 2 0//endexecute
:exeonlineplayerfor5
GetStatic1 34//last selected of item level three
Switch [1 @exeonlineplayeroptionsfor5]
Return 2 0//endexecute
:exeonlineplayeroptionsfor5
GetStatic1 38//last selected of item level four
Switch [11 @exeonlineplayerexpotherpfor5]
Return 2 0//endexecute
//<
//> level 5 vehicle options handling
:exenextinmenulevel5_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @exelevel5_garage]
Return 2 0//endexecute
:exelevel5_garage
GetStatic1 1//last selected of item level two
Switch [5 @exe_vehicles_handling_data_level5]:[7 @exevehicletypechanger]
Return 2 0//endexecute
:exe_vehicles_handling_data_level5
GetStatic1 34//last selected of item level three
push_1
jumpeq @exe_vehicles_handling_data
Return 2 0//endexecute
//<
//<
//> make online player explode player
:exeonlineplayerexpotherpfor5
GetStatic1 5//cursor index
Push_1
jumpgt @makepexplodeindp
Push_0
SetStatic1 101
:continuemakepexpp
GetStatic1 101
PushB 18
cmpge
jumpfalse @dummylabel178
Return 2 0//endexecute
:dummylabel178
GetStatic1 101
call @bool_is_player_in_game(playerindex)
jumpfalse @skipmakepexpp
GetStatic1 101
GetStatic1 10//player id
jumpeq @skipmakepexpp
GetStatic1 10//player id
CallNative get_player_ped 1 1
GetStatic1 101
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
PushB 29//exid
PushF_7
Push_1
Push_0
PushF_0
CallNative add_owned_explosion 9 0
:skipmakepexpp
GetStatic1 101
add1 1
SetStatic1 101
jump @continuemakepexpp
:makepexplodeindp
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
Push_0
cmpeq
jumpfalse @dummylabel179
Return 2 0//endexecute
:dummylabel179
GetStatic1 10//player id
CallNative get_player_ped 1 1
GetStatic1 5//cursor index
Push_2
sub
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
PushB 29//exid
PushF_7
Push_1
Push_0
PushF_0
CallNative add_owned_explosion 9 0
Return 2 0//endexecute
//<
//> exe_dir3_in_modelchanger
:exe_dir3_in_modelchanger
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel180
Return 2 0//endexecute
:dummylabel180
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
GetStatic1 67//saved modelchanger dir2
GetStatic1 68//saved modelchanger dir3
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
Push_0//none
call @Change_Player_Model_no_wait(int model,jumptype)
drop
Return 2 0//endexecute
//<
//> exe_dir3_in_bodyguards
:exe_dir3_in_bodyguards
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @dummylabel181
Return 2 0//endexecute
:dummylabel181
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
GetStatic1 66//saved modelchanger dir1
GetStatic1 67//saved modelchanger dir2
GetStatic1 68//saved modelchanger dir3
call @get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
call @get_random_primary
call @get_random_secondary
Push_0//none
call @spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Return 2 0//endexecute
//<
//> vehicles for handling data
:exe_vehicles_handling_data
//vehicles
call @is_cursor_index_valid
Push_0
cmpeq
jumpfalse @handling_data_cursor_ok
Return 2 0//endexecute
:handling_data_cursor_ok
GetStatic1 5//cursor index
GetStaticP2 511//static var to hold incremented number
GetArray1 1//veh hash
dup
SetStatic1 65//saved handling data hash
Push_0
cmpeq
jumpfalse @handling_data_hash_ok
Return 2 0//endexecute
:handling_data_hash_ok
GetStatic1 5//cursor index
GetStaticP2 379//array for drawing menu text
GetArray1 1//gets array
dup
SetStatic2 380//header
CallNative does_text_label_exist 1 1
jumpfalse @skip_gxttext_handling
GetStaticp1 24
Pushb 17//gxt header bool
callnative set_bit 2 0
:skip_gxttext_handling
call @advance_menu_level
Return 2 0//endexecute
//<
//> exevehicletypechanger
:exevehicletypechanger
GetStatic1 65//saved handling data hash
call @get_veh_meta_index_from_hash(hash)
dup
SetStatic1 100
Push_0
cmpeq
jumpfalse @meta_index_ok
Return 2 0//endexecute
:meta_index_ok
GetStatic1 65//saved handling data hash
call @is_vehicle_model_dlc_model(hash)
jumpfalse @nondlc_exevehicletypechanger
call @MetaDlcVehiclesAddressSearch
dup
Push_0
cmpeq
jumpfalse @isdlc_exevehicletypechanger
drop
Return 2 0//endexecute
:nondlc_exevehicletypechanger
push GetEnum("MetaVehicleStartAddr")
:isdlc_exevehicletypechanger
push GetEnum("MetaVehicleItemSize")//size of one veh in meta struct
GetStatic1 100
Push_1
sub//account for get_veh_meta_index_from_hash starting at 1
mult
add
//vehicle start pointer on stack
dup
add2 508//handling address
SetStatic1 101//handling address
add2 440//vehicle type address
SetStatic1 102//vehicle type address
GetStatic1 5//cursor index
Switch [1 @exevehicletypechanger1]:[2 @exevehicletypechanger2]:[3 @exevehicletypechanger3]:[4 @exevehicletypechanger4]:[5 @exevehicletypechanger5]:[6 @exevehicletypechanger6]:[7 @exevehicletypechanger7]:[8 @exevehicletypechanger8]
Return 2 0//endexecute
:exevehicletypechanger1
//VEHICLE_TYPE_CAR
PushB 23//BUFFALO
GetStatic1 101
pset
Push_0//enum for VEHICLE_TYPE_CAR
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger2
//VEHICLE_TYPE_QUADBIKE
PushB 16//blazer
GetStatic1 101
pset
Push_3//enum for VEHICLE_TYPE_QUADBIKE
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger3
//VEHICLE_TYPE_BLIMP
PushB 247//blimp
GetStatic1 101
pset
Push_7//enum for VEHICLE_TYPE_BLIMP
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger4
//VEHICLE_TYPE_BIKE
PushB 184//pcj
GetStatic1 101
pset
PushB 9//enum for VEHICLE_TYPE_BIKE
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger5
//VEHICLE_TYPE_BICYCLE
GetStatic1 65//saved handling data hash
call @is_this_model_a_bike_from_model(hash)
not
pushstring "~r~Error:~s~ You cannot change a bike to a bicycle."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel184
Return 2 0//endexecute
:dummylabel184
PushB 189//bmx
GetStatic1 101
pset
PushB 10//enum for VEHICLE_TYPE_BICYCLE
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger6
//VEHICLE_TYPE_HELI
PushB 239//ANNIHL
GetStatic1 101
pset
Push_6//enum for VEHICLE_TYPE_HELI
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger7
//VEHICLE_TYPE_PLANE
PushB 199//lazer
GetStatic1 101
pset
Push_1//enum for VEHICLE_TYPE_PLANE
GetStatic1 102
pset
Jump @endexevehicletypechanger
:exevehicletypechanger8
//VEHICLE_TYPE_BOAT
GetStatic1 65//saved handling data hash
call @is_this_model_a_bike_from_model(hash)
GetStatic1 65//saved handling data hash
call @is_this_model_a_bicycle_from_model(hash)
or
not
pushstring "~r~Error:~s~ You cannot change a bike to a boat."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
Push_0
cmpeq
jumpfalse @dummylabel185
Return 2 0//endexecute
:dummylabel185
:vtypeboatwarn
Push_0
callnative wait 1 0
call @disable_game_controls_this_frame
pushstring "~y~Warning:~s~ This type is unstable on some vehicles."
pushstring "Do you want to continue?~n~~g~A~s~-Continue ~r~B~s~-Cancel"
pushs 10
call @print_two(string text1,string text2,int ms)
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
not
JumpFalse @continuevtypeboat
Push_2
push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative is_disabled_control_just_pressed 2 1
Not
Push_0
cmpeq
jumpfalse @dummylabel186
Return 2 0//endexecute
:dummylabel186
jump @vtypeboatwarn
:continuevtypeboat
PushB 230//dinghy
GetStatic1 101
pset
PushB 11//enum for VEHICLE_TYPE_BOAT
GetStatic1 102
pset
Jump @endexevehicletypechanger
:endexevehicletypechanger
pushstring "Vehicle type set."
call @print_notification(string text)
Return 2 0//endexecute
//<
//<
//> menu execution level6
:exemenulevel6
//> menu execution level6 handling
GetStatic1 4//last selected of item level zero
Switch [2 @exenextinmenulevel6_for_vehicleoptions]
Return 2 0//endexecute
//> level 6 vehicle options handling
:exenextinmenulevel6_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @exelevel6_garage]
Return 2 0//endexecute
:exelevel6_garage
GetStatic1 1//last selected of item level two
Switch [5 @exe_vehicles_handling_data_level6]
Return 2 0//endexecute
:exe_vehicles_handling_data_level6
GetStatic1 34//last selected of item level three
push_1
jumpeq @exe_handling_data_presets
Return 2 0//endexecute
//<
//<
//> handling data presets
:exe_handling_data_presets
GetStatic1 5//cursor index
Switch [1 @handling_data_item1]:[2 @handling_data_item2]:[3 @handling_data_item3]:[4 @handling_data_item4]:[5 @handling_data_item5]:[6 @handling_data_item6]:[7 @handling_data_item7]:[8 @handling_data_item8]
Return 2 0//endexecute
:handling_data_item1
call @advance_menu_level
Return 2 0//endexecute
:handling_data_item2
//> speed line entity
push 0x497423F0
push 0x3A5ED288
push 0x00000000
push 0xBDCCCCCD
push 0xBE4CCCCD
push 0x00000000
push 0x3F800000
push 0x3FB33333
push 0x3FCCCCCD
push 0x3F800000
push 0x42AA0000
push 0x3F969697
push 0x3F800000
push 0x3F800000
push 0x07000000
push 0x3F800000
push 0x41100000
push 0x41100000
push 0x3F666666
push 0x43480001
push 0x4326AAAB
push 0x42700000
push 0x00000000
push 0x40000000
push 0x00000000
push 0x3F4CCCCD
push 0x3F5F66F3
push 0x3F92AD5D
push 0x417D999A
push 0x3D81361B
push 0x417C0000
push 0x411FFFD8
push 0x3EC90FDB
push 0x4022F983
push 0x3CA3D70A
push 0x42480000
push 0x3F99999A
push 0x00000000
push 0x3F7851EC
push 0x3F83D70A
push 0x00000000
push 0x400CCCCD
push 0x3E051EB8
push 0x3E428F5C
push 0x3DA3D70A
push 0xBDCCCCCD
push 0x00000000
push 0x3F7AE148
push 0x3F828F5C
push 0x3F19999A
push 0x3F8CCCCD
push 0x3F666666
push 0x3E4CCCCD
push 0x3E4CCCCD
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x42820000
push 0x40900000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x000249F0
push 0x04400104
push 0x00000000
push 0x00000000
push 0xF76FD4AB
push 0x6E3C5C6B
push 0x6E3C5C6B
push 0xBE32B83A
//<
jump @end_preset_handling_data
:handling_data_item3
//> wheelie line sabre
push 0x47C35000
push 0x3A51B717
push 0x00000000
push 0xBF59999A
push 0x3E2E147B
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3FCCCCCD
push 0x3F800000
push 0x42AA0000
push 0x3F969697
push 0x00000000
push 0x3F800000
push 0x05000000
push 0x3F800000
push 0x40400000
push 0x40400000
push 0x3EE66666
push 0x43A68000
push 0x438AC000
push 0x3F4CCCCD
push 0x00000000
push 0x3FA66666
push 0x3F333334
push 0x3F4CCCCD
push 0x3F32B8C2
push 0x3FB758B4
push 0x40100000
push 0x3EE38E39
push 0x401CCCCD
push 0x4CBEBC20
push 0x3EC90FDB
push 0x4022F983
push 0x3E19999A
push 0x40D55555
push 0x3F800000
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x400CCCCD
push 0x3DA3D70B
push 0x3E051EB8
push 0x3DF5C28F
push 0xBE0F5C29
push 0x00000000
push 0x3E75C28F
push 0x3FE147AE
push 0x3ECCCCCD
push 0x3F8F5C29
push 0x3F6147AE
push 0x3E4CCCCD
push 0x3E4CCCCD
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x42820000
push 0x40A00000
push 0x00000000
push 0x00000000
push 0x3DCCCCCD
push 0x000249F0
push 0x04440010
push 0x0C000000
push 0x00000000
push 0xFE4E9438
push 0xCFCAA6A4
push 0x6E3C5C6B
push 0xBE32B83A
//<
jump @end_preset_handling_data
:handling_data_item4
//> wheelie line dump
push 0x46C35000
push 0x3BF27BB3
push 0x00000000
push 0xBF333333
push 0x3DCCCCCD
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x43480000
push 0x3F000000
push 0x00000000
push 0x3F800000
push 0x07000000
push 0x3F000000
push 0x3FA66666
push 0x3FA66666
push 0x3F000000
push 0x43055556
push 0x42DE38E4
push 0x3E99999A
push 0x00000000
push 0x3F99999A
push 0x3F4CCCCC
push 0x3E4CCCCD
push 0x3F1C61AA
push 0x3FD189F2
push 0x404CCCCD
push 0x3EA00000
push 0x4059999A
push 0x4CBEBC20
push 0x3E685696
push 0x408D0928
push 0x3E19999A
push 0x40D55555
push 0x00000000
push 0x00000000
push 0x3F75C28F
push 0x3F851EB8
push 0x3F000000
push 0x40000000
push 0x3DCCCCCD
push 0x3E428F5C
push 0x3E4CCCCD
push 0xBE800000
push 0x00000000
push 0x3FA3D70A
push 0x3F3851EC
push 0x00000000
push 0x00000000
push 0x40000000
push 0x3EA8F5C3
push 0x3EA8F5C3
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x428C0000
push 0x41000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00009C40
push 0x00224008
push 0x00020001
push 0x00000020
push 0x02AD98EF
push 0xECC8575D
push 0x9CBA8117
push 0x428100C5
//<
jump @end_preset_handling_data
:handling_data_item5
//> lifted line sandking
push 0x45160000
push 0x3A51B717
push 0x00000000
push 0x3D4CCCCD
push 0xBE4CCCCD
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x42AA0000
push 0x3F969697
push 0x3F800000
push 0x3F800000
push 0x06000000
push 0x3F800000
push 0x3FE66666
push 0x3FE66666
push 0x3F000000
push 0x422D5557
push 0x421071C8
push 0x3F7D70A4
push 0x00000000
push 0x3FA66666
push 0x3F333334
push 0x3EE66666
push 0x3F1C61AA
push 0x3FD189F2
push 0x40000000
push 0x3F000000
push 0x3FD9999A
push 0x40555558
push 0x3EA9C91F
push 0x4040FF0E
push 0x3E051EB8
push 0x40F62763
push 0x3F666666
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F4CCCCD
push 0x3FB33333
push 0x3DB851EB
push 0x3E0F5C29
push 0x3ECCCCCD
push 0xBE8F5C29
push 0x3E19999A
push 0x3F828F5C
push 0x3F7AE148
push 0x3ECCCCCD
push 0x3F4CCCCD
push 0x3F99999A
push 0x3F000000
push 0x3EDC28F6
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x42A00000
push 0x41000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x0000C350
push 0x00220010
push 0x00420000
push 0x00000000
push 0xEB859108
push 0xC32B68DF
push 0x6E3C5C6B
push 0xBE32B83A
//<
jump @end_preset_handling_data
:handling_data_item6
//> awd drift line sultan
push 0x47C34F80
push 0x3A2A64C3
push 0x00000000
push 0xBE19999A
push 0xBE6147AE
push 0x00000000
push 0x3F800000
push 0x3FB33333
push 0x3FCCCCCD
push 0x3F800000
push 0x42960000
push 0x3FAAAAAB
push 0x3F4CCCCD
push 0x3F99999A
push 0x06000000
push 0x40A00000
push 0x3FE66666
push 0x3FE66666
push 0x3F800000
push 0x42855556
push 0x425E38E4
push 0x3F666666
push 0x00000000
push 0x3FD9999A
push 0x3E999998
push 0x3F333333
push 0x3F860A92
push 0x3F747645
push 0x3F51EB85
push 0x3F9C18FA
push 0x3F800000
push 0x4CBEBC20
push 0x3E937207
push 0x405E3CF9
push 0x3DF5C28F
push 0x41055556
push 0x3FB33333
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x40200000
push 0x3DCCCCCD
push 0x3E0F5C29
push 0x3E4CCCCD
push 0xBDA3D70A
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3ECCCCCD
push 0x3F87AE14
push 0x3F70A3D8
push 0x3E851EB8
push 0x3E8A3D71
push 0x3F800000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x42820000
push 0x40A00000
push 0x00000000
push 0x00000000
push 0x3D4CCCCD
push 0x000088B8
push 0x00440010
push 0x00000000
push 0x00000000
push 0xC7B2C3C0
push 0x6E3C5C6B
push 0x6E3C5C6B
push 0xBE32B83A
//<
jump @end_preset_handling_data
:handling_data_item7
//> rwd drift line futo
push 0x45D05000
push 0x398D8EC9
push 0x00000000
push 0xBE19999A
push 0xBE6147AE
push 0x00000000
push 0x3F99999A
push 0x3FC00000
push 0x3FCCCCCD
push 0x3F99999A
push 0x42B3CCCD
push 0x3F8E6163
push 0x00000000
push 0x3F800000
push 0x04000000
push 0x3FC00000
push 0x402CCCCD
push 0x4099999A
push 0x3F933333
push 0x43010001
push 0x42D70001
push 0x3F68F5C3
push 0x00000000
push 0x3FD9999A
push 0x3E999998
push 0x3F333333
push 0x3FA5514D
push 0x3F463662
push 0x3F733333
push 0x3F86BCA2
push 0x3F99999A
push 0x4CBEBC20
push 0x3EC90FDB
push 0x4022F983
push 0x3E19999A
push 0x40D55555
push 0x3F800000
push 0x3F051EB8
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x40200000
push 0x3DCCCCCD
push 0x3E0F5C29
push 0x3E4CCCCD
push 0xBDA3D70A
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F666666
push 0x3FAE147B
push 0x3F23D70A
push 0x3EB33333
push 0x3ECCCCCD
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x42700000
push 0x40A00000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x000249F0
push 0x04400104
push 0x00000000
push 0x00000000
push 0xF76FD4AB
push 0x6E3C5C6B
push 0x6E3C5C6B
push 0xA4A256CF
//<
jump @end_preset_handling_data
:handling_data_item8
//> awd drift line penumbra
push 0x47C34F80
push 0x3A1D4951
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x3F99999A
push 0x3FC00000
push 0x3FCCCCCD
push 0x3F99999A
push 0x42AA0000
push 0x3F969697
push 0x3F800000
push 0x3F800000
push 0x05000000
push 0x40000000
push 0x40133333
push 0x40133333
push 0x3F59999A
push 0x423AAAAB
push 0x421B8E39
push 0x40800000
push 0x00000000
push 0x00000000
push 0x40000000
push 0x3F4CCCCD
push 0x3F5F66F3
push 0x3F92AD5D
push 0x3FB33333
push 0x3F36DB6E
push 0x3F99999A
push 0x40A00004
push 0x3EC90FDB
push 0x4022F983
push 0x3E19999A
push 0x40D55555
push 0x3F800000
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F800000
push 0x40000000
push 0x3E051EB8
push 0x3E051EB8
push 0x3DA3D70A
push 0xBE0F5C29
push 0x00000000
push 0x3F800000
push 0x3F800000
push 0x3F666666
push 0x3F99999A
push 0x3F4CCCCC
push 0x3EB33333
push 0x3ED1EB85
push 0x00000000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x42820000
push 0x40A00000
push 0x00000000
push 0x00000000
push 0x00000000
push 0x000249F0
push 0x00440010
push 0x00440010
push 0x00000000
push 0xC7B2C3C0
push 0xC7B2C3C0
push 0x6E3C5C6B
push 0xBE32B83A
//<
jump @end_preset_handling_data
:end_preset_handling_data
PushB 71
GetStatic1 65//saved handling data hash
call @veh_model_to_handling_hash(hash)
call @get_handling_pointer_from_hash(int hash)
add1 4
fromstack
pushstring "Handling line set."
call @print_notification(string text)
Return 2 0//endexecute
//<
//<
//> menu execution level7
:exemenulevel7
//> menu execution level7 handling
GetStatic1 4//last selected of item level zero
Switch [2 @exenextinmenulevel7_for_vehicleoptions]
Return 2 0//endexecute
//> level 7 vehicle options handling
:exenextinmenulevel7_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @exelevel7_garage]
Return 2 0//endexecute
:exelevel7_garage
GetStatic1 1//last selected of item level two
Switch [5 @exe_vehicles_handling_data_level7]
Return 2 0//endexecute
:exe_vehicles_handling_data_level7
GetStatic1 34//last selected of item level three
push_1
jumpeq @exe_handling_data_presets7
Return 2 0//endexecute
:exe_handling_data_presets7
GetStatic1 204//last selected of item level three
push_1
jumpeq @exe_handling_editor
Return 2 0//endexecute
//<
//<
//> handling editor
:exe_handling_editor
call @advance_menu_level
Return 2 0//endexecute
//<
//<
//> menu execution level8
:exemenulevel8
//> menu execution level8 handling
GetStatic1 4//last selected of item level zero
Switch [2 @exenextinmenulevel8_for_vehicleoptions]
Return 2 0//endexecute
//> vehicle options submenus menulevel 8
:exenextinmenulevel8_for_vehicleoptions
GetStatic1 2//last selected of item level one
Switch [1 @exegarage_level8]
Return 2 0//endexecute
:exegarage_level8
GetStatic1 1//last selected of item level two
Switch [5 @exe_handling_data_level8]
Return 2 0//endexecute
:exe_handling_data_level8
GetStatic1 34//last selected of item level three
push_1
jumpeq @exe_handling_data_presets8
Return 2 0//endexecute
:exe_handling_data_presets8
GetStatic1 204//last selected of item level six
push_1
jumpeq @exe_handling_editor_level8
Return 2 0//endexecute
:exe_handling_editor_level8
GetStatic1 65//saved handling data hash
call @veh_model_to_handling_hash(hash)
call @get_handling_pointer_from_hash(int hash)
dup
setstatic1 100
push_0
jumpne @exehandling_editor_pointer_ok
Return 2 0//endexecute
:exehandling_editor_pointer_ok
GetStatic1 206//last selected of item level seven
Switch [1 @exe_handling_editor_general]:[2 @exe_handling_editor_gears&breaks]:[3 @exe_handling_editor_traction]:[4 @exe_handling_editor_suspension]:[5 @exe_handling_editor_damage]:[6 @exe_handling_editor_misc]
Return 2 0//endexecute
//<
//<
//> handling editor
:exe_handling_editor_general
GetStatic1 5//cursor index
push_1
jumpeq @exe_handling_editor_precision
GetStatic1 5//cursor index
pushb 12//Percent Submerged
jumpeq @exe_handling_editor_general_Submerged
GetStatic1 5//cursor index
pushb 3//drag
jumpne @exe_handling_editor_general_start
call @get_menu_number
pushf 0.000099999997
fmult
getstatic1 100//pointer
add1 8//drag
pset
jump @handling_editor_print_set_val
:exe_handling_editor_general_Submerged
call @get_menu_number
getstatic1 100//pointer
add1 44//Percent Submerged
pset
pushf 100
call @get_menu_number
fdiv
getstatic1 100//pointer
add1 48//Percent Submerged
pset
jump @handling_editor_print_set_val
:exe_handling_editor_general_start
push_4
jump @handling_editor_set_val
//> gears&breaks
:exe_handling_editor_gears&breaks
GetStatic1 5//cursor index
switch [1 @exe_handling_editor_precision]:[2 @gears&breaks2]:[3 @gears&breaks3]:[4 @gears&breaks4]:[5 @gears&breaks5]:[6 @gears&breaks6]:[7 @gears&breaks7]:[8 @gears&breaks8]:[9 @gears&breaks9]:[10 @gears&breaks10]:[11 @gears&breaks11]:[12 @gears&breaks12]:[13 @gears&breaks13]:[14 @gears&breaks14]:[15 @gears&breaks15]:[16 @gears&breaks16]
Return 2 0//endexecute
:gears&breaks2
pushb 52//Drive Bias Front X
jump @handling_editor_set_val_normal
:gears&breaks3
pushb 56//Drive Bias Front Y
jump @handling_editor_set_val_normal
:gears&breaks4
getstatic1 100
add1 60//Drive Gears
push_0
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
jump @handling_editor_print_set_val
:gears&breaks5
//Drive Inertia
pushb 64
jump @handling_editor_set_val_normal
:gears&breaks6
//Clutch Up Shift Rate
pushb 68
jump @handling_editor_set_val_normal
:gears&breaks7
//Clutch Down Shift Rate
pushb 72
jump @handling_editor_set_val_normal
:gears&breaks8
//Drive Force
pushb 76
jump @handling_editor_set_val_normal
:gears&breaks9
//Max Speed
call @get_menu_number
pushf 0.27777779
fmult//speed y
dup
setstatic1 101
getstatic1 100//pointer
add1 84//fInitialDriveMaxFlatVel y
pset
getstatic1 101
pushf 1.200000048
fmult
getstatic1 100//pointer
add1 80//fInitialDriveMaxFlatVel x
pset
jump @handling_editor_print_set_val
:gears&breaks10
//Break Force
pushb 88
jump @handling_editor_set_val_normal
:gears&breaks11
//Unk Brake
pushb 92
jump @handling_editor_set_val_normal
:gears&breaks12
//Break Bias Front X
pushb 96
jump @handling_editor_set_val_normal
:gears&breaks13
//Break Bias Front Y
pushb 100
jump @handling_editor_set_val_normal
:gears&breaks14
//Handbrake Force
pushb 104
jump @handling_editor_set_val_normal
:gears&breaks15
//Steering Lock X
pushb 106
jump @handling_editor_set_val_normal
:gears&breaks16
//Steering Lock Y
pushb 112
jump @handling_editor_set_val_normal
//<
:exe_handling_editor_traction
GetStatic1 5//cursor index
push_1
jumpeq @exe_handling_editor_precision
pushb 116
jump @handling_editor_set_val
:exe_handling_editor_suspension
GetStatic1 5//cursor index
push_1
jumpeq @exe_handling_editor_precision
pushb 168
jump @handling_editor_set_val
:exe_handling_editor_damage
GetStatic1 5//cursor index
push_1
jumpeq @exe_handling_editor_precision
pushb 220
jump @handling_editor_set_val
:exe_handling_editor_misc
GetStatic1 5//cursor index
push_1
jumpeq @exe_handling_editor_precision
GetStatic1 5//cursor index
push_6
jumpgt @exe_handling_editor_misc_special
pushb 244
jump @handling_editor_set_val
:exe_handling_editor_misc_special
GetStatic1 5//cursor index
switch [7 @handling_editor_model_index]:[8 @handling_editor_model_flags]:[9 @handling_editor_handling_index]:[10 @handling_editor_handling_flags]:[11 @handling_editor_damage_index]:[12 @handling_editor_damage_flags]:[13 @handling_editor_aihandling]
Return 2 0//endexecute
:handling_editor_model_index
call @get_menu_number
setstatic1 208//model flags index
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:handling_editor_model_flags
call @get_menu_number
call @enum_to_mflags
push_0//start
push_4//end
getstatic1 100
add2 264//dest loc
getstatic1 208//model flags index
call @index_to_bits
call @memcopy_bits(int sourcebits,indexstart,indexend,int* destbits,deststart)
jump @handling_editor_print_set_val
:handling_editor_handling_index
call @get_menu_number
setstatic1 209//handling flags index
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:handling_editor_handling_flags
call @get_menu_number
call @enum_to_hflags
push_0//start
push_4//end
getstatic1 100
add2 268//dest loc
getstatic1 209//handling flags index
call @index_to_bits
call @memcopy_bits(int sourcebits,indexstart,indexend,int* destbits,deststart)
jump @handling_editor_print_set_val
:handling_editor_damage_index
call @get_menu_number
setstatic1 210//damage flags index
Push_1
Call @updatemenutext(istoggle)
Return 2 0//endexecute
:handling_editor_damage_flags
call @get_menu_number
call @enum_to_dflags
push_0//start
push_4//end
getstatic1 100
add2 272//dest loc
getstatic1 210//damage flags index
call @index_to_bits
call @memcopy_bits(int sourcebits,indexstart,indexend,int* destbits,deststart)
jump @handling_editor_print_set_val
:handling_editor_aihandling
call @get_menu_number
call @index_to_aihandling
getstatic1 100
add2 288//dest loc
pset
jump @handling_editor_print_set_val
:exe_handling_editor_precision
call @set_menu_number_to_precision_level
Return 2 0//endexecute
:handling_editor_set_val
call @get_menu_number
call @exch
getstatic1 100//pointer
add
GetStatic1 5//cursor index
push_2
sub
mult1 4
add
pset
jump @handling_editor_print_set_val
:handling_editor_set_val_normal
call @get_menu_number
call @exch
getstatic1 100//pointer
add
pset
:handling_editor_print_set_val
pushstring "Value Set"
call @print_notification(string text)
Return 2 0//endexecute
//<
//<
//> display functions
//> display_text
:display_text(string_text,float_x,float_y,bool IsGtxText)
Function 4 6
Setframename 0 str
Setframename 1 x
Setframename 2 y
Setframename 3 IsGtxText
GetFrame1 IsGtxText
jumpfalse @notgxttext
GetFrame1 str
CallNative does_text_label_exist 1 1
jumpfalse @labeldoesnotexist
GetFrame1 str
CallNative _set_text_entry 1 0
jump @isgxttext
:labeldoesnotexist
pushstring "Gxt Label Does Not Exist"
SetFrame1 str
:notgxttext
PushString "STRING"
CallNative _set_text_entry 1 0
GetFrame1 str
CallNative _add_text_component_string 1 0
:isgxttext
GetFrame1 x
GetFrame1 y
CallNative _draw_text 2 0
Return 4 0
//<
//> display number
:display_number(int_number,float_x,float_y)
Function 3 5
Setframename 0 num
Setframename 1 x
Setframename 2 y
PushString "NUMBER"
CallNative _set_text_entry 1 0
GetFrame1 num
CallNative add_text_component_integer 1 0
GetFrame1 x
GetFrame1 y
CallNative _draw_text 2 0
Return 3 0
//<
//> display float
:draw_float(float,x,y)
Function 3 5
Setframename 0 float
Setframename 1 x
Setframename 2 y
PushString "NUMBER"
CallNative _set_text_entry 1 0
GetFrame1 float
Push_4
CallNative add_text_component_float 2 0
GetFrame1 x
GetFrame1 y
CallNative _draw_text 2 0
Return 3 0
//<
//> set_up_draw
:set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
Function 11 13
setframename 0 font
setframename 1 wrap
setframename 2 scale
setframename 3 center
setframename 4 right_justify
setframename 5 drop_shadow
setframename 6 outline
setframename 7 r
setframename 8 g
setframename 9 b
setframename 10 a
GetFrame1 font
CallNative set_text_font 1 0
PushF_0
GetFrame1 wrap
CallNative set_text_wrap 2 0
PushF_1//no change
GetFrame1 scale
CallNative set_text_scale 2 0
GetFrame1 center
CallNative set_text_centre 1 0
GetFrame1 right_justify
callnative set_text_right_justify 1 0
GetFrame1 drop_shadow
jumpfalse @no_drop_shadow_for_setup
CallNative set_text_drop_shadow 0 0
:no_drop_shadow_for_setup
GetFrame1 outline
jumpfalse @no_outline_for_setup
CallNative set_text_outline 0 0
:no_outline_for_setup
GetFrame1 r
GetFrame1 g
GetFrame1 b
GetFrame1 a
CallNative set_text_colour 4 0
Return 11 0
//<
//> get width of string
:get_width_of_string(string str,int font,float scale)
Function 3 5
Setframename 0 str
Setframename 1 font
Setframename 2 scale
PushString "STRING"
CallNative _set_text_entry_for_width 1 0
GetFrame1 str
CallNative _add_text_component_string 1 0
GetFrame1 font
CallNative set_text_font 1 0
PushF_1//no change
GetFrame1 scale
CallNative set_text_scale 2 0
Push_1
CallNative _get_text_screen_width 1 1//get loaded gxt text width before draw
Return 3 1
//<
//> get width of number
:get_width_of_number(int num,int font,float scale)
Function 3 5
Setframename 0 num
Setframename 1 font
Setframename 2 scale
PushString "NUMBER"
CallNative _set_text_entry_for_width 1 0
GetFrame1 num
CallNative add_text_component_integer 1 0
GetFrame1 font
CallNative set_text_font 1 0
PushF_1//no change
GetFrame1 scale
CallNative set_text_scale 2 0
Push_1
CallNative _get_text_screen_width 1 1//get loaded gxt text width before draw
Return 3 1
//<
//> get width of float
:get_width_of_float(float num,int font,float scale)
Function 3 5
Setframename 0 float
Setframename 1 font
Setframename 2 scale
PushString "NUMBER"
CallNative _set_text_entry_for_width 1 0
GetFrame1 float
Push_4
CallNative add_text_component_float 2 0
GetFrame1 font
CallNative set_text_font 1 0
PushF_1//no change
GetFrame1 scale
CallNative set_text_scale 2 0
Push_1
CallNative _get_text_screen_width 1 1//get loaded gxt text width before draw
Return 3 1
//<
//<
//> change car color
:ChangeCarColor
Function 0 7
setframename 2 VehicleHandle
setframename 3 r
setframename 4 g
setframename 5 b
setframename 6 Speed
push_5
setframe1 Speed
call @are_you_in_veh_if_so_get_handle
SetFrame1 VehicleHandle
GetFrame1 VehicleHandle
jumpfalse @ExitChangeCarColor
GetFrame1 VehicleHandle
Push_0
CallNative set_vehicle_mod_kit 2 0
GetFrame1 VehicleHandle
PushB 20
Push_1
CallNative toggle_vehicle_mod 3 0
GetFrame1 VehicleHandle
GetFramep1 r
GetFramep1 g
GetFramep1 b
CallNative get_vehicle_custom_primary_colour 4 0
//> hue left to right check
getframe1 r
pushb 255
cmpeq
GetFrame1 g
push_0
cmpge
GetFrame1 g
pushb 255
cmplt
GetFrame1 b
push_0
cmpeq
and
and
and
not
jumpfalse @colorchanger_inc_green
GetFrame1 r
push_0
cmpgt
GetFrame1 r
pushb 255
cmple
GetFrame1 g
pushb 255
cmpeq
GetFrame1 b
push_0
cmpeq
and
and
and
not
jumpfalse @colorchanger_deinc_red
getframe1 r
push_0
cmpeq
GetFrame1 g
pushb 255
cmpeq
GetFrame1 b
push_0
cmpge
GetFrame1 b
pushb 255
cmplt
and
and
and
not
jumpfalse @colorchanger_inc_blue
getframe1 r
push_0
cmpeq
GetFrame1 g
push_0
cmpgt
GetFrame1 g
pushb 255
cmple
GetFrame1 b
pushb 255
cmpeq
and
and
and
not
jumpfalse @colorchanger_deinc_green
GetFrame1 r
push_0
cmpge
GetFrame1 r
pushb 255
cmplt
GetFrame1 g
push_0
cmpeq
GetFrame1 b
pushb 255
cmpeq
and
and
and
not
jumpfalse @colorchanger_inc_red
getframe1 r
pushb 255
cmpeq
GetFrame1 g
push_0
cmpeq
GetFrame1 b
push_0
cmpgt
GetFrame1 b
pushb 255
cmple
and
and
and
not
jumpfalse @colorchanger_deinc_blue
//<
//> move current color to red to start
getframe1 r
pushb 255
jumpge @colorchanger_red_ok
getframe1 r
getframe1 Speed
add
setframe1 r
:colorchanger_red_ok
getframe1 g
push_0
jumple @colorchanger_green_ok
getframe1 g
getframe1 Speed
sub
setframe1 g
:colorchanger_green_ok
getframe1 b
push_0
jumple @colorchanger_set_color
getframe1 b
getframe1 Speed
sub
setframe1 b
jump @colorchanger_set_color
//<
//> hue left to right execute
:colorchanger_inc_green
getframe1 g
pushb 255
jumpge @colorchanger_set_color
getframe1 g
getframe1 Speed
add
setframe1 g
jump @colorchanger_set_color
:colorchanger_deinc_red
getframe1 r
push_0
jumple @colorchanger_set_color
getframe1 r
getframe1 Speed
sub
setframe1 r
jump @colorchanger_set_color
:colorchanger_inc_blue
getframe1 b
pushb 255
jumpge @colorchanger_set_color
getframe1 b
getframe1 Speed
add
setframe1 b
jump @colorchanger_set_color
:colorchanger_deinc_green
getframe1 g
push_0
jumple @colorchanger_set_color
getframe1 g
getframe1 Speed
sub
setframe1 g
jump @colorchanger_set_color
:colorchanger_inc_red
getframe1 r
pushb 255
jumpge @colorchanger_set_color
getframe1 r
getframe1 Speed
add
setframe1 r
jump @colorchanger_set_color
:colorchanger_deinc_blue
getframe1 b
push_0
jumple @colorchanger_set_color
getframe1 b
getframe1 Speed
sub
setframe1 b
jump @colorchanger_set_color
//<
:colorchanger_set_color
GetFrame1 VehicleHandle
GetFrame1 r
GetFrame1 g
GetFrame1 b
CallNative set_vehicle_custom_primary_colour 4 0
GetFrame1 VehicleHandle
GetFramep1 r
GetFramep1 g
GetFramep1 b
CallNative get_vehicle_custom_secondary_colour 4 0
//> hue right to left check
getframe1 r
pushb 255
cmpeq
GetFrame1 g
push_0
cmpeq
GetFrame1 b
push_0
cmpge
GetFrame1 b
pushb 255
cmplt
and
and
and
not
jumpfalse @colorchanger_inc_blue_secondary
GetFrame1 r
push_0
cmpgt
GetFrame1 r
pushb 255
cmple
GetFrame1 g
push_0
cmpeq
GetFrame1 b
pushb 255
cmpeq
and
and
and
not
jumpfalse @colorchanger_deinc_red_secondary
getframe1 r
push_0
cmpeq
GetFrame1 g
push_0
cmpge
GetFrame1 g
pushb 255
cmplt
GetFrame1 b
pushb 255
cmpeq
and
and
and
not
jumpfalse @colorchanger_inc_green_secondary
getframe1 r
push_0
cmpeq
GetFrame1 g
pushb 255
cmpeq
GetFrame1 b
push_0
cmpgt
GetFrame1 b
pushb 255
cmple
and
and
and
not
jumpfalse @colorchanger_deinc_blue_secondary
GetFrame1 r
push_0
cmpge
GetFrame1 r
pushb 255
cmplt
GetFrame1 g
pushb 255
cmpeq
GetFrame1 b
push_0
cmpeq
and
and
and
not
jumpfalse @colorchanger_inc_red_secondary
getframe1 r
pushb 255
cmpeq
GetFrame1 g
push_0
cmpgt
GetFrame1 g
pushb 255
cmple
GetFrame1 b
push_0
cmpeq
and
and
and
not
jumpfalse @colorchanger_deinc_green_secondary
//<
//> move current color to red to start
getframe1 r
pushb 255
jumpge @colorchanger_red_ok_secondary
getframe1 r
getframe1 Speed
add
setframe1 r
:colorchanger_red_ok_secondary
getframe1 g
push_0
jumple @colorchanger_green_ok_secondary
getframe1 g
getframe1 Speed
sub
setframe1 g
:colorchanger_green_ok_secondary
getframe1 b
push_0
jumple @colorchanger_set_color_secondary
getframe1 b
getframe1 Speed
sub
setframe1 b
jump @colorchanger_set_color_secondary
//<
//> hue left to right execute
:colorchanger_inc_green_secondary
getframe1 g
pushb 255
jumpge @colorchanger_set_color_secondary
getframe1 g
getframe1 Speed
add
setframe1 g
jump @colorchanger_set_color_secondary
:colorchanger_deinc_red_secondary
getframe1 r
push_0
jumple @colorchanger_set_color_secondary
getframe1 r
getframe1 Speed
sub
setframe1 r
jump @colorchanger_set_color_secondary
:colorchanger_inc_blue_secondary
getframe1 b
pushb 255
jumpge @colorchanger_set_color_secondary
getframe1 b
getframe1 Speed
add
setframe1 b
jump @colorchanger_set_color_secondary
:colorchanger_deinc_green_secondary
getframe1 g
push_0
jumple @colorchanger_set_color_secondary
getframe1 g
getframe1 Speed
sub
setframe1 g
jump @colorchanger_set_color_secondary
:colorchanger_inc_red_secondary
getframe1 r
pushb 255
jumpge @colorchanger_set_color_secondary
getframe1 r
getframe1 Speed
add
setframe1 r
jump @colorchanger_set_color_secondary
:colorchanger_deinc_blue_secondary
getframe1 b
push_0
jumple @colorchanger_set_color_secondary
getframe1 b
getframe1 Speed
sub
setframe1 b
jump @colorchanger_set_color_secondary
//<
:colorchanger_set_color_secondary
GetFrame1 VehicleHandle
GetFrame1 r
GetFrame1 g
GetFrame1 b
CallNative set_vehicle_custom_secondary_colour 4 0
GetFrame1 VehicleHandle
GetFramep1 r
GetFramep1 g
GetFramep1 b
CallNative get_vehicle_tyre_smoke_color 4 0
//> hue mid to left check
getframe1 r
push_0
cmpeq
GetFrame1 g
push_0
cmpgt
GetFrame1 g
pushb 255
cmple
GetFrame1 b
pushb 255
cmpeq
and
and
and
not
jumpfalse @colorchanger_deinc_green_tyre_smoke
GetFrame1 r
push_0
cmpge
GetFrame1 r
pushb 255
cmplt
GetFrame1 g
push_0
cmpeq
GetFrame1 b
pushb 255
cmpeq
and
and
and
not
jumpfalse @colorchanger_inc_red_tyre_smoke
getframe1 r
pushb 255
cmpeq
GetFrame1 g
push_0
cmpeq
GetFrame1 b
push_0
cmpgt
GetFrame1 b
pushb 255
cmple
and
and
and
not
jumpfalse @colorchanger_deinc_blue_tyre_smoke
getframe1 r
pushb 255
cmpeq
GetFrame1 g
push_0
cmpge
GetFrame1 g
pushb 255
cmplt
GetFrame1 b
push_0
cmpeq
and
and
and
not
jumpfalse @colorchanger_inc_green_tyre_smoke
GetFrame1 r
push_0
cmpgt
GetFrame1 r
pushb 255
cmple
GetFrame1 g
pushb 255
cmpeq
GetFrame1 b
push_0
cmpeq
and
and
and
not
jumpfalse @colorchanger_deinc_red_tyre_smoke
getframe1 r
push_0
cmpeq
GetFrame1 g
pushb 255
cmpeq
GetFrame1 b
push_0
cmpge
GetFrame1 b
pushb 255
cmplt
and
and
and
not
jumpfalse @colorchanger_inc_blue_tyre_smoke
//<
//> move current color to middle to start
getframe1 r
push_0
jumple @colorchanger_red_ok_tyre_smoke
getframe1 r
getframe1 Speed
sub
setframe1 r
:colorchanger_red_ok_tyre_smoke
getframe1 g
pushb 255
jumpge @colorchanger_green_ok_tyre_smoke
getframe1 g
getframe1 Speed
add
setframe1 g
:colorchanger_green_ok_tyre_smoke
getframe1 b
pushb 255
jumpge @colorchanger_set_color_tyre_smoke
getframe1 b
getframe1 Speed
add
setframe1 b
jump @colorchanger_set_color_tyre_smoke
//<
//> hue left to right execute
:colorchanger_inc_green_tyre_smoke
getframe1 g
pushb 255
jumpge @colorchanger_set_color_tyre_smoke
getframe1 g
getframe1 Speed
add
setframe1 g
jump @colorchanger_set_color_tyre_smoke
:colorchanger_deinc_red_tyre_smoke
getframe1 r
push_0
jumple @colorchanger_set_color_tyre_smoke
getframe1 r
getframe1 Speed
sub
setframe1 r
jump @colorchanger_set_color_tyre_smoke
:colorchanger_inc_blue_tyre_smoke
getframe1 b
pushb 255
jumpge @colorchanger_set_color_tyre_smoke
getframe1 b
getframe1 Speed
add
setframe1 b
jump @colorchanger_set_color_tyre_smoke
:colorchanger_deinc_green_tyre_smoke
getframe1 g
push_0
jumple @colorchanger_set_color_tyre_smoke
getframe1 g
getframe1 Speed
sub
setframe1 g
jump @colorchanger_set_color_tyre_smoke
:colorchanger_inc_red_tyre_smoke
getframe1 r
pushb 255
jumpge @colorchanger_set_color_tyre_smoke
getframe1 r
getframe1 Speed
add
setframe1 r
jump @colorchanger_set_color_tyre_smoke
:colorchanger_deinc_blue_tyre_smoke
getframe1 b
push_0
jumple @colorchanger_set_color_tyre_smoke
getframe1 b
getframe1 Speed
sub
setframe1 b
jump @colorchanger_set_color_tyre_smoke
//<
:colorchanger_set_color_tyre_smoke
GetFrame1 VehicleHandle
GetFrame1 r
GetFrame1 g
GetFrame1 b
CallNative set_vehicle_tyre_smoke_color 4 0
CallNative timera 0 1
Pushs 500
JumpLT @ExitChangeCarColor
Push_0
CallNative settimera 1 0
GetFrame1 VehicleHandle
Push_0
Push 160
CallNative get_random_int_in_range 2 1
Push_0
Push 160
CallNative get_random_int_in_range 2 1
CallNative set_vehicle_extra_colours 3 0
:ExitChangeCarColor
Return 0 0
//<
//> request control of entity no wait
:bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
Function 3 5
GetFrame1 2
jumpfalse @controlnotloopedonline
call @is_menu_loading
not
jumpfalse @end_bool_control_entity_id_no_wait
Push_0
SetStatic1 9//load loop inc
GetFrame1 1//jumptype
SetStatic1 28//saved jumptype for model loading
PushB 13//request control of entity all players
SetStatic1 27//type for model loading
Push_0
SetStatic1 35//model load loop extra parrams
jump @end_bool_control_entity_id_no_wait
:controlnotloopedonline
GetFrame1 0
CallNative does_entity_exist 1 1
not
jumpfalse @exists_request_control_no_wait
jump @end_bool_control_entity_id_no_wait
:exists_request_control_no_wait
GetFrame1 0
CallNative network_has_control_of_entity 1 1
JumpFalse @request_control_no_wait
Push_1
return 3 1
:request_control_no_wait
call @is_menu_loading
not
jumpfalse @end_bool_control_entity_id_no_wait
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_0
SetStatic1 9//load loop inc
GetFrame1 1//jumptype
SetStatic1 28//saved jumptype for model loading
PushB 12//request control of entity
SetStatic1 27//type for model loading
:end_bool_control_entity_id_no_wait
Push_0
return 3 1
//<
//> request control of entity
:bool_control_entity_id(int_entity)
Function 1 3
GetFrame1 0
CallNative does_entity_exist 1 1
Not
JumpFalse @GetControlStart
Push_0
return 1 1
:GetControlStart
GetFrame1 0
CallNative network_has_control_of_entity 1 1
not
JumpFalse @returncontroltrue
Push_0//start loop index
SetFrame1 3
:GetControlLoop
Push_0
CallNative wait 1 0
GetFrame1 3
PushB 50
JumpGT @GetControlTimeout
GetFrame1 3
Add1 1
SetFrame1 3
GetFrame1 0
CallNative network_request_control_of_entity 1 1
drop
GetFrame1 0
CallNative network_has_control_of_entity 1 1
JumpFalse @GetControlLoop
:returncontroltrue
Push_1
return 1 1
:GetControlTimeout
pushstring "~r~Error:~s~ Unable to request control of entity."
pushs 5000
call @print(string text,int ms)
Push_0
return 1 1
//<
//> request control of entity looped
:bool_control_entity_id_looped(int_entity)
Function 1 3
GetFrame1 0
CallNative does_entity_exist 1 1
JumpFalse @returnrequestcontrol0
GetFrame1 0
CallNative network_has_control_of_entity 1 1
not
JumpFalse @returnrequestcontrol1
GetFrame1 0
CallNative network_request_control_of_entity 1 1
drop
GetFrame1 0
CallNative network_has_control_of_entity 1 1
return 1 1
:returnrequestcontrol1
Push_1
return 1 1
:returnrequestcontrol0
Push_0
return 1 1
//<
//> change player model
:Change_Player_Model(int modelhash)
Function 1 7
GetFrame1 0
CallNative is_model_in_cdimage 1 1
jumpfalse @error_Change_Player_Model
//> modelchanger freeze check
GetFrame1 0
push GetHash("A_C_Chickenhawk")
cmpeq
GetFrame1 0
push GetHash("A_C_Cormorant")
cmpeq
or
GetFrame1 0
push GetHash("A_C_Cow")
cmpeq
GetFrame1 0
push GetHash("A_C_Crow")
cmpeq
or
or
GetFrame1 0
push GetHash("A_C_Deer")
cmpeq
GetFrame1 0
push GetHash("A_C_Fish")
cmpeq
or
or
GetFrame1 0
push GetHash("A_C_Hen")
cmpeq
GetFrame1 0
push GetHash("A_C_Pigeon")
cmpeq
or
or
GetFrame1 0
push GetHash("A_C_Rat")
cmpeq
GetFrame1 0
push GetHash("A_C_Seagull")
cmpeq
or
or
GetFrame1 0
push GetHash("A_C_SharkTiger")
cmpeq
GetFrame1 0
push GetHash("A_M_Y_Hippy_01")
cmpeq
or
or
GetFrame1 0
push GetHash("A_F_Y_Hippie_01")
cmpeq
GetFrame1 0
push GetHash("U_M_Y_Hippie_01")
cmpeq
or
or
jumpfalse @continuemodelchanger
:isfmodel
call @disable_game_controls_this_frame
pushstring "~y~Warning:~s~ This model is known to freeze."
pushstring "Do you want to continue?~n~~g~A~s~-Continue ~r~B~s~-Cancel"
pushs 10
call @print_two(string text1,string text2,int ms)
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
not
JumpFalse @continuemodelchanger
Push_2
push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative is_disabled_control_just_pressed 2 1
Not
JumpFalse @error_Change_Player_Model
Push_0
callnative wait 1 0
jump @isfmodel
:continuemodelchanger
//<
CallNative get_gameplay_cam_relative_heading 0 1
SetFrame1 5
CallNative get_gameplay_cam_relative_pitch 0 1
SetFrame1 6
call @get_current_weapon_hash
SetFrame1 7
call @are_you_in_veh_if_so_get_handle
SetFrame1 3
CallNative player_id 0 1
GetFrame1 0
CallNative set_player_model 2 0
GetFrame1 0
CallNative set_model_as_no_longer_needed 1 0
GetFrame1 0
push GetHash("MP_F_Freemode_01")
cmpeq
GetFrame1 0
push GetHash("MP_M_Freemode_01")
cmpeq
or
GetFrame1 0
push GetHash("S_M_M_MovAlien_01")
cmpeq
GetFrame1 0
push GetHash("A_M_Y_Hippy_01")
cmpeq
or
or
GetFrame1 0
push GetHash("player_zero")
cmpeq
GetFrame1 0
push GetHash("player_one")
cmpeq
or
or
GetFrame1 0
push GetHash("player_two")
cmpeq
or
not
jumpfalse @skiprandcomp
CallNative player_ped_id 0 1
dup
CallNative set_ped_random_props 1 0
Push_0
CallNative set_ped_random_component_variation 2 0
:skiprandcomp
GetFrame1 3
jumpfalse @set_cam_heading_back
GetFrame1 3
call @FindFreeCarSeat
SetFrame1 4
GetFrame1 4
push -2
jumpeq @set_cam_heading_back
CallNative player_ped_id 0 1
GetFrame1 3
GetFrame1 4
CallNative set_ped_into_vehicle 3 0
:set_cam_heading_back
GetFrame1 5
CallNative set_gameplay_cam_relative_heading 1 0
GetFrame1 6
PushF_0
CallNative set_gameplay_cam_relative_pitch 2 0
call @give_all_normal_weapons_to_your_ped
call @give_all_dlc_weapons_to_your_ped
CallNative player_ped_id 0 1
GetFrame1 7
Push_1
CallNative set_current_ped_weapon 3 0
:error_Change_Player_Model
Return 1 0
//<
//> spawn online object no wait
:Change_Player_Model_no_wait(int model,jumptype)
Function 2 7
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @request_player_model
GetFrame1 0
call @Change_Player_Model(int modelhash)
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_1
return 2 1
:request_player_model
call @is_menu_loading
not
jumpfalse @end_Change_Player_Model_no_wait
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_0
SetStatic1 9//load loop inc
GetFrame1 1//jumptype
SetStatic1 28//saved jumptype for model loading
Push_2//player models
SetStatic1 27//type for model loading
:end_Change_Player_Model_no_wait
Push_0
return 2 1
//<
//> get vehicle functions
:is_online_ped_in_vehicle_if_so_get_handle
Function 0 2
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
not
jumpfalse @getonlineveh
pushstring "~r~Error:~s~ Player not in vehicle."
pushs 5000
call @print(string text,int ms)
Push_0
return 0 1
:getonlineveh
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_0
CallNative get_vehicle_ped_is_in 2 1
Return 0 1
:are_you_in_veh_if_so_get_handle
Function 0 2
CallNative player_ped_id 0 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
not
jumpfalse @getyourveh
Push_0
return 0 1
:getyourveh
CallNative player_ped_id 0 1
Push_0
CallNative get_vehicle_ped_is_in 2 1
Return 0 1
//<
//> give weapons
:give_weapon_to_online_ped(int_hash)
Function 1 3
GetStatic1 10//player id
CallNative get_player_ped 1 1
GetFrame1 0
Pushs 9999
Push_1
Push_1
CallNative give_weapon_to_ped 5 0
Return 1 0
:give_weapon_to_your_ped(int_hash)
Function 1 3
CallNative player_ped_id 0 1
GetFrame1 0
Pushs 9999
Push_1
Push_1
CallNative give_weapon_to_ped 5 0
Return 1 0
//<
//> all player loop
:bool_can_continue_all_player_loop
Function 0 20
:skipplayer
GetStatic1 10//player loop index
add1 1
SetStatic1 10//player loop index
GetStatic1 10//player loop index
PushB 15
jumpgt @endplayerloop
GetStatic1 10//player loop index
call @bool_is_player_in_game(playerindex)
jumpfalse @skipplayer
GetStatic1 1//last selected of item level two
Push_2//online player weapon options
jumpne @continue_bool_can_continue_all_player_loop
//2 give all normal weapons
//3 give all dlc weapons
//5 give stungun
//6 give health
//7 give armor
GetStatic1 34// = last selected of item level three
switch [2 @ok_is_good_loop]:[3 @ok_is_good_loop]:[5 @ok_is_good_loop]:[6 @ok_is_good_loop]:[7 @ok_is_good_loop]
:continue_bool_can_continue_all_player_loop
//GetStatic1 10//player loop index
//CallNative player_id 0 1
//jumpeq @skipplayer
GetStatic1 10//player loop index
pushstring "Native Function"
pushstring "Nayjames123"
pushstring "The Stickie Mod"
pushstring "aTk Pirate V2"
pushstring "MachineGun Mack"
pushstring "Scripting Mods"
pushstring "PraiseTheOpcode"
pushstring "Almighty Opcode"
pushstring "Almighty 0pCode"
pushstring "Rockstar Game03"
pushstring "The Smooth Mod"
call @whitelistcheck
jumpfalse @skipplayer
GetStatic1 10//player loop index
call @is_player_a_friend(playerid)
not
jumpfalse @skipplayer
:ok_is_good_loop
GetStaticP1 36
GetStatic1 10//player loop index
CallNative set_bit 2 0
Push_1
return 0 1
:endplayerloop
Push_0
return 0 1
:whitelistcheck
Function 12 20
Push_0
SetStatic1 100
:nextpraminwl
GetFrame1 0
CallNative get_player_name 1 1
GetFrameP1 1
GetStatic1 100
GetImmP
pget
CallNative are_strings_equal 2 1
not
jumpfalse @playerischecked
GetStatic1 100
Push_1
add
SetStatic1 100
GetStatic1 100
PushB 11
jumplt @nextpraminwl
Push_1
return 12 1
:playerischecked
Push_0
return 12 1
//<
//> is player in game
:bool_is_player_in_game(playerindex)
Function 1 3
GetFrame1 0
CallNative network_is_player_active 1 1
GetFrame1 0
CallNative get_player_ped 1 1
CallNative does_entity_exist 1 1
and
return 1 1
//<
//> teleport your player
:teleport_your_player(float_x,float_y,float_z)
Function 3 5
call @are_you_in_veh_if_so_get_handle
jumpfalse @playernotinvehstatic
call @are_you_in_veh_if_so_get_handle
call @bool_control_entity_id(int_entity)
drop
call @are_you_in_veh_if_so_get_handle
GetFrame1 0
GetFrame1 1
GetFrame1 2
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
return 3 0
:playernotinvehstatic
CallNative player_ped_id 0 1
GetFrame1 0
GetFrame1 1
GetFrame1 2
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
return 3 0
//<
//> teleport online player
:teleport_online_vehicle(x,y,z,entity,print)
Function 5 7
GetFrame1 3
CallNative is_entity_a_vehicle 1 1
jumpfalse @teleportonlineplayeronfoot
GetFrame1 3
call @bool_control_entity_id(int_entity)
jumpfalse @endteleport_online_entity
GetFrame1 3
GetFrame1 0
GetFrame1 1
GetFrame1 2
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
:endteleport_online_entity
return 5 0
:teleportonlineplayeronfoot
getframe1 4
jumpfalse @endteleport_online_entity
pushstring "~r~Error:~s~ Player not in vehicle."
pushs 5000
call @print(string text,int ms)
return 5 0
//<
//> request ipl
:request_ipl(string_ipl)
Function 1 3
GetFrame1 0
CallNative is_ipl_active 1 1
Not
JumpFalse @end_request_ipl
GetFrame1 0
CallNative request_ipl 1 0
:end_request_ipl
return 1 0
:request_concat_ipl
Function 2 4
GetFrame1 0
GetFrame1 1
Call @string strcat(string source,string toadd)
Call @request_ipl(string_ipl)
return 2 0
//<
//> get_coord_in_front
:get_coord_in_front(int entity,float range)
Function 2 10
GetFrame1 0
CallNative get_entity_heading 1 1
SetFrame1 4
GetFrame1 0
Push_1
CallNative get_entity_coords 2 3
SetFrame1 7//z
SetFrame1 6//y
SetFrame1 5//x
PushF_-1
GetFrame1 4//heading
fmult
CallNative sin 1 1
GetFrame1 1//range
fmult
GetFrame1 5//x
fadd
SetFrame1 5
PushF_-1
GetFrame1 4//heading
fmult
CallNative cos 1 1
GetFrame1 1//range
fmult
GetFrame1 6//y
fadd
SetFrame1 6
GetFrame1 5//x
GetFrame1 6//y
GetFrame1 7//z
return 2 3
//<
//> teleport into player veh
:TeleportSelfIntoPlayersVehicle(int_playerid)
Function 1 5
GetFrame1 0
CallNative get_player_ped 1 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
JumpFalse @TeleportSelfIntoPlayersVehicle_Exit
GetFrame1 0
CallNative get_player_ped 1 1
Push_0
CallNative get_vehicle_ped_is_in 2 1
dup
SetFrame1 3
Call @FindFreeCarSeat
dup
SetFrame1 4
Push -2
Jumpeq @TeleportSelfIntoPlayersVehicle_Exit
CallNative player_ped_id 0 1
GetFrame1 3//vehicle
GetFrame1 4//seat
CallNative set_ped_into_vehicle 3 0
:TeleportSelfIntoPlayersVehicle_Exit
Return 1 0
//<
//> find free car seat
:FindFreeCarSeat
Function 1 5
GetFrame1 0
CallNative get_vehicle_max_number_of_passengers 1 1
SetFrame1 4
Push_-1
SetFrame1 3
:FindFreeCarSeat_loop
GetFrame1 3
GetFrame1 4
JumpGE @FindFreeCarSear_end
GetFrame1 0
GetFrame1 3
CallNative is_vehicle_seat_free 2 1
JumpFalse @FindFreeCarSeat_iter
GetFrame1 3
return 1 1
:FindFreeCarSeat_iter
GetFrame1 3
Add1 1
SetFrame1 3
Jump @FindFreeCarSeat_loop
:FindFreeCarSear_end
pushstring "~r~Error:~s~ No free car seat found."
pushs 5000
call @print(string text,int ms)
Push -2
return 1 1
//<
//> get closest vehicle
:get_closest_vehicle(ped_id)
Function 1 16
GetFrame1 0
Push_7//cars
call @get_close_veh(ped,flag)
Push_2
GetFrameP1 4
FromStack
GetFrame1 0
pushi24 60000//planes
call @get_close_veh(ped,flag)
Push_2
GetFrameP1 6
FromStack
GetFrame1 0
pushi24 70000//helis
call @get_close_veh(ped,flag)
Push_2
GetFrameP1 8
FromStack
GetFrame1 0
pushi24 80000//boats
call @get_close_veh(ped,flag)
Push_2
GetFrameP1 10
FromStack
GetFrame1 4
GetFrame1 6//
fcmplt
jumpfalse @cplane
GetFrameP1 4
jump @closeh
:cplane
GetFrameP1 6//
:closeh
dup
pget
GetFrame1 8//
fcmpgt
jumpfalse @closeb
drop
GetFrameP1 8//
:closeb
dup
pget
GetFrame1 10
fcmpgt
jumpfalse @found_close
drop
GetFrameP1 10
:found_close
GetImm1 1
:get_closest_car
dup
CallNative does_entity_exist 1 1
jumpfalse @end_get_closest_vehicle
return 1 1
:end_get_closest_vehicle
drop
Push_0
return 1 1
:get_close_veh(ped,flag)
Function 2 9
GetFrame1 0
Push_0
CallNative get_entity_coords 2 3
Push_3
GetFrameP1 4
FromStack
Push_3
GetFrameP1 4
toStack
PushF 300.0
Push_0//to specify a veh hash to find
GetFrame1 1//[0,4,7 = same],[67711 = bad] tryed //60000,16386 = planes, 70000 = heli, 80000,9000 = boats, 7 = personal ,emergency and ped cars and bikes , pedal bike7 ,quad3 ,Special5
//bitset
//5 6 = personal , ped cars and bikes , pedal bike7 ,quad3 ,Special5
//7 = emergency
//9 = planes
//10 = boats
CallNative get_closest_vehicle 6 1
SetFrame1 7
GetFrame1 7
CallNative does_entity_exist 1 1
jumpfalse @noclosecar
GetFrame1 7
Push_0
CallNative get_entity_coords 2 3
Push_3
GetFrameP1 4
toStack
CallNative vdist 6 1
GetFrame1 7
return 2 2
:noclosecar
PushF 100000
Push_0
return 2 2
//<
//> load anim dict no wait
:PlayAnimation_no_wait(AnimDir,AnimName,pedid,animflag,jumptype,isonline)
Function 6 8
GetFrame1 0
CallNative has_anim_dict_loaded 1 1
jumpfalse @request_playanim
Push_4
GetFrameP1 0
tostack
call @PlayAnimation(AnimDir,AnimName,pedid,animflag)
Push_1
return 6 1
:request_playanim
call @is_menu_loading
not
jumpfalse @end_PlayAnimation_no_wait
GetFrame1 0
GetStaticP2 315//256 char text array
strcopy 248
GetFrame1 1
GetStaticP2 613//text array
strcopy 64
Push_2
GetFrameP1 2
tostack
Push_2
GetStaticP1 35//load loop extra parrams
fromstack
Push_0
SetStatic1 9//load loop inc
GetFrame1 4//jumptype
SetStatic1 28//saved jumptype for model loading
GetFrame1 5//isonline
jumpfalse @play_anim_not_online
PushB 11//play online anim
SetStatic1 27//type for model loading
jump @end_PlayAnimation_no_wait
:play_anim_not_online
PushB 10//play anim
SetStatic1 27//type for model loading
:end_PlayAnimation_no_wait
Push_0
return 6 1
//<
//> play animation
:PlayAnimation(AnimDir,AnimName,pedid,animflag)
Function 4 6
GetFrame1 0
CallNative has_anim_dict_loaded 1 1
jumpfalse @endanim
GetFrame1 2//ped
GetFrame1 0//dictionary
GetFrame1 1//anim name
PushF 8.0//speed
PushF_0
Push_-1
GetFrame1 3//anim flag:was 9
Push_0
Push_0
Push_0
Push_0
CallNative task_play_anim 11 0
GetFrame1 0
CallNative remove_anim_dict 1 0
:endanim
Return 4 0
//<
//> is player in vehicle far check
:is_player_in_vehicle_teleport(playerid)
Function 1 9
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 0.5
fadd
SetFrame1 5//player z
SetFrame1 4//player y
SetFrame1 3//player x
GetFrame1 0
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
SetFrame1 8//online player z
SetFrame1 7//online player y
SetFrame1 6//online player x
GetFrame1 3
GetFrame1 4
GetFrame1 5
GetFrame1 6
GetFrame1 7
GetFrame1 8
Push_1
CallNative get_distance_between_coords 7 1
PushF 255.0
jumplt @playerisclose
GetFrame1 6
GetFrame1 7
GetFrame1 8
call @teleport_your_player(float_x,float_y,float_z)
pushs 2000
CallNative wait 1 0
:playerisclose
call @is_online_ped_in_vehicle_if_so_get_handle
jumpfalse @is_not_in_veh2
Push_1
return 1 1
:is_not_in_veh
GetFrame1 3
GetFrame1 4
GetFrame1 5
call @teleport_your_player(float_x,float_y,float_z)
:is_not_in_veh2
Push_0
return 1 1
//<
//> load anim dict
:load_animdict(string dict)
Function 1 6
GetFrame1 0
CallNative has_anim_dict_loaded 1 1
jumpfalse @start_load_animdict
Push_1
return 1 1
:start_load_animdict
GetFrame1 0
CallNative request_anim_dict 1 0
Push_0
return 1 1
//<
//> load anim dict no wait
:load_animdict_no_wait(string dict,jumptype)
Function 2 7
GetFrame1 0
CallNative has_anim_dict_loaded 1 1
jumpfalse @request_animdict
GetFrame1 0
GetStaticP2 315//256 char text array
strcopy 248
Push_1
return 2 1
:request_animdict
call @is_menu_loading
not
jumpfalse @end_load_animdict_no_wait
GetFrame1 0
GetStaticP2 315//256 char text array
strcopy 248
Push_0
SetStatic1 9//load loop inc
GetFrame1 1//jumptype
SetStatic1 28//saved jumptype for model loading
PushB 9//load anim dict
SetStatic1 27//type for model loading
:end_load_animdict_no_wait
Push_0
return 2 1
//<
//> load_anim_set
:load_anim_set(string_groupname)
Function 1 3
GetFrame1 0
CallNative has_anim_set_loaded 1 1
JumpFalse @end_load_anim_set
Push_1
Return 1 1
:end_load_anim_set
GetFrame1 0
CallNative request_anim_set 1 0
Push_0
Return 1 1
//<
//> set_ped_movement_clipset_no_wait
:set_ped_movement_clipset_no_wait(string animset)
Function 1 7
GetFrame1 0
CallNative has_anim_set_loaded 1 1
JumpFalse @request_anim_set_for_set_ped_movement_clipset
CallNative player_ped_id 0 1
GetFrame1 0
Push 1048576000
CallNative set_ped_movement_clipset 3 0
jump @end_set_ped_movement_clipset_no_wait
:request_anim_set_for_set_ped_movement_clipset
call @is_menu_loading
not
jumpfalse @end_set_ped_movement_clipset_no_wait
GetFrame1 0
GetStaticP2 315//256 char text array
strcopy 248
Push_0
SetStatic1 28//saved jumptype for model loading
PushB 8//set_ped_movement_clipset
SetStatic1 27//type for model loading
Push_0
SetStatic1 9//load loop inc
:end_set_ped_movement_clipset_no_wait
return 1 0
//<
//> set self ammo as max ammo
:set_self_ammo_as_max_ammo
Function 0 4
call @get_current_weapon_hash
SetFrame1 2
CallNative player_ped_id 0 1
GetFrame1 2
CallNative player_ped_id 0 1
GetFrame1 2
Push_1
CallNative get_max_ammo_in_clip 3 1
CallNative set_ammo_in_clip 3 1
drop
CallNative player_ped_id 0 1
GetFrame1 2
pushs 9999
callnative set_ped_ammo 3 0
CallNative player_ped_id 0 1
CallNative is_ped_shooting 1 1
jumpfalse @endrapidf
GetFrame1 2
push GetHash("WEAPON_STUNGUN")
cmpeq
GetFrame1 2
push GetHash("WEAPON_PASSENGER_ROCKET")
cmpeq
or
GetFrame1 2
push GetHash("WEAPON_STINGER")
cmpeq
GetFrame1 2
push GetHash("WEAPON_RPG")
cmpeq
or
or
GetFrame1 2
push GetHash("WEAPON_FIREWORK")
cmpeq
GetFrame1 2
push GetHash("WEAPON_HOMINGLAUNCHER")
cmpeq
or
or
jumpfalse @endrapidf
CallNative player_ped_id 0 1
push GetHash("WEAPON_PISTOL")
Push_1
CallNative set_current_ped_weapon 3 0
CallNative player_ped_id 0 1
GetFrame1 2
Push_1
CallNative set_current_ped_weapon 3 0
:endrapidf
return 0 0
//<
//> draw xyz coords
:draw_xyz_coords(x,y,z,h,ch,cp)
Function 6 30
Push_0
SetFrame1 8
PushF 0.8150//start y
SetFrame1 9
:reloop_draw_xyz_coords
GetFrame1 8
Push_6
jumpge @end_draw_xyz_coords
GetFrameP1 0
GetFrame1 8
GetImmP
pget
GetFrame1 8
itof
PushF 0.03//spacing
fmult
GetFrame1 9
fadd
GetFrame1 8
call @drawxzyh(float val,float y,current)
GetFrame1 8
add1 1
SetFrame1 8
jump @reloop_draw_xyz_coords
:end_draw_xyz_coords
Return 6 0
:drawxzyh(float val,float y,current)
Function 3 5
Push GetEnum("Chalet-LondonNineteenSixty")
PushF_1
PushF 0.35
Push_0
Push_0
Push_0
Push_1
GetStaticP1 240
PushB 15//info txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 16//info txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 17//info txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetFrame1 0
push_4
call @float_to_string(float num,int precision_level)
getframe1 2
switch [0 @xcoordtext]:[1 @ycoordtext]:[2 @zcoordtext]:[3 @hcoordtext]:[4 @cxcoordtext]:[5 @cycoordtext]
:xcoordtext
pushstring "X: -000000.0000"
add1 3
strcopy 13
pushstring "X: -000000.0000"
jump @displayxyzhcxcy
:ycoordtext
pushstring "Y: -000000.0000"
add1 3
strcopy 13
pushstring "Y: -000000.0000"
jump @displayxyzhcxcy
:zcoordtext
pushstring "Z: -000000.0000"
add1 3
strcopy 13
pushstring "Z: -000000.0000"
jump @displayxyzhcxcy
:hcoordtext
pushstring "H: -000000.0000"
add1 3
strcopy 13
pushstring "H: -000000.0000"
jump @displayxyzhcxcy
:cxcoordtext
pushstring "CX: -000000.0000"
add1 4
strcopy 13
pushstring "CX: -000000.0000"
jump @displayxyzhcxcy
:cycoordtext
pushstring "CY: -000000.0000"
add1 4
strcopy 13
pushstring "CY: -000000.0000"
:displayxyzhcxcy
push_2//xyz
call @get_info_text_x_axis
GetFrame1 1
push_0//isgxt
call @display_text(string_text,float_x,float_y,bool IsGtxText)
return 3 0
//<
//> add items
//> add item
:add_item(string item)
Function 1 5
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 11//index for array drawing menu text++
GetStatic1 13//menu max item count
jumpgt @skpitemtype//if add item item = over 25 skip menu type
Push_0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
:skpitemtype
GetStatic1 11
add1 1
SetStatic1 11
return 1 0
//<
//> add number
:add_number(string item,int maxval,int minval,int startindex)
Function 4 6
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 3//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 90
GetStatic1 11
CallNative is_bit_set 2 1
jumpfalse @numberset
GetStaticP1 90
GetStatic1 11
CallNative clear_bit 2 0
:numberset
GetStatic1 11
add1 1
SetStatic1 11
return 4 0
//<
//> add auto number
:add_autonumber(string item,int maxval,int minval,int startindex)
Function 4 6
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 3//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 90
GetStatic1 11
CallNative is_bit_set 2 1
not
jumpfalse @autonumberset
GetStaticP1 90
GetStatic1 11
CallNative set_bit 2 0
:autonumberset
GetStatic1 11
add1 1
SetStatic1 11
return 4 0
//<
//> add float
:add_float(string item,float maxval,float minval,float startindex)
Function 4 6
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 3//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 90
GetStatic1 11
CallNative is_bit_set 2 1
jumpfalse @floatset
GetStaticP1 90
GetStatic1 11
CallNative clear_bit 2 0
:floatset
GetStatic1 11
add1 1
SetStatic1 11
return 4 0
//<
//> add auto float
:add_autofloat(string item,float maxval,float minval,float startindex)
Function 4 6
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 3//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 90
GetStatic1 11
CallNative is_bit_set 2 1
not
jumpfalse @autofloatset
GetStaticP1 90
GetStatic1 11
CallNative set_bit 2 0
:autofloatset
GetStatic1 11
add1 1
SetStatic1 11
return 4 0
//<
//> add enum toggle
:add_toggle_enum(string itemon,string itemoff,bool item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Function 8 10
GetFrame1 2
jumpfalse @enumtoggleboolOff
GetFrame1 0
jump @enumtoggleboolOn
:enumtoggleboolOff
GetFrame1 1
:enumtoggleboolOn
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 3
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 4
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 5//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_3
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStaticP1 232//enum menu vals
GetStatic1 11
GetFrame1 6
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetFrame1 7
jumpfalse @toggleenumcleared
GetStaticP1 90//bit set for auto execute left right
GetStatic1 11
CallNative set_bit 2 0
jump @toggleenumset
:toggleenumcleared
GetStaticP1 90//bit set for auto execute left right
GetStatic1 11
CallNative clear_bit 2 0
:toggleenumset
GetStatic1 11
add1 1
SetStatic1 11
return 8 0
//<
//> add enum
:add_enum(string item,int maxval,int minval,int startindex,byte enumval,bool isauto)
Function 6 10
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 3//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_3
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStaticP1 232//enum menu vals
GetStatic1 11
GetFrame1 4
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetFrame1 5
jumpfalse @enumcleared
GetStaticP1 90//bit set for auto execute left right
GetStatic1 11
CallNative set_bit 2 0
jump @enumset
:enumcleared
GetStaticP1 90//bit set for auto execute left right
GetStatic1 11
CallNative clear_bit 2 0
:enumset
GetStatic1 11
add1 1
SetStatic1 11
return 6 0
//<
//> add toggle
:add_toggle(string itemon,string itemoff,bool item)
Function 3 5
Push_0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetFrame1 2
jumpfalse @toggleboolOff
GetFrame1 0
jump @toggleboolOn
:toggleboolOff
GetFrame1 1
:toggleboolOn
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetStatic1 11
add1 1
SetStatic1 11
return 3 0
//<
//> add toggle auto number
:add_toggle_autonumber(string itemon,string itemoff,bool item,int maxval,int minval,int startindex)
Function 6 15
GetFrame1 2
jumpfalse @numtoggleboolOff
GetFrame1 0
jump @numtoggleboolOn
:numtoggleboolOff
GetFrame1 1
:numtoggleboolOn
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 3
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 4
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 137//static var to hold minval array
SetArray1 1//setting the array
GetFrame1 5//starting number
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
GetStatic1 11
Push_0
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 90
GetStatic1 11
CallNative is_bit_set 2 1
not
jumpfalse @autotogglenumberset
GetStaticP1 90
GetStatic1 11
CallNative set_bit 2 0
:autotogglenumberset
GetStatic1 11
add1 1
SetStatic1 11
return 6 0
//<
//> add veh mod
:add_veh_mod
Function 1 3
GetStatic1 100
jumpfalse @novehforvehmod
GetFrame1 0
call @vehicle_mod_to_num
SetStatic1 101
GetStatic1 100
GetStatic1 101
CallNative get_num_vehicle_mods 2 1
dup
SetFrame1 3
Push_0
jumpgt @hasvehmods
:novehforvehmod
return 1 0
:hasvehmods
GetFrame1 0//string
GetFrame1 3//maxval
Push_0//minval
GetStatic1 100
GetStatic1 101
CallNative get_vehicle_mod 2 1
add1 1//0 = remove
call @add_autonumber(string item,int maxval,int minval,int startindex)
return 1 0
//<
//> add veh toggle
:add_veh_toggle
Function 2 4
GetStatic1 100
jumpfalse @novehforvehtog
GetFrame1 0
GetFrame1 1
GetStatic1 100
GetFrame1 0
call @vehicle_mod_to_num
CallNative is_toggle_mod_on 2 1
call @add_toggle(string itemon,string itemoff,bool item)
return 2 0
:novehforvehtog
GetFrame1 0
GetFrame1 1
Push_0
call @add_toggle(string itemon,string itemoff,bool item)
return 2 0
//<
//> add ped prop
:add_ped_prop
Function 1 3
CallNative player_ped_id 0 1
GetStatic1 105//component
CallNative get_number_of_ped_prop_drawable_variations 2 1
SetFrame1 3
GetStatic1 105
add1 1
SetStatic1 105
GetFrame1 3
Push_0
jumpgt @haspedprops
return 1 0
:haspedprops
GetStatic1 105//starting number
Push_1
sub
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_1//prop = type 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 0//string
call @add_item(string item)
return 1 0
//<
//> add ped component
:add_ped_component
Function 1 3
CallNative player_ped_id 0 1
GetStatic1 105//component
CallNative get_number_of_ped_drawable_variations 2 1
SetFrame1 3
GetStatic1 105
add1 1
SetStatic1 105
GetFrame1 3
Push_0
jumpgt @haspedcomponents
return 1 0
:haspedcomponents
GetStatic1 105//starting number
Push_1
sub
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
Push_2//component = type 2
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 110//static var to hold maxval array
SetArray1 1//setting the array
GetFrame1 0//string
call @add_item(string item)
return 1 0
//<
//> add item with hash
:add_item_with_hash(string item,int vehhash)
Function 2 5
GetFrame1 1//vehhash
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
GetFrame1 0//string
call @add_item(string item)
return 2 0
//<
//> add_veh_with_model_name
:add_veh_with_model_name(int vehhash)
Function 1 5
GetFrame1 0
callnative get_display_name_from_vehicle_model 1 1
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetFrame1 0//vehhash
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 511//static var to hold incremented number
SetArray1 1//setting the array
GetStatic1 11
Push_1
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 11//index for array drawing menu text++
GetStatic1 13//menu max item count
jumpgt @skpitemtypevm//if add item item = over 25 skip menu type
Push_0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
:skpitemtypevm
GetStatic1 11
add1 1
SetStatic1 11
return 1 0
//<
//> add_gxt_item
:add_gxt_item(string)
Function 1 5
GetFrame1 0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP2 379//static var to hold text array
SetArray1 1//setting the array
GetStatic1 11
Push_1
call @set_gxt_text_from_menu_item(int item,bool set)
GetStatic1 11//index for array drawing menu text++
GetStatic1 13//menu max item count
jumpgt @skpitemtypegxt//if add item item = over 25 skip menu type
Push_0
GetStatic1 11//index of the array to store whats at the top of the stack
GetStaticP1 164//static var to hold menu type
SetArray1 1//setting the array
:skpitemtypegxt
GetStatic1 11
add1 1
SetStatic1 11
return 1 0
//<
//<
//> get_input_from_onscreen_keyboard
:string get_input_from_onscreen_keyboard(int maxcharcount)
Function 1 5
Push_0//lang
pushstring ""//gxt title text
pushstring ""//?
pushstring ""//starting text
pushstring ""//
pushstring ""//?
pushstring ""//?
GetFrame1 0//max char count
add1 1
CallNative display_onscreen_keyboard 8 0
PushB 30//wait for system ui
CallNative wait 1 0
:inputloop
Push_0
CallNative wait 1 0
CallNative is_system_ui_being_displayed 0 1
jumpfalse @returninput
jump @inputloop
:returninput
CallNative get_onscreen_keyboard_result 0 1
return 1 1
//<
//> get_input_from_onscreen_keyboard
:string get_input_from_onscreen_keyboard_with_title(title,int maxcharcount)
Function 2 5
Push_0//lang
GetFrame1 0//max char count//gxt title text
pushstring ""//?
pushstring ""//starting text
pushstring ""//
pushstring ""//?
pushstring ""//?
GetFrame1 1//max char count
add1 1
CallNative display_onscreen_keyboard 8 0
PushB 30//wait for system ui
CallNative wait 1 0
:inputlooptitle
Push_0
CallNative wait 1 0
CallNative is_system_ui_being_displayed 0 1
jumpfalse @returninputtitle
jump @inputlooptitle
:returninputtitle
CallNative get_onscreen_keyboard_result 0 1
return 2 1
//<
//> print
:print(string text,int ms)
Function 2 3
//CallNative clear_prints 0 0
PushString "STRING"
CallNative _set_text_entry_2 1 0
GetFrame1 0
CallNative _add_text_component_string 1 0
GetFrame1 1
Push_1
CallNative _draw_subtitle_timed 2 0
Return 2 0
:print_two(string text1,string text2,int ms)
Function 3 4
PushString "TWOSTRINGS"//~a~ ~a~
CallNative _set_text_entry_2 1 0
GetFrame1 0
CallNative _add_text_component_string 1 0
GetFrame1 1
CallNative _add_text_component_string 1 0
GetFrame1 2
Push_1
CallNative _draw_subtitle_timed 2 0
Return 3 0
:print_int(int number,int ms)
Function 2 3
PushString "NUMBER"
CallNative _set_text_entry_2 1 0
GetFrame1 0
CallNative add_text_component_integer 1 0
GetFrame1 1
Push_1
CallNative _draw_subtitle_timed 2 0
Return 2 0
:print_float(float number,int ms)
Function 2 3
PushString "NUMBER"
CallNative _set_text_entry_2 1 0
GetFrame1 0
Push_7
CallNative add_text_component_float 2 0
GetFrame1 1
Push_1
CallNative _draw_subtitle_timed 2 0
Return 2 0
:int_to_string
Function 1 10//5
GetFrame1 0
GetStaticP1 245
itos 16
GetStaticP1 245
Return 1 1
:bool printfalse(bool to_print,string text,int ms)
Function 3 3
GetFrame1 0
not
jumpfalse @endprintfalse
GetFrame1 1
GetFrame1 2
call @print(string text,int ms)
:endprintfalse
GetFrame1 0
Return 3 1
:print_notification(string text)
Function 1 4
PushString "STRING"
CallNative _set_notification_text_entry 1 0
GetFrame1 0
CallNative _add_text_component_string 1 0
Push_0
Push_1
CallNative _draw_notification 2 1
drop
Return 1 0
:print_help(string,beep,shape)
Function 3 3
PushString "STRING"
CallNative _set_text_component_format 1 0
GetFrame1 0
CallNative _add_text_component_string 1 0
push_0
push_0
GetFrame1 1
GetFrame1 2
CallNative _display_help_text_from_string_label 4 0
Return 3 0
//<
//> strcat
:string strcat(string source,string toadd)
Function 2 34
GetFrame1 0//gets source string
GetStaticP1 245//sets var to string
StrCopy 64//copys source string to var with max of 63 bytes
GetFrame1 1//gets secondary string
GetStaticP1 245//gets var to string
StrAdd 64//adds secondary string to var
GetStaticP1 245
return 2 1
:string strcat2(string source,string toadd)
Function 2 34
GetFrame1 0//gets source string
GetStaticP2 262//sets var to string
StrCopy 64//copys source string to var with max of 63 bytes
GetFrame1 1//gets secondary string
GetStaticP2 262//gets var to string
StrAdd 64//adds secondary string to var
GetStaticP2 262
return 2 1
//<
//> nop check
:hiddendrop
Function 1 3
GetFrame1 0
add1 16
GetStaticP1 58
SetImm1 25//nopcheck
GetFrame1 0
dup
return 1 2
//<
//> stat editing
:set_mp_stat(string stat,val value,bool increment)
Function 3 3
call @get_player_number
GetFrame1 0
call @string strcat(string source,string toadd)
GetHash
GetFrame1 1
GetFrame1 2
not
jumpfalse @statincrement
Push_1
CallNative stat_set_int 3 1
drop
return 3 0
:statincrement
CallNative stat_increment 2 0
return 3 0
:set_mp_stat_bool(stringstatname,bool)
Function 2 5
call @get_player_number
GetFrame1 0
call @string strcat(string source,string toadd)
GetHash
GetFrame1 1
Push_1
CallNative stat_set_bool 3 1
drop
return 2 0
:set_all_mp_stat_bool(stringstatname,bool)
Function 2 5
Push_0
SetFrame1 5
pushstring ""
GetStaticP2 262
strcopy 64
:allmpboolloop
GetFrame1 5
Push_4
jumpgt @endallmpboolloop
pushstring "mp"
GetStaticP2 262
stradd 8
GetFrame1 5
GetStaticP2 262
straddi 8
pushstring "_"
GetStaticP2 262
stradd 8
GetFrame1 0
GetStaticP2 262
stradd 64
GetStaticP2 262
GetHash
GetFrame1 1
Push_1
CallNative stat_set_bool 3 1
drop
GetFrame1 5
add1 1
SetFrame1 5
jump @allmpboolloop
:endallmpboolloop
return 2 0
:unlock_mp_bitset_concat(string stat1,string stat2)
Function 2 4
call @get_player_number
GetFrame1 0
GetFrame1 1
call @string strcat2(string source,string toadd)
call @string strcat(string source,string toadd)
GetHash
Push_-1
Push_1
CallNative stat_set_int 3 1
drop
return 2 0
:unlock_mp_ability_concat(string stat1,string stat2)
Function 2 4
GetFrame1 0
GetFrame1 1
call @string strcat2(string source,string toadd)
PushB 100
Push_0
call @set_mp_stat(string stat,val value,bool increment)
return 2 0
:get_player_number
Function 0 10
GetGlobal3 1312622//char index (search 791613967 in freemode)
Switch [0 @mpcharsel1]:[1 @mpcharsel2]:[2 @mpcharsel3]:[3 @mpcharsel4]:[4 @mpcharsel5]
pushstring "error"
return 0 1
:mpcharsel1
pushstring "mp0_"
return 0 1
:mpcharsel2
pushstring "mp1_"
return 0 1
:mpcharsel3
pushstring "mp2_"
return 0 1
:mpcharsel4
pushstring "mp3_"
return 0 1
:mpcharsel5
pushstring "mp4_"
return 0 1
:clear_and_get_reports(int statname)
Function 1 10
GetFrame1 0
GetFrameP1 4
Push_-1
callnative stat_get_int 3 1
pushstring "~r~Error:~s~ Can't convert stat into a int."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endclearreport
GetFrame1 4
jumpfalse @endclearreport
GetFrame1 0
Push_0
Push_1
CallNative stat_set_int 3 1
drop
GetFrame1 4
return 1 1
:endclearreport
Push_0
return 1 1
:clear_and_get_reports_mp(string* statname)
Function 1 10
call @get_player_number
GetFrame1 0
call @string strcat(string source,string toadd)
gethash
GetFrameP1 4
Push_-1
callnative stat_get_int 3 1
pushstring "~r~Error:~s~ Can't convert stat into a bool."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endclearreportmp
GetFrame1 4
jumpfalse @endclearreportmp
GetStaticP1 245
GetHash
Push_0
Push_1
CallNative stat_set_int 3 1
drop
GetFrame1 4
return 1 1
:endclearreportmp
Push_0
return 1 1
:clear_and_get_reports_bool(int statname)
Function 1 10
GetFrame1 0
GetFrameP1 4
Push_-1
callnative stat_get_bool 3 1
pushstring "~r~Error:~s~ Can't convert stat into a bool."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endclearreportbool
GetFrame1 4
jumpfalse @endclearreportbool
GetFrame1 0
Push_0
Push_1
CallNative stat_set_bool 3 1
drop
GetFrame1 4
return 1 1
:endclearreportbool
Push_0
return 1 1
:clear_and_get_reports_float(int statname)
Function 1 10
GetFrame1 0
GetFrameP1 4
Push_-1
callnative stat_get_float 3 1
pushstring "~r~Error:~s~ Can't convert stat into a bool."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endclearreportfloat
GetFrame1 4
PushF_0
fcmpne
jumpfalse @endclearreportfloat
GetFrame1 0
PushF_0
Push_1
CallNative stat_set_float 3 1
drop
GetFrame1 4
ftoi
return 1 1
:endclearreportfloat
Push_0
return 1 1
:clear_and_get_reports_mp_bitset(string* statname)
Function 1 10
call @get_player_number
GetFrame1 0
call @string strcat(string source,string toadd)
gethash
GetFrameP1 4
Push_-1
callnative stat_get_int 3 1
pushstring "~r~Error:~s~ Can't convert stat into a int."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endclearreportbitset
GetFrame1 4
jumpfalse @endclearreportbitset
GetStaticP1 245
GetHash
Push_0
Push_1
CallNative stat_set_int 3 1
drop
Push_0
SetFrame1 5//index
Push_0
SetFrame1 6//total
:cheatbitsetloop
GetFrame1 5
PushB 31
jumpgt @endcheatbitsetloop
GetFrame1 4//bitset
GetFrame1 5//index
CallNative is_bit_set 2 1
GetFrame1 6//total
add
GetFrame1 5
add1 1
SetFrame1 5
jump @cheatbitsetloop
:endcheatbitsetloop
GetFrame1 6//total
return 1 1
:endclearreportbitset
Push_0
return 1 1
//<
//> fast scroll and check num for exe
:advanced_scroll_fast(holdcounter)
Function 1 5
GetFrame1 0
PushB 30
jumpgt @return1forscrollfast
GetFrame1 0
PushB 10
jumpge @scrollfast
:return0forscrollfast
Push_0
return 1 1
:scrollfast
//10 5 5 4 3 2 1
GetFrame1 0
PushB 10
jumpeq @return1forscrollfast
GetFrame1 0
PushB 15
jumpeq @return1forscrollfast
GetFrame1 0
PushB 20
jumpeq @return1forscrollfast
GetFrame1 0
PushB 24
jumpeq @return1forscrollfast
GetFrame1 0
PushB 27
jumpeq @return1forscrollfast
GetFrame1 0
PushB 29
jumpeq @return1forscrollfast
jump @return0forscrollfast
:return1forscrollfast
Push_1
return 1 1
:fastscroll(ispressed,var*)
Function 2 4
GetFrame1 0
jumpfalse @endupfastscroll
GetFrame1 1
pget
add1 1
GetFrame1 1
pset
jump @returnupfastscroll
:endupfastscroll
Push_0
GetFrame1 1
pset
:returnupfastscroll
GetFrame1 1
pget
return 2 1
:checknumforexe
Function 0 2
GetStatic1 90//bit set for auto execute left right
GetStatic1 5//cursor index
CallNative is_bit_set 2 1
jumpfalse @coninuenumsel
Push_1
Push_0
call @execute(isrightexe,jumptype)
:coninuenumsel
return 0 0
//<
//> individual_player_loop
:toggle_online_bitset_on_sel_player(bitindex)
Function 1 3
GetStatic1 10//player id
GetFrame1 0
call @is_individual_player_loop_bit_set(playerindex,bitindex)
jumpfalse @setbitfortoggleob
GetStatic1 10//player id
GetStaticP2 279//array for individual player loop
GetArrayP1 1
GetFrame1 0
CallNative clear_bit 2 0
Push_1
Call @updatemenutext(istoggle)
return 1 0
:setbitfortoggleob
GetStatic1 10//player id
GetStaticP2 279//array for individual player loop
GetArrayP1 1
GetFrame1 0
CallNative set_bit 2 0
Push_1
Call @updatemenutext(istoggle)
return 1 0
:is_individual_player_loop_bit_set(playerindex,bitindex)
Function 2 4
GetFrame1 0
GetStaticP2 279//array for individual player loop
GetArray1 1
GetFrame1 1
CallNative is_bit_set 2 1
return 2 1
:individual_player_loop
Function 0 4
Push_0
SetFrame1 2
Push_0
SetFrame1 3
:checkplayerforpl
GetFrame1 2
PushB 15
jumpgt @endindividual_player_loop
GetFrame1 2
call @bool_is_player_in_game(playerindex)
not
jumpfalse @playerisingameforpl
Push_0
GetFrame1 2
GetStaticP2 279//array for individual player loop
SetArray1 1//setting the bitset to 0
:incplayerforpl
GetFrame1 2
add1 1
SetFrame1 2
jump @checkplayerforpl
:playerisingameforpl
GetFrame1 2
Push_0
call @is_individual_player_loop_bit_set(playerindex,bitindex)
jumpfalse @nextloopedoption1
Push GetHash("prop_money_bag_01")
call @load_model_looped(int modelhash)
jumpfalse @nextloopedoption1
CallNative network_is_in_session 0 1
jumpfalse @looGetFramePforcash
GetFrame1 2
call @draw_player_money_above_player(player)
//> spawn cash
:looGetFramePforcash
GetFrame1 3
Push_2
jumpgt @nextloopedoption1
GetStatic1 203
GetFrame1 2
CallNative is_bit_set 2 1
jumpfalse @spawn2000
Push GetHash("PICKUP_MONEY_CASE")
//case joaat("pickup_money_variable"):
//case joaat("pickup_vehicle_money_variable"):
//case joaat("pickup_money_case"):
//case joaat("pickup_money_wallet"):
//case joaat("pickup_money_purse"):
//case joaat("pickup_money_dep_bag"):
//case joaat("pickup_money_med_bag"):
//case joaat("pickup_money_paper_bag"):
//case joaat("pickup_money_security_case"):
jump @spawn40000
:spawn2000
Push GetHash("PICKUP_GANG_ATTACK_MONEY")
:spawn40000
GetFrame1 2
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
PushF 1.2
fadd//z
Push_0
pushi24 40000//amount
Push GetHash("prop_money_bag_01")//model override
Push_0
Push_1
CallNative create_ambient_pickup 9 1
drop
GetFrame1 3
add1 1
SetFrame1 3
jump @looGetFramePforcash
//<
:nextloopedoption1
GetFrame1 2
Push_1
call @is_individual_player_loop_bit_set(playerindex,bitindex)
GetFrame1 2
Push_0
Push_1
call @can_continue_all_player_loop(playerid,boolskp,bitforloop)
or
jumpfalse @nextloopedoption2
//> force field
GetFrame1 2
CallNative get_player_ped 1 1
dup
Push_1
CallNative get_entity_coords 2 3
Push_5
PushF_7
Push_0
Push_1
PushF_0
CallNative add_owned_explosion 9 0
//<
:nextloopedoption2
GetFrame1 2
Push_2
call @is_individual_player_loop_bit_set(playerindex,bitindex)
jumpfalse @nextloopedoption3
//> explosive bullets
GetFrame1 2
CallNative get_player_ped 1 1
GetStaticP1 100
CallNative get_ped_last_weapon_impact_coord 2 1
jumpfalse @nextloopedoption3
GetFrame1 2
CallNative get_player_ped 1 1
Push_3
GetStaticP1 100
toStack
GetStaticP2 311//start of byte array of expids for online players
GetFrame1 2//player id
call @get_ubyte_in_byte_array(int*,byteindex)
PushF 10
Push_1
Push_0
PushF_0
CallNative add_owned_explosion 9 0
//<
:nextloopedoption3
GetFrame1 2
Push_3
call @is_individual_player_loop_bit_set(playerindex,bitindex)
GetFrame1 2
Push_1
Push_3
call @can_continue_all_player_loop(playerid,boolskp,bitforloop)
or
jumpfalse @nextloopedoption4
//> esp
GetFrame1 2
CallNative get_player_ped 1 1
PushB 255
Push_0
Push_0
call @draw_square_on_ped(ped,r,g,b)
//<
:nextloopedoption4
GetFrame1 2
Push_4
call @is_individual_player_loop_bit_set(playerindex,bitindex)
GetFrame1 2
Push_0
Push_4
call @can_continue_all_player_loop(playerid,boolskp,bitforloop)
or
jumpfalse @nextloopedoption5
//> freeze player pos
GetFrame1 2
CallNative get_player_ped 1 1
CallNative clear_ped_tasks_immediately 1 0
//<
:nextloopedoption5
GetFrame1 2
Push_5
call @is_individual_player_loop_bit_set(playerindex,bitindex)
GetFrame1 2
Push_0
Push_5
call @can_continue_all_player_loop(playerid,boolskp,bitforloop)
or
jumpfalse @nextloopedoption6
//> Shake Player's Screen
GetFrame1 2
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
PushB 25//Explosion Type
PushF_0//Radius multiplier
Push_0//audible
Push_1//invisible
PushF 99999992.0//Camera shake multiplier
CallNative add_explosion 8 0
//<
:nextloopedoption6
jump @incplayerforpl
:endindividual_player_loop
return 0 0
//<
//> freeze_your_car_or_player
:freeze_your_car_or_player(bool freeze)
Function 1 3
call @are_you_in_veh_if_so_get_handle
SetFrame1 3
GetFrame1 3
jumpfalse @freezeped
GetFrame1 3
jump @unfreeze_entity
:freezeped
CallNative player_ped_id 0 1
:unfreeze_entity
GetFrame1 0
CallNative freeze_entity_position 2 0
return 1 0
//<
//> vehicle_mod_to_num
:are_strings_ne_inc
Function 2 4
GetFrame1 0
GetFrame1 1
CallNative are_strings_equal 2 1
not
jumpfalse @returnstringeqinc
GetStatic1 105
add1 1
SetStatic1 105
Push_1
return 2 1
:returnstringeqinc
Push_0
return 2 1
:are_two_strings_ne_inc
Function 3 5
GetFrame1 0
GetFrame1 1
CallNative are_strings_equal 2 1
GetFrame1 0
GetFrame1 2
CallNative are_strings_equal 2 1
or
not
jumpfalse @returntwostringeqinc
GetStatic1 105
add1 1
SetStatic1 105
Push_1
return 3 1
:returntwostringeqinc
Push_0
return 3 1
:vehicle_mod_to_num
Function 1 3
Push_0
SetStatic1 105
GetFrame1 0
PushString "Spoilers"//0
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
PushString "Front Bumpers"//1
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
PushString "Rear Bumpers"//2
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Side Skirts"//3
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Exhausts"//4
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Frames"//5
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Grilles"//6
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Hoods"//7
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Fenders"//8
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Right Fender"//body//9
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Roof"//10
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Engine"//11
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Brakes"//12
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Transmission"//13
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Horns"//14
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Suspension"//15
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Armor"//16
call @are_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Unknown 17 On"//---------//17
pushstring "Unknown 17 Off"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Turbo On"
pushstring "Turbo Off"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Unknown 19 On"
pushstring "Unknown 19 Off"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Custom Tyre Smoke On"
pushstring "Custom Tyre Smoke Off"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Unknown 21 On"
pushstring "Unknown 21 Off"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Xenon Headlights On"
pushstring "Xenon Headlights Off"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Front Rims"
pushstring "Rims"
call @are_two_strings_ne_inc
jumpfalse @returnvehmods
GetFrame1 0
pushstring "Rear Rims"
call @are_strings_ne_inc
jumpfalse @returnvehmods
:returnvehmods
GetStatic1 105
return 1 1
//<
//> toggle_custom_tyres
:toggle_custom_tyres(vehhandle,bool)
Function 2 4
GetFrame1 0
PushB 23
GetFrame1 0
PushB 23
CallNative get_vehicle_mod 2 1
GetFrame1 1
CallNative set_vehicle_mod 4 0
GetFrame1 0
PushB 24
CallNative get_num_vehicle_mods 2 1
jumpfalse @end_toggle_custom_tyres
GetFrame1 0
PushB 24
GetFrame1 0
PushB 24
CallNative get_vehicle_mod 2 1
GetFrame1 1
CallNative set_vehicle_mod 4 0
:end_toggle_custom_tyres
return 2 0
//<
//> get_menu_number
:get_menu_number
Function 0 2
GetStatic1 5//cursor index
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
return 0 1
//<
//> get_waypoint_coords
:get_waypoint_coords(bool togoback)
Function 1 10
CallNative is_waypoint_active 0 1
pushstring "~r~Error:~s~ You don't have a waypoint."
pushs 3000
call @bool printfalse(bool to_print,string text,int ms)
JumpFalse @endwayblip
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
Push_3
GetFrameP1 7
fromStack
CallNative _get_blip_info_id_iterator 0 1
CallNative get_first_blip_info_id 1 1
CallNative get_blip_info_id_coord 1 3
SetFrame1 3//z SetStatic1 100//z
SetFrame1 4//y SetStatic1 101//y
SetFrame1 5//x SetStatic1 102//x
GetFrame1 5//x
GetFrame1 4//y
GetFrame1 3//z
call @teleport_your_player(float_x,float_y,float_z)
Push_1
call @freeze_your_car_or_player(bool freeze)
Push_0
SetFrame1 10
:wait5000loopforwayblip
GetFrame1 10
PushB 150//5 sec
jumpgt @skpgztelereset
GetFrame1 10
add1 1
SetFrame1 10
Push_0
callnative wait 1 0
GetFrame1 5//x
GetFrame1 4//y
GetFrame1 3//z
PushF 200.0
fadd
GetFrameP1 6
CallNative get_ground_z_for_3d_coord 4 1
jumpfalse @wait5000loopforwayblip
jump @endground_z_loop
:skpgztelereset
Push_0
SetFrame1 10
GetFrame1 3
PushF 1000.0
fcmplt
jumpfalse @errorground_z_loop
:wait0.5loopforwayblip
GetFrame1 10
PushB 15//.5 sec
jumpgt @incground_z_loop
GetFrame1 10
add1 1
SetFrame1 10
Push_0
callnative wait 1 0
GetFrame1 5//x
GetFrame1 4//y
GetFrame1 3//z
PushF 200.0
fadd
GetFrameP1 6
CallNative get_ground_z_for_3d_coord 4 1
jumpfalse @wait0.5loopforwayblip
:endground_z_loop
Push_0
call @freeze_your_car_or_player(bool freeze)
GetFrame1 0
jumpfalse @skpgoback
Push_3
GetFrameP1 7
toStack
call @teleport_your_player(float_x,float_y,float_z)
:skpgoback
GetFrame1 5//x
GetFrame1 4//y
GetFrame1 6//z
return 1 3
:incground_z_loop
GetFrame1 3//z
PushF 200.0
fadd
SetFrame1 3
GetFrame1 5//x
GetFrame1 4//y
GetFrame1 3//z
call @teleport_your_player(float_x,float_y,float_z)
Push_1
call @freeze_your_car_or_player(bool freeze)
jump @skpgztelereset
:errorground_z_loop
pushstring "~r~Error:~s~ Ground z coord not found."
pushs 5000
call @print(string text,int ms)
Push_0
call @freeze_your_car_or_player(bool freeze)
Push_3
GetFrameP1 7
toStack
call @teleport_your_player(float_x,float_y,float_z)
:endwayblip
PushF_0
PushF_0
PushF_0
return 1 3
//<
//> get_coord_in_front_of_gameplaycam in world coords
:get_coord_in_front_of_gameplaycam(float range)
Function 1 12
Push_2
CallNative get_gameplay_cam_rot 1 3
SetFrame1 5//z rot
drop
SetFrame1 3//x rot
//z rot -0.88 ?
CallNative get_gameplay_cam_coord 0 3
SetFrame1 8//z coord
SetFrame1 7//y coord
SetFrame1 6//x coord
GetFrame1 5
SetFrame1 4
GetFrame1 0//dist
GetFrame1 3//x rot
CallNative cos 1 1
fmult
SetFrame1 9//tan
GetFrame1 9//tan
GetFrame1 4//z rot
PushF_-1
fmult
CallNative sin 1 1
fmult
GetFrame1 6//x coord
fadd
SetFrame1 10//x plane
GetFrame1 9//tan
GetFrame1 4//z rot
PushF_-1
fmult
CallNative cos 1 1
fmult
GetFrame1 7//y coord
fadd
SetFrame1 11//y plane
GetFrame1 0//dist
GetFrame1 3//x rot
CallNative sin 1 1
fmult
GetFrame1 8//z coord
fadd
SetFrame1 12//z plane
GetFrame1 10//x plane
GetFrame1 11//y plane
GetFrame1 12//z plane
return 1 3
//<
//> set_this_script_is_network
:set_this_script_is_network
Function 21 23
CallNative network_is_game_in_progress 0 1
Not
JumpFalse @Label_458
Return 21 0
:Label_458
GetFrame1 0
Push_0
GetFrameP1 1
GetImm1 16
CallNative network_set_this_script_is_network_script 3 0
Return 21 0
//<
//> spawn object no wait
:spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Function 7 8
GetFrame1 6
jumpfalse @objectnotloopedonline
GetStatic1 27//type for model loading
push_0
jumpne @end_spawn_object_no_wait
Push_0
SetStatic1 9//load loop inc
GetFrame1 4//jumptype
SetStatic1 28//saved jumptype for model loading
PushB 14//spawn object all players
SetStatic1 27//type for model loading
Push_0
SetStatic1 35//model load loop extra parrams
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
jump @end_spawn_object_no_wait
:objectnotloopedonline
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @request_object
Push_4
GetFrameP1 0
tostack
call @spawn_object(int model,x,y,z)
SetStatic1 26//saved hash and entity for model loading
getframe1 4
PushB 19//object drive on water special
jumpne @skip_drive_on_water_spawn
GetStatic1 26//saved hash and entity for model loading
SetStatic1 89//saved object for drive on water
PushB 19//object drive on water special
getStatic1 28//saved jumptype for model loading
jumpne @skip_drive_on_water_spawn
Push_0
SetStatic1 28//saved jumptype for model loading
Push_0
SetStatic1 27//type for model loading
:skip_drive_on_water_spawn
Push_1
return 7 1
:request_object
call @is_menu_loading
not
jumpfalse @end_spawn_object_no_wait
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_0
SetStatic1 9//load loop inc
Push_3
GetFrameP1 1
tostack
Push_3
GetStaticP1 35//model load loop extra parrams
fromstack
GetFrame1 4//jumptype
SetStatic1 28//saved jumptype for model loading
GetFrame1 5//isonline
jumpfalse @isnotonlineforobjspawn
Push_4//online objects
SetStatic1 27//type for model loading
jump @end_spawn_object_no_wait
:isnotonlineforobjspawn
Push_3//objects
SetStatic1 27//type for model loading
:end_spawn_object_no_wait
Push_0
return 7 1
//<
//> spawn object
:spawn_object(int model,x,y,z)
Function 4 7
GetFrame1 0
CallNative is_model_in_cdimage 1 1
jumpfalse @errorcdobj
GetFrame1 0
GetFrame1 1
GetFrame1 2
GetFrame1 3
Push_1
Push_1
Push_0
CallNative create_object 7 1
dup
SetFrame1 8
CallNative does_entity_exist 1 1
pushstring "~r~Error:~s~ Object could not spawn. Script is not reqistered."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
drop
GetFrame1 8
Push_1
Push_1
callnative set_entity_as_mission_entity 3 0
GetFrame1 0
CallNative set_model_as_no_longer_needed 1 0
GetFrame1 8
return 4 1
:errorcdobj
Push_0
return 4 1
//<
//> precision_level_to_int
:precision_level_to_int
Function 0 2
GetStatic1 88//Precision Level 1000,100,10,1,0.1,0.01,0.001,0.0001
switch [1176256512 @statmovePrecision-4]:[1148846080 @statmovePrecision-3]:[1120403456 @statmovePrecision-2]:[1092616192 @statmovePrecision-1]:[1065353216 @statmovePrecision1]:[1036831949 @statmovePrecision2]:[1008981770 @statmovePrecision3]:[981668463 @statmovePrecision4]:[953267991 @statmovePrecision5]
Push_0
return 0 1
:statmovePrecision-4
Push -4
return 0 1
:statmovePrecision-3
Push -3
return 0 1
:statmovePrecision-2
Push -2
return 0 1
:statmovePrecision-1
Push_-1
return 0 1
:statmovePrecision1
Push_0
return 0 1
:statmovePrecision2
Push_1
return 0 1
:statmovePrecision3
Push_2
return 0 1
:statmovePrecision4
Push_3
return 0 1
:statmovePrecision5
Push_4
return 0 1
//<
//> nop check 3
:hiddendrop3
Function 1 3
GetFrame1 0
add1 21
GetStaticP1 31
GetImmp1 12//nopcheck
GetImmp1 24
SetImm1 13
GetFrame1 0
dup
return 1 2
//<
//> attach obj to situation
:attach_obj_to_situation
Function 0 5
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @otopcoord
GetStatic1 87//saved object
GetStatic1 100
jump @otovcoord
:otopcoord
GetStatic1 87//saved object
CallNative player_ped_id 0 1
:otovcoord
CallNative player_ped_id 0 1
GetStatic1 85//saved bone
CallNative get_ped_bone_index 2 1
Push_4
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_5
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_6
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_7
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
PushB 8
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
PushB 9
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets array
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
return 0 0
//<
//> loadscript
:bool loadscript(string scriptname,int stacksize)
Function 2 5
GetFrame1 0
callnative does_script_exist 1 1
pushstring "~r~Error:~s~ This script does not exist~n~To add plug-ins include 1-10plugin.xsc."
pushs 8000
call @bool printfalse(bool to_print,string text,int ms)
JumpFalse @loadscriptexit
GetFrame1 0
GetHash
CallNative _get_number_of_instances_of_streamed_script 1 1
Push_0
cmpgt
not
pushstring "Script has been terminated."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
JumpFalse @terminatescriptexit
GetFrame1 0
callnative request_script 1 0
:loadscriptloop
Push_0
callnative wait 1 0
GetFrame1 0
callnative has_script_loaded 1 1
JumpFalse @loadscriptloop
GetFrame1 0
GetFrame1 1
callnative start_new_script 2 1
drop
GetFrame1 0
callnative set_script_as_no_longer_needed 1 0
Push_1
return 2 1
:terminatescriptexit
GetFrame1 0
CallNative terminate_all_scripts_with_this_name 1 0
:loadscriptexit
Push_0
return 2 1
//<
//> ufomode
:ufomode
Function 0 11
//> disable buttons
Push_2
Push GetEnum("INPUT_VEH_LOOK_BEHIND")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_LOOK_BEHIND")
CallNative disable_control_action 2 0
//<
//> noclip are you in veh
call @are_you_in_veh_if_so_get_handle
SetFrame1 7
GetFrame1 7
jumpfalse @novehhandlefornoclip
jump @startnoclip
:novehhandlefornoclip
CallNative player_ped_id 0 1
SetFrame1 7
CallNative player_ped_id 0 1
CallNative get_ped_stealth_movement 1 1
jumpfalse @notinstealthfly
CallNative player_ped_id 0 1
Push_0
Push_0
CallNative set_ped_stealth_movement 3 0
:notinstealthfly
CallNative player_ped_id 0 1
CallNative get_ped_combat_movement 1 1
jumpfalse @notincombatfly
CallNative player_ped_id 0 1
Push_0
CallNative set_ped_combat_movement 2 0
:notincombatfly
//<
:startnoclip
//> boost mode
Push_2
Push GetEnum("INPUT_SCRIPT_RB")
CallNative is_control_pressed 2 1
jumpfalse @boostmodeoff
PushF_5
SetFrame1 3//range/speed
jump @boostmodeon
:boostmodeoff
PushF_1
SetFrame1 3//range/speed
:boostmodeon
//<
//> set heading at gameplay cam and freeze
Push_2
CallNative get_gameplay_cam_rot 1 3//pitch:roll:yaw
SetFrame1 4//yaw
drop
drop
GetFrame1 7
GetFrame1 4
CallNative set_entity_heading 2 0
CallNative get_gameplay_cam_relative_pitch 0 1
PushF_0
CallNative set_gameplay_cam_relative_heading 1 0
PushF_0
CallNative set_gameplay_cam_relative_pitch 2 0
GetFrame1 7
Push_1
CallNative freeze_entity_position 2 0
//<
//> if axis x and y = 0 return
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_X")
CallNative get_control_normal 2 1//(left -1,right 1)
PushF_0
fcmpeq
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_Y")
CallNative get_control_normal 2 1//(up -1,down 1)
PushF_0
fcmpeq
Push_2
Push GetEnum("INPUT_FRONTEND_LT")
CallNative get_control_normal 2 1
PushF_0
fcmpeq
Push_2
Push GetEnum("INPUT_FRONTEND_RT")
CallNative get_control_normal 2 1
PushF_0
fcmpeq
and
and
and
not
jumpfalse @endnoclip
//<
//> get y and z axis
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_Y")
CallNative get_control_normal 2 1//(up -1,down 1)
PushF_-1
fmult//converts (up -1,down 1) to (up 1,down -1)
GetFrame1 3//range/speed
fmult//y
SetFrame1 5
Push_2
Push GetEnum("INPUT_FRONTEND_LT")
CallNative get_control_normal 2 1
PushF_-1
fmult
GetFrame1 3//range/speed
fmult//z
SetFrame1 6
Push_2
Push GetEnum("INPUT_FRONTEND_RT")
CallNative get_control_normal 2 1
GetFrame1 3//range/speed
fmult//z
GetFrame1 6
fadd
SetFrame1 6
//<
:exenoclip
GetFrame1 7//entity to set coords
GetFrame1 7//entity to get unit circle in world coords
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_X")
CallNative get_control_normal 2 1//(left -1,right 1)
GetFrame1 3//range/speed
fmult//x
GetFrame1 5//y
GetFrame1 6//z
CallNative get_offset_from_entity_in_world_coords 4 3
Push_0
Push_0
Push_0
CallNative set_entity_coords_no_offset 7 0
:endnoclip
return 0 0
//<
//> attach object to online ped
:attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Function 8 10
GetFrame1 0
GetStatic1 10//online player id
CallNative get_player_ped 1 1
GetFrame1 1
GetFrame1 2
GetFrame1 3
GetFrame1 4
GetFrame1 5
GetFrame1 6
GetFrame1 7
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
return 8 0
//<
//> trigger_script_event for bountys
:trigger_bounty
Function 4 26
PushB 58
SetFrame1 6
CallNative player_id 0 1
GetFrameP1 6
SetImm1 1
GetFrame1 1//online p id
GetFrameP1 6
SetImm1 2
GetFrame1 2//amount
GetFrameP1 6
SetImm1 17
GetFrame1 3//0 player:1 npc
GetFrameP1 6
SetImm1 19
GetFrameP1 6
GetimmP1 16
push_0
CallNative set_bit 2 0
GetFrame1 0
JumpFalse @endbountymod
Push_1
GetFrameP1 6
PushB 20
call @get_player_active_bitset
CallNative trigger_script_event 4 0
:endbountymod
Return 4 0
//<
//> trigger_script_event for bountys2
:trigger_bounty2
Function 4 12
//func_400(func_69(1, 1), 1, Local_147.imm_278, 0);
PushS 289
SetFrame1 6
CallNative player_id 0 1
GetFrameP1 6
SetImm1 1
GetFrame1 1
GetFrameP1 6
SetImm1 3
GetFrame1 2
GetFrameP1 6
SetImm1 2
Push_1
GetFrame1 1
GetGlobalP3 2399048
GetImmP2 2415
GetImmP1 235
SetArray1 4
GetFrame1 1
GetGlobalP3 2399048
GetImmP2 2415
GetImmP1 235
GetArrayP1 4
GetImmP1 1
dup
CallNative get_network_time 0 1
call @exch
pset
getimmp1 1
push_1
call @exch
pset
push_0
GetFrame1 1
GetGlobalP3 2399048
GetImmP2 2415
GetImmP1 39
GetArrayP1 2
setimm1 1
//func_98(&Global_2399048.imm_2415.imm_39[uParam1 <2>]);
Push_1
GetFrameP1 6
Push_6
call @get_player_active_bitset
CallNative trigger_script_event 4 0
Return 4 0
//<
//> trigger freeze
:trigger_freeze(pid)
Function 1 12
pushs 333
setframe1 6
push -2147483648
getframep1 6
setimm1 4
Push_1
GetFrameP1 6
Push_5
call @get_player_active_bitset
CallNative trigger_script_event 4 0
Return 1 0
//<
//> trigger_insurance_on_player
:trigger_insurance_on_player(playerped,vehicle)
Function 2 24
PushB 177
SetFrame1 4
CallNative player_id 0 1
GetFrameP1 4
SetImm1 1
getframe1 1//vehicle
getframe1 0//ped
push 0x457A1000//unk
push_1//unk
push GetHash("weapon_stickybomb")
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
push_0//unk
PushB 20
GetFrameP1 4
GetImmP1 2
FromStack
Push_1//event slot
GetFrameP1 4//struct pointer
PushB 22//num vars in struct
call @get_player_active_bitset
CallNative trigger_script_event 4 0
Return 2 0
:get_player_active_bitset
Function 0 4
push_0
setframe1 2
push_0
setframe1 3
:player_active_bitset_loop
getframe1 2
pushb 18
jumpge @end_player_active_bitset_loop
getframe1 2
add1 1
setframe1 2
getframe1 2
callnative network_is_player_active 1 1
jumpfalse @player_active_bitset_loop
GetFrameP1 3
getframe1 2
push_1
sub
CallNative set_bit 2 0
jump @player_active_bitset_loop
:end_player_active_bitset_loop
getframe1 3
Return 0 1
//<
//> trigger_script_event for give cash
:give_player_jobshare_cash(playerindex,cash,unk_1)
Function 3 9
PushB 182
SetFrame1 5
CallNative player_id 0 1
GetFrameP1 5
SetImm1 1
GetFrame1 1
GetFrameP1 5
SetImm1 2
GetFrame1 2
GetFrameP1 5
SetImm1 3
Push_1
GetFrameP1 5
Push_4
GetFrame1 0
Call @player_index_to_bitset
CallNative trigger_script_event 4 0
Return 3 0
:player_index_to_bitset
Function 1 4
GetFrameP1 3
GetFrame1 0
CallNative set_bit 2 0
GetFrame1 3
Return 1 1
//<
//> get_current_weapon_hash
:get_current_weapon_hash
Function 0 3
CallNative player_ped_id 0 1
GetFrameP1 2
Push_1
CallNative get_current_ped_weapon 3 1
drop
GetFrame1 2
return 0 1
//<
//> get dist between ped and game cam
:get_dist_between_ped_and_game_cam
Function 0 2
CallNative player_ped_id 0 1
Push_0
CallNative get_entity_coords 2 3
CallNative get_gameplay_cam_coord 0 3
CallNative vdist 6 1
PushF 0.5
fadd
return 0 1
//<
//> forge_pickup
:forge_pickup
Function 0 4
CallNative player_ped_id 0 1
CallNative is_ped_on_foot 1 1
jumpfalse @continueforgecheck
CallNative player_id 0 1
CallNative is_player_free_aiming 1 1
CallNative player_id 0 1
CallNative is_player_targetting_anything 1 1
or
jumpfalse @continueforgecheck
Push_2
Push GetEnum("INPUT_ATTACK")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_ATTACK")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_SCRIPT_RT")
CallNative is_disabled_control_just_pressed 2 1
jumpfalse @continueforgecheck
CallNative player_id 0 1
GetFrameP1 3
CallNative get_entity_player_is_free_aiming_at 2 1
not
jumpfalse @is_aiming_obj
GetStatic1 84
CallNative does_entity_exist 1 1
not
jumpfalse @clearforge
jump @forge_off_continue
:is_aiming_obj
GetFrame1 3
GetStatic1 84
jumpeq @clearforge
GetFrame1 3
dup
SetStatic1 84
SetStatic1 87
GetStatic1 84
CallNative is_entity_a_ped 1 1
jumpfalse @continueforgecheck
GetStatic1 84
CallNative is_ped_a_player 1 1
jumpfalse @continueforgecheck
GetStatic1 84
Push_0
CallNative is_ped_in_any_vehicle 2 1
jumpfalse @clearforge
GetStatic1 84
Push_0
CallNative get_vehicle_ped_is_in 2 1
SetStatic1 84
jump @continueforgecheck
:clearforge
Push_0
SetStatic1 84
:forge_off_continue
Push_0
return 0 1
:continueforgecheck
Push_1
return 0 1
//<
//> draw_square_on_ped
:draw_square_on_ped(ped,r,g,b)
Function 4 25
//> square line coords
PushF 0.4
PushF 0.0
PushF 0.8
Push_3
GetFrameP1 11
FromStack//top right
PushF -0.4
PushF 0.0
PushF 0.8
Push_3
GetFrameP1 14
FromStack//top left
PushF 0.4
PushF 0.0
PushF -1.0
Push_3
GetFrameP1 17
FromStack//bottom right
PushF -0.4
PushF 0.0
PushF -1.0
Push_3
GetFrameP1 20
FromStack//bottom left
//<
//> top line
GetFrame1 0
Push_3
GetFrameP1 11//*
toStack//top right
CallNative get_offset_from_entity_in_world_coords 4 3
GetFrame1 0
Push_3
GetFrameP1 14//*
toStack//top left
CallNative get_offset_from_entity_in_world_coords 4 3
Push_3
GetFrameP1 1
toStack//rgb
PushB 255
CallNative draw_line 10 0
//<
//> left line
GetFrame1 0
Push_3
GetFrameP1 14//*
toStack//top left
CallNative get_offset_from_entity_in_world_coords 4 3
GetFrame1 0
Push_3
GetFrameP1 20//*
toStack//bottom left
CallNative get_offset_from_entity_in_world_coords 4 3
Push_3
GetFrameP1 1
toStack//rgb
PushB 255
CallNative draw_line 10 0
//<
//> right line
GetFrame1 0
Push_3
GetFrameP1 11//*
toStack//top right
CallNative get_offset_from_entity_in_world_coords 4 3
GetFrame1 0
Push_3
GetFrameP1 17//*
toStack//bottom right
CallNative get_offset_from_entity_in_world_coords 4 3
Push_3
GetFrameP1 1
toStack//rgb
PushB 255
CallNative draw_line 10 0
//<
//> bottom line
GetFrame1 0
Push_3
GetFrameP1 20//*
toStack//bottom left
CallNative get_offset_from_entity_in_world_coords 4 3
GetFrame1 0
Push_3
GetFrameP1 17//*
toStack//bottom right
CallNative get_offset_from_entity_in_world_coords 4 3
Push_3
GetFrameP1 1
toStack//rgb
PushB 255
CallNative draw_line 10 0
//<
return 4 0
//<
//> online player options
:online_player_options(submenu,islooped,is_exe_on_dpad,onlinejumptype)
Function 4 15
GetFrame1 3
jumpfalse @startonlineexecute
GetFrame1 3
switch [20 @online_juice_stand_attach_object]:[21 @online_mr_raspberry_attach_object]:[22 @online_xmas_tree_int_attach_object]:[23 @online_beach_fire_attach_object]:[24 @online_ped_gib_attach_object]:[25 @online_boxing_glove_attach_object]:[26 @online_cs_katana_attach_object]:[27 @online_airdancer_01_attach_object]:[28 @online_air_bigradar_attach_object]:[29 @online_gnome3_attach_object]:[30 @online_prlg_snowpile_attach_object]:[31 @online_headset_01_attach_object]:[32 @online_welding_mask_01_attach_object]:[33 @online_michael_backpack_attach_object]:[34 @online_ld_hat_01_attach_object]:[35 @online_trev_ski_mask_s_attach_object]:[36 @online_trevor_prologe_bally_s_attach_object]:[37 @online_orleans_mask_s_attach_object]:[38 @online_gas_mask_hang_01_attach_object]:[39 @online_gasmask_s_attach_object]:[40 @online_spinning_anus_s_attach_object]:[41 @online_tv_test_attach_object]:[42 @online_ld_ferris_wheel_attach_object]:[43 @online_roadcone01a_attach_object]:[44 @online_roadcone02a_attach_object]:[45 @online_alien_egg_01_attach_object]:[46 @online_cs_hotdog_01_attach_object]:[59 @online_play_anim_rcmpaparazzo_2|shag_loop_a]:[60 @online_network_request_invin]:[61 @online_network_request_clean]:[62 @online_network_request_gayify]:[63 @online_network_request_delete]:[64 @online_network_request_lock]:[65 @online_network_request_rc]:[66 @online_network_request_fire]:[67 @online_network_request_freeze]:[68 @online_network_request_boost]:[69 @online_network_request_sling]
PushString "Execute Error"
pushs 5000
call @print(string text,int ms)
Jump @endonlineplayeroptions
:startonlineexecute
GetFrame1 0
switch [1 @onlineplayeroptions]:[2 @onlineweaponoptions]:[3 @onlinevehicleoptions]:[4 @onlineteleportoptions]:[5 @onlineattachableoptions]
Jump @endonlineplayeroptions
//> online player options
:onlineplayeroptions
GetStatic1 5//cursor index for online player options
Switch [1 @onlineplayeroptions1]:[2 @onlineplayeroptions2]:[3 @onlineplayeroptions3]:[4 @onlineplayeroptions4]:[5 @onlineplayeroptions5]:[6 @onlineplayeroptions6]:[7 @onlineplayeroptions7]:[8 @onlineplayeroptions8]:[9 @onlineplayeroptions9]:[10 @onlineplayeroptions10]:[11 @onlineplayeroptions11]:[12 @onlineplayeroptions12]:[13 @onlineplayeroptions13]:[14 @onlineplayeroptions14]:[15 @onlineplayeroptions15]:[16 @onlineplayeroptions16]:[17 @onlineplayeroptions17]
Jump @endonlineplayeroptions
:onlineplayeroptions1
GetFrame1 2
not
jumpfalse @inc_exp_id_for_online_exp
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative get_player_ped 1 1
dup
Push_1
CallNative get_entity_coords 2 3
GetStatic2 310//saved index for explode online player
PushF 10.0
Push_1
Push_0
PushF_0
CallNative add_owned_explosion 9 0
Jump @endonlineplayeroptions
:inc_exp_id_for_online_exp
call @get_menu_number
SetStatic2 310//saved index for explode online player
Jump @endonlineplayeroptions
:onlineplayeroptions2
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//online player id
CallNative network_session_kick_player 1 0
Jump @endonlineplayeroptions
:onlineplayeroptions3
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
not
jumpfalse @detachveh
:playernotincar
CallNative player_ped_id 0 1
SetStatic1 100
:detachveh
GetStatic1 100
CallNative is_entity_attached 1 1
jumpfalse @attachpedtoped
GetStatic1 100
Push_0
Push_0
CallNative detach_entity 3 0
Jump @endonlineplayeroptions
:attachpedtoped
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative player_id 0 1
jumpeq @endonlineplayeroptions
GetStatic1 100
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_-1
PushF_0
PushF -0.5
PushF_0
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @endonlineplayeroptions
:onlineplayeroptions4
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_0
CallNative get_entity_coords 2 3
Pushi24 100000//cash amount
PushB 50//cash wads
Push_0
CallNative create_money_pickups 6 0
Jump @endonlineplayeroptions
:onlineplayeroptions5
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//online player id
CallNative get_player_ped 1 1
PushF_1
call @get_coord_in_front(int entity,float range)
GetStatic1 10//online player id
CallNative get_player_ped 1 1
Push_0
CallNative get_entity_coords 2 3
Push_0
Push_1
Push GetHash("WEAPON_STUNGUN")
CallNative player_ped_id 0 1
Push_0
Push_1
Push -1082130432
CallNative shoot_single_bullet_between_coords 13 0
Jump @endonlineplayeroptions
:onlineplayeroptions6
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetFrame1 2
not
jumpfalse @inc_cash_enum
Push_0//cash drop loop
call @toggle_online_bitset_on_sel_player(bitindex)
jump @endonlineplayeroptions
:inc_cash_enum
call @get_menu_number
jumpfalse @cash_drop_ok
:iscashdrop40000
call @disable_game_controls_this_frame
pushstring "~y~Warning:~s~ Setting this amount can get you banned in GTA Online."
pushstring "Do you want to continue?~n~~g~A~s~-Continue ~r~B~s~-Cancel"
pushs 10
call @print_two(string text1,string text2,int ms)
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
not
JumpFalse @cash_drop_ok
Push_2
push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative is_disabled_control_just_pressed 2 1
Not
JumpFalse @error_cashdrop
Push_0
callnative wait 1 0
jump @iscashdrop40000
:cash_drop_ok
GetStaticP1 203//cash drop bitset
GetStatic1 10//player id
call @get_menu_number
call @set_bit_inline(var*,bit,bool set)
Jump @endonlineplayeroptions
:error_cashdrop
Push_1
Call @updatemenutext(istoggle)
Jump @endonlineplayeroptions
:onlineplayeroptions7
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
CallNative player_ped_id 0 1
Push_0
CallNative get_entity_coords 2 3
PushF_1
fadd
GetStatic1 10//online player id
CallNative get_player_ped 1 1
Push_0
CallNative get_entity_coords 2 3
Push_0
Push_1
Push GetHash("WEAPON_STINGER")
Push_0
Push_0
Push_1
Push -1082130432
CallNative shoot_single_bullet_between_coords 13 0
jump @endonlineplayeroptions
:stopfoottask
GetStatic1 10//player id
CallNative get_player_ped 1 1
CallNative clear_ped_tasks 1 0
pushstring "Task aborted."
pushs 3000
call @print(string text,int ms)
jump @endonlineplayeroptions
:onlineplayeroptions8
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
CallNative player_ped_id 0 1
CallNative is_entity_attached 1 1
jumpfalse @startSex
pushstring "Sex ended."
pushs 5000
call @print(string text,int ms)
CallNative player_ped_id 0 1
Push_0
Push_0
CallNative detach_entity 3 0
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 86
CallNative does_entity_exist 1 1
Jumpfalse @endonlineplayeroptions
GetStatic1 86
CallNative is_entity_a_ped 1 1
Jumpfalse @endonlineplayeroptions
GetStatic1 86
CallNative clear_ped_tasks_immediately 1 0
Jump @endonlineplayeroptions
:startSex
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative player_id 0 1
jumpeq @endonlineplayeroptions
CallNative player_ped_id 0 1
GetStatic1 10//player id
CallNative get_player_ped 1 1
dup
SetStatic1 86
Push_-1
PushF_0
PushF -0.3
PushF_0
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
pushstring "rcmpaparazzo_2"
pushstring "shag_loop_a"
CallNative player_ped_id 0 1
PushB 9
PushB 59//online_play_anim_rcmpaparazzo_2|shag_loop_a
Push_1
call @PlayAnimation_no_wait(AnimDir,AnimName,pedid,animflag,jumptype,isonline)
jumpfalse @endonlineplayeroptions
:online_play_anim_rcmpaparazzo_2|shag_loop_a
//pushstring "rcmpaparazzo_2"
//pushstring "shag_loop_poppy"
//GetStatic1 10//player id
//CallNative get_player_ped 1 1
//PushB 9
//call @PlayonlineAnimation(AnimDir,AnimName,pedid,animflag)
pushstring "Sex commencing."
pushs 5000
call @print(string text,int ms)
jump @endonlineplayeroptions
:onlineplayeroptions9
GetFrame1 1//is looped
Push_1//forcefield
call @toggle_bit_on_all_or_ind(bool_isall,bit)
jump @endonlineplayeroptions
:onlineplayeroptions10
GetFrame1 1//is looped
Push_3//esp
call @toggle_bit_on_all_or_ind(bool_isall,bit)
jump @endonlineplayeroptions
:onlineplayeroptions11
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
call @advance_menu_level
jump @endonlineplayeroptions
:onlineplayeroptions12
GetFrame1 1//is looped
Push_4//disable tasks
call @toggle_bit_on_all_or_ind(bool_isall,bit)
jump @endonlineplayeroptions
:onlineplayeroptions13
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_1//is visable online
Push_1//?
Push_1//is online
callnative clone_ped 4 1
drop
jump @endonlineplayeroptions
:onlineplayeroptions14
GetFrame1 1//is looped
Push_5//shake player's screen
call @toggle_bit_on_all_or_ind(bool_isall,bit)
jump @endonlineplayeroptions
:onlineplayeroptions15
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative get_player_ped 1 1
CallNative get_entity_model 1 1
call @Change_Player_Model(int modelhash)
//"Face"
//"Head"
//"Hair"
//"Torso"
//"Legs"
//"Hands"
//"Shoes"
//"Special 1"
//"Special 2"
//"Special 3"
//"Textures"
//"Torso 2"
push_0
setstatic1 100
:copy_component_loop
getstatic1 100
pushb 12
jumpge @end_copy_component_loop
callnative player_ped_id 0 1
getstatic1 100//component
GetStatic1 10//player id
CallNative get_player_ped 1 1
getstatic1 100//component
callnative get_ped_drawable_variation 2 1
GetStatic1 10//player id
CallNative get_player_ped 1 1
getstatic1 100//component
callnative get_ped_texture_variation 2 1
Push_0//palette variation
CallNative set_ped_component_variation 5 0
getstatic1 100
add1 1
setstatic1 100
jump @copy_component_loop
:end_copy_component_loop
//"Hats"
//"Glasses"
//"Ear Pieces"
//"unk_prop3"
//"unk_prop4"
//"unk_prop5"
//"Watches"
//"Wristbands"
//"unk_prop8"
//"unk_prop9"
push_0
setstatic1 100
:copy_prop_loop
getstatic1 100
pushb 10
jumpge @end_copy_prop_loop
callnative player_ped_id 0 1
getstatic1 100//component
GetStatic1 10//player id
CallNative get_player_ped 1 1
getstatic1 100//component
callnative get_ped_prop_index 2 1
GetStatic1 10//player id
CallNative get_player_ped 1 1
getstatic1 100//component
callnative get_ped_prop_texture_index 2 1
Push_0//net bool?
CallNative set_ped_prop_index 5 0
getstatic1 100
add1 1
setstatic1 100
jump @copy_prop_loop
:end_copy_prop_loop
GetStatic1 10//player id
CallNative get_player_ped 1 1
CallNative get_entity_model 1 1
dup
push GetHash("MP_M_Freemode_01")
cmpeq
call @exch
push GetHash("MP_F_Freemode_01")
cmpeq
or
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative get_player_ped 1 1
getstaticp1 100//uses 10 vars
callnative _get_ped_head_blend_data 2 1
jumpfalse @endonlineplayeroptions
callnative player_ped_id 0 1
getstatic1 100
getstatic1 101
getstatic1 102
getstatic1 103
getstatic1 104
getstatic1 105
getstatic1 106
getstatic1 107
getstatic1 108
getstatic1 109
CallNative set_ped_head_blend_data 11 0
// void SET_PED_HEAD_OVERLAY(Ped ped, int overlayID, int index, float opacity) // 48F44967FA05CC1E D28DBA90
//edit int _GET_PED_HEAD_OVERLAY_VALUE(Ped ped, int overlayID) // A60EF3B6461A4D43
//edit int _GET_NUM_HEAD_OVERLAY_VALUES(int overlayID) // CF1CE768BB43480E FF43C18D
//edit void _SET_PED_HEAD_OVERLAY_COLOR(Ped ped, int overlayID, int colorType, int colorID, int secondColorID) // 497BF74A7B9CB952
jump @endonlineplayeroptions
:onlineplayeroptions16
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
GetStatic1 10//online player id
CallNative get_player_ped 1 1
Push_0
CallNative get_entity_coords 2 3
drop
callnative set_new_waypoint 2 0
jump @endonlineplayeroptions
:onlineplayeroptions17
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
callnative network_is_signed_online 0 1
not
jumpfalse @get_ip_player_is_connected
pushstring "~r~Error:~s~ You have no online connection."
pushs 5000
call @print(string text,int ms)
jump @endonlineplayeroptions
:get_ip_player_is_connected
GetStatic1 10//player id
call @get_player_struct(player)
CallNative network_is_in_session 0 1
jumpfalse @singleplayer_ip
pget
:singleplayer_ip
add1 20
setstatic1 100
pushstring "IP: "
GetStaticP2 262
strcopy 64
getstatic1 100
push_0
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP2 262
straddi 64
pushstring "."
GetStaticP2 262
stradd 64
getstatic1 100
push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP2 262
straddi 64
pushstring "."
GetStaticP2 262
stradd 64
getstatic1 100
push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP2 262
straddi 64
pushstring "."
GetStaticP2 262
stradd 64
getstatic1 100
push_3
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP2 262
straddi 64
GetStaticP2 262
pushs 8000
call @print(string text,int ms)
jump @endonlineplayeroptions
//<
//> online weapon options
:onlineweaponoptions
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 5//cursor index for online weapon options
Switch [1 @onlineweaponoptions1]:[2 @onlineweaponoptions2]:[3 @onlineweaponoptions3]:[4 @onlineweaponoptions4]:[5 @onlineweaponoptions5]:[6 @onlineweaponoptions6]:[7 @onlineweaponoptions7]
Jump @endonlineplayeroptions
//if you add options to this make sure to edit function bool_can_continue_all_player_loop
:onlineweaponoptions1
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
GetFrame1 2
not
jumpfalse @inc_exp_id_for_online_expguns
Push_2//weap mods
call @toggle_online_bitset_on_sel_player(bitindex)
jump @endonlineplayeroptions
:inc_exp_id_for_online_expguns
GetStaticP2 311//start of byte array of expids for online players
GetStatic1 10//player id
call @get_menu_number
call @set_byte_in_byte_array(byte*,byteindex,bytetoset)
Jump @endonlineplayeroptions
:onlineweaponoptions2
push -1716189206
call @give_weapon_to_online_ped(int_hash)
push 1737195953
call @give_weapon_to_online_ped(int_hash)
push 1317494643
call @give_weapon_to_online_ped(int_hash)
push -1786099057
call @give_weapon_to_online_ped(int_hash)
push 1141786504
call @give_weapon_to_online_ped(int_hash)
push -2067956739
call @give_weapon_to_online_ped(int_hash)
push 453432689
call @give_weapon_to_online_ped(int_hash)
push 1593441988
call @give_weapon_to_online_ped(int_hash)
push 584646201
call @give_weapon_to_online_ped(int_hash)
push -1716589765
call @give_weapon_to_online_ped(int_hash)
push 324215364
call @give_weapon_to_online_ped(int_hash)
push 736523883
call @give_weapon_to_online_ped(int_hash)
push -270015777
call @give_weapon_to_online_ped(int_hash)
push -1074790547
call @give_weapon_to_online_ped(int_hash)
push -2084633992
call @give_weapon_to_online_ped(int_hash)
push -1357824103
call @give_weapon_to_online_ped(int_hash)
push -1660422300
call @give_weapon_to_online_ped(int_hash)
push 2144741730
call @give_weapon_to_online_ped(int_hash)
push 487013001
call @give_weapon_to_online_ped(int_hash)
push 2017895192
call @give_weapon_to_online_ped(int_hash)
push -494615257
call @give_weapon_to_online_ped(int_hash)
push -1654528753
call @give_weapon_to_online_ped(int_hash)
push 100416529
call @give_weapon_to_online_ped(int_hash)
push 205991906
call @give_weapon_to_online_ped(int_hash)
push -1568386805
call @give_weapon_to_online_ped(int_hash)
push 1305664598
call @give_weapon_to_online_ped(int_hash)
push -1312131151
call @give_weapon_to_online_ped(int_hash)
push 1119849093
call @give_weapon_to_online_ped(int_hash)
push -1813897027
call @give_weapon_to_online_ped(int_hash)
push 741814745
call @give_weapon_to_online_ped(int_hash)
push -37975472
call @give_weapon_to_online_ped(int_hash)
push 615608432
call @give_weapon_to_online_ped(int_hash)
push 883325847
call @give_weapon_to_online_ped(int_hash)
push -72657034
call @give_weapon_to_online_ped(int_hash)
push 1752584910//stinger
call @give_weapon_to_online_ped(int_hash)
push 101631238//fire extinguisher
call @give_weapon_to_online_ped(int_hash)
push -1600701090//bzgas
call @give_weapon_to_online_ped(int_hash)
push 375527679//PASSENGER_ROCKET
call @give_weapon_to_online_ped(int_hash)
push 600439132//baseball
call @give_weapon_to_online_ped(int_hash)
push 1233104067//flare
call @give_weapon_to_online_ped(int_hash)
Jump @endonlineplayeroptions
:onlineweaponoptions3
push -102323637
call @give_weapon_to_online_ped(int_hash)
push 1627465347
call @give_weapon_to_online_ped(int_hash)
push -1063057011
call @give_weapon_to_online_ped(int_hash)
push -771403250
call @give_weapon_to_online_ped(int_hash)
push -1076751822
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_BULLPUPRIFLE")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_DAGGER")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_VINTAGEPISTOL")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_FIREWORK")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_MUSKET")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_HEAVYSHOTGUN")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_MARKSMANRIFLE")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_HOMINGLAUNCHER")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_PROXMINE")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_SNOWBALL")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_FLAREGUN")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_GARBAGEBAG")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_HANDCUFFS")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_COMBATPDW")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_MARKSMANPISTOL")
call @give_weapon_to_online_ped(int_hash)
push GetHash("WEAPON_KNUCKLE")
call @give_weapon_to_online_ped(int_hash)
Jump @endonlineplayeroptions
:onlineweaponoptions4
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_1
CallNative remove_all_ped_weapons 2 0
Jump @endonlineplayeroptions
:onlineweaponoptions5
push 911657153//stungun
call @give_weapon_to_online_ped(int_hash)
Jump @endonlineplayeroptions
:onlineweaponoptions6
GetStatic1 10//player id
CallNative get_player_ped 1 1
CallNative get_entity_health 1 1
GetStatic1 10//player id
CallNative get_player_ped 1 1
CallNative get_entity_max_health 1 1
cmpne
pushstring "~r~Error:~s~ Player already has full health."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
jumpfalse @givehealthonfoot
Push GetHash("PICKUP_VEHICLE_HEALTH_STANDARD")
Jump @give_pickup_to_online_ped
:givehealthonfoot
Push GetHash("PICKUP_HEALTH_STANDARD")
Jump @give_pickup_to_online_ped
:onlineweaponoptions7
GetStatic1 10//player id
CallNative get_player_ped 1 1
CallNative get_ped_armour 1 1
GetStatic1 10//player id
CallNative get_player_max_armour 1 1
cmpne
pushstring "~r~Error:~s~ Player already has full armor."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
jumpfalse @givearmoronfoot
Push GetHash("PICKUP_VEHICLE_ARMOUR_STANDARD")
Jump @give_pickup_to_online_ped
:givearmoronfoot
Push GetHash("PICKUP_ARMOUR_STANDARD")
Jump @give_pickup_to_online_ped
:give_pickup_to_online_ped
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
PushF 1.2
fadd//z
Push_0
pushi24 40000//amount
Push_0//model override
Push_0
Push_1
CallNative create_ambient_pickup 9 1
drop
Jump @endonlineplayeroptions
//<
//> online vehicle options
:onlinevehicleoptions
GetStatic1 5//cursor index for online vehicle options
Switch [1 @onlinevehicleoptions1]:[2 @onlinevehicleoptions2]:[3 @onlinevehicleoptions3]:[4 @onlinevehicleoptions4]:[5 @onlinevehicleoptions5]:[6 @onlinevehicleoptions6]:[7 @onlinevehicleoptions7]:[8 @onlinevehicleoptions8]:[9 @onlinevehicleoptions9]:[10 @onlinevehicleoptions10]:[11 @onlinevehicleoptions11]
Jump @endonlineplayeroptions
:onlinevehicleoptions1
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 69//online_network_request_sling
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_sling
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
Push_1
PushF_0
PushF_0
PushF 10000.0
PushF_0
PushF_0
PushF_0
Push_0
Push_1
Push_1
Push_1
Push_0
Push_1
CallNative apply_force_to_entity 14 0
Jump @endonlineplayeroptions
:onlinevehicleoptions2
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 68//online_network_request_boost
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_boost
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
GetStatic1 100
CallNative get_entity_speed 1 1
PushF 40//90 mph
fadd
CallNative set_vehicle_forward_speed 2 0
Jump @endonlineplayeroptions
Jump @endonlineplayeroptions
:onlinevehicleoptions3
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
CallNative player_ped_id 0 1
CallNative is_entity_attached 1 1
jumpfalse @attachpedtocar
CallNative player_ped_id 0 1
Push_0
Push_0
CallNative detach_entity 3 0
Jump @endonlineplayeroptions
:attachpedtocar
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
CallNative get_entity_model 1 1
GetStaticP1 101//101 = x 102 = y 103 = z//left side:down
GetStaticP1 104//104 = x 105 = y 106 = z//right side:up
CallNative get_model_dimensions 3 0
CallNative player_ped_id 0 1
GetStatic1 100
Push_-1
PushF_0
PushF_0
GetStatic1 106
PushF_1
fadd
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
Jump @endonlineplayeroptions
:onlinevehicleoptions4
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 67//online_network_request_freeze
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_freeze
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
CallNative get_entity_speed 1 1
jumpfalse @unfreezevehicle
GetStatic1 100
PushF_0
CallNative set_vehicle_forward_speed 2 0
GetStatic1 100
Push_1
CallNative freeze_entity_position 2 0
GetStatic1 100
PushF_0
CallNative set_vehicle_forward_speed 2 0
Jump @endonlineplayeroptions
:unfreezevehicle
GetStatic1 100
Push_0
CallNative freeze_entity_position 2 0
GetStatic1 100
PushF_1
CallNative set_vehicle_forward_speed 2 0
Jump @endonlineplayeroptions
:onlinevehicleoptions5
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 66//online_network_request_fire
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_fire
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushF_-1
CallNative set_vehicle_engine_health 2 0
GetStatic1 100
PushF_-1
CallNative set_vehicle_petrol_tank_health 2 0
GetStatic1 100
Push_-1
CallNative set_entity_health 2 0
GetStatic1 100
CallNative start_entity_fire 1 1
drop
Jump @endonlineplayeroptions
:onlinevehicleoptions6
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
call @are_you_in_veh_if_so_get_handle
SetStatic1 101
GetStatic1 101
jumpfalse @endonlineplayeroptions
GetStatic1 97//saved veh
CallNative does_entity_exist 1 1
jumpfalse @rc_getonlineveh
GetStatic1 97//saved veh
CallNative is_entity_attached 1 1
not
jumpfalse @detachsavedveh
:rc_getonlineveh
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 97
GetStatic1 97
jumpfalse @endonlineplayeroptions
GetStatic1 97
GetStatic1 101
jumpeq @endonlineplayeroptions
:detachsavedveh
GetStatic1 97
PushB 65//online_network_request_rc
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_rc
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 97
jumpfalse @endonlineplayeroptions
GetStatic1 97
CallNative is_entity_attached 1 1
jumpfalse @attachcartocar
GetStatic1 97
Push_0
CallNative freeze_entity_position 2 0
GetStatic1 97
PushF_1
CallNative set_vehicle_forward_speed 2 0
GetStatic1 97
Push_0
Push_0
CallNative detach_entity 3 0
CallNative player_ped_id 0 1
Push_1
CallNative set_entity_visible 2 0
GetStatic1 101
Push_1
CallNative set_entity_visible 2 0
Jump @endonlineplayeroptions
:attachcartocar
GetStatic1 97
Push_1
CallNative freeze_entity_position 2 0
GetStatic1 97
PushF_0
CallNative set_vehicle_forward_speed 2 0
GetStatic1 101
GetStatic1 10//online player id
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
CallNative player_ped_id 0 1
Push_0
CallNative set_entity_visible 2 0
GetStatic1 101
Push_0
CallNative set_entity_visible 2 0
GetStatic1 97//online players car
GetStatic1 101//your car
Push_-1
PushF_0
PushF_0
PushF_0
PushF_0
PushF_0
PushF_0
Push_0
Push_0
Push_0
Push_0
Push_2
Push_1
CallNative attach_entity_to_entity 15 0
//pushs 3000
//CallNative wait 1 0
GetStatic1 97
Push_1
CallNative set_entity_visible 2 0
Jump @endonlineplayeroptions
:onlinevehicleoptions7
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 64//online_network_request_lock
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_lock
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
CallNative get_vehicle_door_lock_status 1 1
Push_4
jumpne @onlinelockveh
GetStatic1 100
Push_1//unlocked
pushstring "Vehicle doors unlocked."
pushs 5000
call @print(string text,int ms)
jump @onlineunlockveh
:onlinelockveh
GetStatic1 100
Push_4//locked
pushstring "Vehicle doors locked."
pushs 5000
call @print(string text,int ms)
:onlineunlockveh
CallNative set_vehicle_doors_locked 2 0
Jump @endonlineplayeroptions
:onlinevehicleoptions8
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 63//online_network_request_delete
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_delete
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStaticP1 100
callnative delete_vehicle 1 0
pushstring "Vehicle deleted."
pushs 5000
call @print(string text,int ms)
Jump @endonlineplayeroptions
:onlinevehicleoptions9
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 62//online_network_request_gayify
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_gayify
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
CallNative clear_vehicle_custom_primary_colour 1 0
GetStatic1 100
CallNative clear_vehicle_custom_secondary_colour 1 0
GetStatic1 100
Push_0
CallNative set_vehicle_mod_kit 2 0
Push_0
SetStatic1 101
:remove_all_parts
GetStatic1 101
PushB 17
jumpgt @continuebadcar
GetStatic1 100
GetStatic1 101
CallNative remove_vehicle_mod 2 0
GetStatic1 101
add1 1
SetStatic1 101
jump @remove_all_parts
:continuebadcar
GetStatic1 100
PushB 18
Push_0
CallNative toggle_vehicle_mod 3 0
GetStatic1 100
PushB 22
Push_0
CallNative toggle_vehicle_mod 3 0
GetStatic1 100
Push_1
CallNative set_vehicle_tyres_can_burst 2 0
GetStatic1 100
PushB2 137 42
CallNative set_vehicle_colours 3 0
GetStatic1 100
PushB2 91 148
CallNative set_vehicle_extra_colours 3 0
GetStatic1 100
Push_2
CallNative set_vehicle_wheel_type 2 0
GetStatic1 100
PushB2 23 11
Push_0
CallNative set_vehicle_mod 4 0
GetStatic1 100
Push_3
CallNative set_vehicle_number_plate_text_index 2 0
GetStatic1 100
PushB 20//tyre smoke
Push_1
CallNative toggle_vehicle_mod 3 0
GetStatic1 100
PushB2 121 61
Push_0
CallNative set_vehicle_tyre_smoke_color 4 0
GetStatic1 100
Push_6
CallNative set_vehicle_window_tint 2 0
GetStatic1 100
Push_0
Push 14
CallNative get_random_int_in_range 2 1
switch [0 @badplate0]:[1 @badplate1]:[2 @badplate2]:[3 @badplate3]:[4 @badplate4]:[5 @badplate5]:[6 @badplate6]:[7 @badplate7]:[8 @badplate8]:[9 @badplate9]:[10 @badplate10]:[11 @badplate11]:[12 @badplate12]:[13 @badplate13]:[14 @badplate14]
:badplate0
pushstring "mmm sock"
jump @numplate
:badplate1
pushstring "i luv jb"
jump @numplate
:badplate2
pushstring "bubba"
jump @numplate
:badplate3
pushstring "powder"
jump @numplate
:badplate4
pushstring "mexicant"
jump @numplate
:badplate5
pushstring "feminist"
jump @numplate
:badplate6
pushstring "goober"
jump @numplate
:badplate7
pushstring "weeb"
jump @numplate
:badplate8
pushstring "fedora"
jump @numplate
:badplate9
pushstring "reeeeee"
jump @numplate
:badplate10
pushstring "limpdong"
jump @numplate
:badplate11
pushstring "foreskin"
jump @numplate
:badplate12
pushstring "boy toy"
jump @numplate
:badplate13
pushstring "mlg 420"
jump @numplate
:badplate14
pushstring "cornhole"
:numplate
CallNative set_vehicle_number_plate_text 2 0
Jump @endonlineplayeroptions
:onlinevehicleoptions10
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 61//online_network_request_clean
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_clean
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
CallNative set_vehicle_fixed 1 0
GetStatic1 100
PushF_0
CallNative set_vehicle_dirt_level 2 0
pushstring "Vehicle Fixed"
call @print_notification(string text)
Jump @endonlineplayeroptions
:onlinevehicleoptions11
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
PushB 60//online_network_request_invin
GetFrame1 1//islooped
call @bool_control_entity_id_no_wait(int_entity,jumptype,isloopedonline)
jumpfalse @endonlineplayeroptions
:online_network_request_invin
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 100
call @get_menu_number
CallNative set_entity_invincible 2 0
GetStatic1 100
call @get_menu_number
not
CallNative set_vehicle_can_be_visibly_damaged 2 0
GetStatic1 100
call @get_menu_number
not
CallNative set_entity_can_be_damaged 2 0
GetStatic1 100
call @get_menu_number
not
CallNative set_vehicle_tyres_can_burst 2 0
call @get_menu_number
jumpfalse @onlinepvnoninvin
pushstring "Players vehicle is now invincible."
jump @onlinepvinvin
:onlinepvnoninvin
pushstring "Players vehicle can now be damaged"
:onlinepvinvin
pushs 5000
call @print(string text,int ms)
Jump @endonlineplayeroptions
//<
//> online teleport options
:onlineteleportoptions
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 5//cursor index for online teleport options
Switch [1 @onlineteleportoptions1]:[2 @onlineteleportoptions2]:[3 @onlineteleportoptions3]:[4 @onlineteleportoptions4]:[5 @onlineteleportoptions5]:[6 @onlineteleportoptions6]
Jump @endonlineplayeroptions
:onlineteleportoptions1
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
GetStatic1 10//online player id
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
call @teleport_your_player(float_x,float_y,float_z)
jump @endonlineplayeroptions
:onlineteleportoptions2
GetFrame1 1//is looped
not
jumpfalse @cannotdoinloop
GetStatic1 10//player id
call @is_player_in_vehicle_teleport(playerid)
jumpfalse @endonlineplayeroptions
GetStatic1 10//player id
call @TeleportSelfIntoPlayersVehicle(int_playerid)
jump @endonlineplayeroptions
:onlineteleportoptions3
call @is_online_ped_in_vehicle_if_so_get_handle
dup
SetStatic1 100
jumpfalse @endonlineplayeroptions
GetStatic1 10//online player id
CallNative get_player_ped 1 1
CallNative clear_ped_tasks_immediately 1 0
jump @endonlineplayeroptions
:onlineteleportoptions4
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
GetFrame1 1//is looped
not
jumpfalse @teleonlinevlooped
GetStatic1 100
push_1
call @teleport_online_vehicle(x,y,z,entity,print)
jump @endonlineplayeroptions
:onlineteleportoptions5
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
PushF 3210.9387
PushF -4834.830//water
PushF -5.0
GetFrame1 1//is looped
not
jumpfalse @teleonlinevlooped
GetStatic1 100
push_1
call @teleport_online_vehicle(x,y,z,entity,print)
jump @endonlineplayeroptions
:onlineteleportoptions6
call @is_online_ped_in_vehicle_if_so_get_handle
SetStatic1 100
PushF 1736.0712//prison
PushF 2583.6306
PushF 46.0
GetFrame1 1//is looped
not
jumpfalse @teleonlinevlooped
GetStatic1 100
push_1
call @teleport_online_vehicle(x,y,z,entity,print)
jump @endonlineplayeroptions
:teleonlinevlooped
GetStatic1 100
push_0
call @teleport_online_vehicle(x,y,z,entity,print)
jump @endonlineplayeroptions
//<
//> attachable objects
:onlineattachableoptions
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endonlineplayeroptions
GetStatic1 5//cursor index for online teleport options
Switch [1 @onlineattachableoptions1]:[2 @onlineattachableoptions2]:[3 @onlineattachableoptions3]:[4 @onlineattachableoptions4]:[5 @onlineattachableoptions5]:[6 @onlineattachableoptions6]:[7 @onlineattachableoptions7]:[8 @onlineattachableoptions8]:[9 @onlineattachableoptions9]:[10 @onlineattachableoptions10]:[11 @onlineattachableoptions11]:[12 @onlineattachableoptions12]:[13 @onlineattachableoptions13]:[14 @onlineattachableoptions14]:[15 @onlineattachableoptions15]:[16 @onlineattachableoptions16]:[17 @onlineattachableoptions17]:[18 @onlineattachableoptions18]:[19 @onlineattachableoptions19]:[20 @onlineattachableoptions20]:[21 @onlineattachableoptions21]:[22 @onlineattachableoptions22]:[23 @onlineattachableoptions23]:[24 @onlineattachableoptions24]
Jump @endonlineplayeroptions
:online_obj_attached_end
GetFrame1 1//is looped
jumpfalse @online_obj_attached_note_end
getStatic1 26//saved hash and entity for model loading
CallNative does_entity_exist 1 1
jumpfalse @endonlineplayeroptions
getStatic1 26//saved hash and entity for model loading
CallNative get_entity_model 1 1
setStatic1 26//saved hash and entity for model loading
Jump @online_obj_attached_note_end
:online_obj_attached_note_end
pushstring "Object Attached"
call @print_notification(string text)
Jump @endonlineplayeroptions
:onlineattachableoptions1
push GetHash("prop_cs_hotdog_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 46//online_cs_hotdog_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_cs_hotdog_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -0.28
PushF 0.19
PushF 0.01
PushF_0
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions2
push GetHash("prop_alien_egg_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 45//online_alien_egg_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_alien_egg_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.2
PushF_0
PushF_0
PushF_0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions3
call @get_menu_number
Push_2
jumpeq @bigcone
push GetHash("prop_roadcone02a")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 44//online_roadcone02a_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_roadcone02a_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.1
PushF 0.02
PushF_0
PushF_0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:bigcone
push GetHash("prop_roadcone01a")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 43//online_roadcone01a_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_roadcone01a_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.1
PushF 0.02
PushF_0
PushF_0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions4
push GetHash("prop_ld_ferris_wheel")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 42//online_ld_ferris_wheel_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_ld_ferris_wheel_attach_object
GetStatic1 26//saved hash and entity for model loading
Push_-1
PushF_0
PushF_0
PushF -2.64
PushF_0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions5
push GetHash("prop_tv_test")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 41//online_tv_test_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_tv_test_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF_0
PushF_0
PushF_0
PushF 180.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions6
push GetHash("p_spinning_anus_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 40//online_spinning_anus_s_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_spinning_anus_s_attach_object
GetStatic1 26//saved hash and entity for model loading
Push_-1
PushF_0
PushF_0
PushF -3.0
PushF_0
PushF_0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions7
call @get_menu_number
Push_2
jumpeq @gasmask2
push GetHash("p_gasmask_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 39//online_gasmask_s_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_gasmask_s_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF_0
PushF_0
PushF_0
PushF -180.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:gasmask2
push GetHash("prop_gas_mask_hang_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 38//online_gas_mask_hang_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_gas_mask_hang_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.04
PushF 0.02
PushF 0.02
PushF 127
PushF 90
PushF -10
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions8
push GetHash("p_orleans_mask_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 37//online_orleans_mask_s_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_orleans_mask_s_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF_0
PushF_0
PushF_0
PushF -180.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions9
call @get_menu_number
Push_2
jumpeq @trevmask2
push GetHash("p_trevor_prologe_bally_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 36//online_trevor_prologe_bally_s_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_trevor_prologe_bally_s_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.06
PushF 0.03
PushF_0
PushF 180
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:trevmask2
push GetHash("p_trev_ski_mask_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 35//online_trev_ski_mask_s_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_trev_ski_mask_s_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF_0
PushF 0.025
PushF_0
PushF -180.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions10
push GetHash("prop_ld_hat_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 34//online_ld_hat_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_ld_hat_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.14
PushF 0.03
PushF_0
PushF -180.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions11
push GetHash("prop_michael_backpack")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 33//online_michael_backpack_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_michael_backpack_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 24818
CallNative get_ped_bone_index 2 1
PushF 0.062
PushF -0.182
PushF -0.015
PushF 167.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions12
push GetHash("prop_welding_mask_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 32//online_welding_mask_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_welding_mask_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.11
PushF 0.01
PushF_0
PushF 180
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions13
push GetHash("prop_headset_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 31//online_headset_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_headset_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.07
PushF_0
PushF 0.001
PushF 180
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions14
push GetHash("prop_prlg_snowpile")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 30//online_prlg_snowpile_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_prlg_snowpile_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 24818
CallNative get_ped_bone_index 2 1
PushF -0.45
PushF_0
PushF_0
PushF -50
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions15
push GetHash("prop_gnome3")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 29//online_gnome3_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_gnome3_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF -0.1
PushF 0.2
PushF_0
PushF_0
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions16
push GetHash("prop_air_bigradar")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 28//online_air_bigradar_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_air_bigradar_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF_1
PushF_0
PushF_0
PushF 90
PushF 90
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions17
push GetHash("p_airdancer_01_s")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 27//online_airdancer_01_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_airdancer_01_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 24816
CallNative get_ped_bone_index 2 1
PushF -3.1
PushF_0
PushF_0
PushF_0
PushF -90
PushF -180
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions18
push GetHash("prop_cs_katana_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 26//online_cs_katana_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_cs_katana_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 28422
CallNative get_ped_bone_index 2 1
PushF 0.056
PushF 0.05
PushF 0.01
PushF -77
PushF 10.6
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions19
push GetHash("prop_boxing_glove_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 25//online_boxing_glove_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_boxing_glove_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 28422
CallNative get_ped_bone_index 2 1
PushF 0.013
PushF_0
PushF -0.04
PushF 90
PushF 180
PushF -90
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions20
push GetHash("prop_ped_gib_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 24//online_ped_gib_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_ped_gib_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//player id
CallNative get_player_ped 1 1
pushs 24818
CallNative get_ped_bone_index 2 1
PushF 1.17
PushF -0.01
PushF_0
PushF_0
PushF -90.0
PushF 180.0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions21
push GetHash("prop_juicestand")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 20//online_juice_stand_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_juice_stand_attach_object
GetStatic1 26//saved hash and entity for model loading
Push_0
CallNative set_entity_visible 2 0
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//online player id
CallNative get_player_ped 1 1
pushs 24817
CallNative get_ped_bone_index 2 1
PushF_0
PushF_0
PushF_0
PushF_0
PushF_0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions22
push GetHash("prop_mr_raspberry_01")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 21//online_mr_raspberry_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_mr_raspberry_attach_object
GetStatic1 26//saved hash and entity for model loading
GetStatic1 10//online player id
CallNative get_player_ped 1 1
Push GetEnum("SKEL_Head")
CallNative get_ped_bone_index 2 1
PushF 0.360
PushF 0.050
PushF_0
PushF -180.0
PushF 90.0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions23
push GetHash("prop_xmas_tree_int")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 22//online_xmas_tree_int_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_xmas_tree_int_attach_object
GetStatic1 26//saved hash and entity for model loading
Push_-1
PushF_0
PushF_0
PushF -0.72
PushF_0
PushF_0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
:onlineattachableoptions24
push GetHash("prop_beach_fire")
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF 100.0
fadd
PushB 23//online_beach_fire_attach_object
Push_1
GetFrame1 1//is looped
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
Jumpfalse @endonlineplayeroptions
:online_beach_fire_attach_object
GetStatic1 26//saved hash and entity for model loading
Push_-1
PushF_0
PushF_0
PushF -1.10
PushF_0
PushF_0
PushF_0
call @attach_object_to_online_ped(obj,bone,x,y,z,pitch,roll,yaw)
Jump @online_obj_attached_end
//<
:cannotdoinloop
pushstring "~r~Error:~s~ You can not use this option on all players."
pushs 5000
call @print(string text,int ms)
:endonlineplayeroptions
return 4 0
//<
//> exch
:exch
Function 2 3
GetFrame1 1
GetFrame1 0
Return 2 2
//<
//> is_player_a_friend
:is_player_a_friend(playerid)
Function 1 16
GetFrame1 0
GetFrameP1 3
PushB 13
CallNative network_handle_from_player 3 0
GetFrameP1 3
CallNative network_is_friend 1 1
return 1 1
//<
//> load fx
:load_fx(string fx)
Function 1 5
Push_0
SetFrame1 5
GetFrame1 0
CallNative _has_ptfx_asset_loaded_with_name 1 1//is fx loaded
not
jumpfalse @end_load_fx
GetFrame1 0
CallNative _request_ptfx_asset_with_name 1 0//request fx
Push_0
return 1 1
:end_load_fx
Push_1
return 1 1
//unk_0xC44762A1(sLocal_101); remove fx dict
//<
//> load fx no wait
:load_fx_no_wait(string fx,jumptype)
Function 2 7
GetFrame1 0
CallNative _has_ptfx_asset_loaded_with_name 1 1//is fx loaded
jumpfalse @fx_notloaded
Push_1
return 2 1
:fx_notloaded
call @is_menu_loading
not
jumpfalse @end_load_fx_no_wait
GetFrame1 0
GetStaticP2 315//256 char text array
strcopy 248
Push_0
SetStatic1 9//load loop inc
GetFrame1 1//jumptype
SetStatic1 28//saved jumptype for model loading
Push_7//load fx
SetStatic1 27//type for model loading
:end_load_fx_no_wait
Push_0
return 2 1
//<
//> network_handle_check
//:network_handle_check
//Function 0 20
//PushB 37
//SetFrame1 17
//
//CallNative player_id 0 1
//GetFrameP1 3
//PushB 13
//CallNative network_handle_from_player 3 0//16979087 352323840 0 0 0 0 0 0 0 0 0 0 0
//
//
//:connetcheck
//
//GetFrame1 17
//PushB 39
//jumpgt @endnetcheck
//
//GetFrameP1 3
//GetFrame1 17
//PushB 37
//sub
//GetImmp
//pget
//dup
//SetStatic1 101
//GetStaticP1 54
//GetImmp1 83
//GetImmp1 97
//GetImmp1 12
//GetImmp1 19
//GetFrame1 17
//GetImmp
//pget
//dup
//SetStatic1 100
//sub
//GetStatic1 100
//GetStatic1 101
//sub
//or
//PushB 31
//CallNative shift_right 2 1
//add1 1
//call @hiddendrop2
//GetGlobalP3 100001
//mult
//pset
//
//
//GetFrame1 17
//add1 1
//SetFrame1 17
//
//jump @connetcheck
//
//:endnetcheck
//
//return 0 0
//<
//> network_send_text_msg
:network_send_text_msg(msg,player)
Function 2 20
getframe1 1
GetFrameP1 4
PushB 13
CallNative network_handle_from_player 3 0//16979087 352323840 0 0 0 0 0 0 0 0 0 0 0
getframe1 0
getframep1 4
CallNative network_send_text_message 2 1
Drop
return 2 0
//<
//> draw net handle
:draw_network_handle_list(playerid)
Function 1 30
GetFrame1 0
GetFrameP1 16
PushB 13
CallNative network_handle_from_player 3 0//16979087 352323840 0 0 0 0 0 0 0 0 0 0 0
Push_0
SetFrame1 30
pushstring ""
GetStaticP2 315//256 char text array
strcopy 248
:listloop
GetFrame1 30
PushB 12
jumpgt @endlistloop
GetFrameP1 16
GetFrame1 30
GetImmP
pget
GetStaticP2 315//256 char text array
straddi 16
pushstring "~n~"
GetStaticP2 315//256 char text array
stradd 8
GetFrame1 30
add1 1
SetFrame1 30
jump @listloop
:endlistloop
Push GetEnum("Chalet-LondonNineteenSixty")
PushF_1
PushF 0.35
Push_0
Push_0
Push_0
Push_0
PushB3 255 255 255
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetStaticP2 315//256 char text array
PushF 0.05
PushF 0.13
Push_0
call @display_text(string_text,float_x,float_y,bool IsGtxText)
return 1 0
//<
//> disable_game_controls_this_frame
:disable_game_controls_this_frame
Function 0 4
CallNative is_mobile_phone_call_ongoing 0 1
JumpFalse @constartdraw
Push_0
CallNative stop_scripted_conversation 1 1
drop
:constartdraw
Push_0
CallNative display_ammo_this_frame 1 0
//CallNative hide_help_text_this_frame 0 0
Push_0
CallNative set_cinematic_button_active 1 0
Push_2
Push GetEnum("INPUT_NEXT_CAMERA")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_NEXT_CAMERA")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_VEH_SELECT_NEXT_WEAPON")
CallNative disable_control_action 2 0
//Push_0
//Push GetEnum("INPUT_VEH_HANDBRAKE")
//CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_VEH_CIN_CAM")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_DOWN")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_UP")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_LEFT")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_RIGHT")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_X")
CallNative set_input_exclusive 2 0
Push_0
Push GetEnum("INPUT_HUD_SPECIAL")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_LEFT")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_RIGHT")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_DOWN")
CallNative disable_control_action 2 0
Push_2
Push GetEnum("INPUT_FRONTEND_UP")
CallNative disable_control_action 2 0
CallNative network_is_game_in_progress 0 1
JumpFalse @menu_modify_game_state_end
Push GetEnum("HUD_VEHICLE_NAME")
CallNative hide_hud_component_this_frame 1 0
Push GetEnum("HUD_AREA_NAME")
CallNative hide_hud_component_this_frame 1 0
Push GetEnum("HUD_STREET_NAME")
CallNative hide_hud_component_this_frame 1 0
Push GetEnum("HUD_VEHICLE_CLASS")
CallNative hide_hud_component_this_frame 1 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_UNARMED")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_MELEE")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_HANDGUN")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_SHOTGUN")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_SMG")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_AUTO_RIFLE")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_SNIPER")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_HEAVY")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_WEAPON_SPECIAL")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_WEAPON_WHEEL_NEXT")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_WEAPON_WHEEL_PREV")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_WEAPON_SPECIAL")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_WEAPON_SPECIAL_TWO")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_MELEE_ATTACK_LIGHT")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_MELEE_ATTACK_HEAVY")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_MELEE_BLOCK")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_DETONATE")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_VEH_HEADLIGHT")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_VEH_RADIO_WHEEL")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_CONTEXT")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_RELOAD")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_DIVE")
CallNative disable_control_action 2 0
//Push_0
//Push GetEnum("INPUT_JUMP")
//CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_VEH_SELECT_NEXT_WEAPON")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_VEH_FLY_SELECT_NEXT_WEAPON")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_CHARACTER_FRANKLIN")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_CHARACTER_MICHAEL")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_CHARACTER_TREVOR")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_SELECT_CHARACTER_MULTIPLAYER")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_CHARACTER_WHEEL")
CallNative disable_control_action 2 0
:menu_modify_game_state_end
return 0 0
//<
//> give all normal weapons to your ped
:give_all_normal_weapons_to_your_ped
Function 0 2
push -1716189206
call @give_weapon_to_your_ped(int_hash)
push 1737195953
call @give_weapon_to_your_ped(int_hash)
push 1317494643
call @give_weapon_to_your_ped(int_hash)
push -1786099057
call @give_weapon_to_your_ped(int_hash)
push 1141786504
call @give_weapon_to_your_ped(int_hash)
push -2067956739
call @give_weapon_to_your_ped(int_hash)
push 453432689
call @give_weapon_to_your_ped(int_hash)
push 1593441988
call @give_weapon_to_your_ped(int_hash)
push 584646201
call @give_weapon_to_your_ped(int_hash)
push -1716589765
call @give_weapon_to_your_ped(int_hash)
push 324215364
call @give_weapon_to_your_ped(int_hash)
push 736523883
call @give_weapon_to_your_ped(int_hash)
push -270015777
call @give_weapon_to_your_ped(int_hash)
push -1074790547
call @give_weapon_to_your_ped(int_hash)
push -2084633992
call @give_weapon_to_your_ped(int_hash)
push -1357824103
call @give_weapon_to_your_ped(int_hash)
push -1660422300
call @give_weapon_to_your_ped(int_hash)
push 2144741730
call @give_weapon_to_your_ped(int_hash)
push 487013001
call @give_weapon_to_your_ped(int_hash)
push 2017895192
call @give_weapon_to_your_ped(int_hash)
push -494615257
call @give_weapon_to_your_ped(int_hash)
push -1654528753
call @give_weapon_to_your_ped(int_hash)
push 911657153
call @give_weapon_to_your_ped(int_hash)
push 100416529
call @give_weapon_to_your_ped(int_hash)
push 205991906
call @give_weapon_to_your_ped(int_hash)
push -1568386805
call @give_weapon_to_your_ped(int_hash)
push 1305664598
call @give_weapon_to_your_ped(int_hash)
push -1312131151
call @give_weapon_to_your_ped(int_hash)
push 1752584910
call @give_weapon_to_your_ped(int_hash)
push 1119849093
call @give_weapon_to_your_ped(int_hash)
push -1813897027
call @give_weapon_to_your_ped(int_hash)
push 741814745
call @give_weapon_to_your_ped(int_hash)
push -37975472
call @give_weapon_to_your_ped(int_hash)
push -1600701090
call @give_weapon_to_your_ped(int_hash)
push 615608432
call @give_weapon_to_your_ped(int_hash)
push 101631238
call @give_weapon_to_your_ped(int_hash)
push 883325847
call @give_weapon_to_your_ped(int_hash)
push 375527679//PASSENGER_ROCKET
call @give_weapon_to_your_ped(int_hash)
push 600439132//baseball
call @give_weapon_to_your_ped(int_hash)
push -72657034
call @give_weapon_to_your_ped(int_hash)
push 1233104067//flare
call @give_weapon_to_your_ped(int_hash)
return 0 0
//<
//> give all dlc weapons to your ped
:give_all_dlc_weapons_to_your_ped
Function 0 2
push -102323637
call @give_weapon_to_your_ped(int_hash)
push 1627465347
call @give_weapon_to_your_ped(int_hash)
push -1063057011
call @give_weapon_to_your_ped(int_hash)
push -771403250
call @give_weapon_to_your_ped(int_hash)
push -1076751822
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_BULLPUPRIFLE")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_DAGGER")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_VINTAGEPISTOL")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_FIREWORK")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_MUSKET")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_HEAVYSHOTGUN")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_MARKSMANRIFLE")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_HOMINGLAUNCHER")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_PROXMINE")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_SNOWBALL")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_FLAREGUN")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_COMBATPDW")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_MARKSMANPISTOL")
call @give_weapon_to_your_ped(int_hash)
push GetHash("WEAPON_KNUCKLE")
call @give_weapon_to_your_ped(int_hash)
return 0 0
//<
//> last sel switch
:*level_to_last_sel
Function 1 3
GetFrame1 0
switch [0 @last_selected_level_0]:[1 @last_selected_level_1]:[2 @last_selected_level_2]:[3 @last_selected_level_3]:[4 @last_selected_level_4]:[5 @last_selected_level_5]:[6 @last_selected_level_6]:[7 @last_selected_level_7]
Push_0
return 1 1
:last_selected_level_0
GetStaticP1 4//last selected of item level zero,0
return 1 1
:last_selected_level_1
GetStaticP1 2//last selected of item level one,0
return 1 1
:last_selected_level_2
GetStaticP1 1//last selected of item level two,0
return 1 1
:last_selected_level_3
GetStaticP1 34//last selected of item level three,0
return 1 1
:last_selected_level_4
GetStaticP1 38//last selected of item level four,0
return 1 1
:last_selected_level_5
GetStaticP1 8//last selected of item level five,0
return 1 1
:last_selected_level_6
GetStaticP1 204//last selected of item level six,0
return 1 1
:last_selected_level_7
GetStaticP1 206//last selected of item level seven,0
return 1 1
:*level_to_last_start_index
Function 1 3
GetFrame1 0
switch [0 @last_selected_start_id_level_0]:[1 @last_selected_start_id_level_1]:[2 @last_selected_start_id_level_2]:[3 @last_selected_start_id_level_3]:[4 @last_selected_start_id_level_4]:[5 @last_selected_start_id_level_5]:[6 @last_selected_start_id_level_6]:[7 @last_selected_start_id_level_7]
Push_0
return 1 1
:last_selected_start_id_level_0
GetStaticP1 15//last selected start index of item level zero,0
return 1 1
:last_selected_start_id_level_1
GetStaticP1 16//last selected start index of item level one,0
return 1 1
:last_selected_start_id_level_2
GetStaticP1 17//last selected start index of item level two,0
return 1 1
:last_selected_start_id_level_3
GetStaticP1 18//last selected start index of item level three,0
return 1 1
:last_selected_start_id_level_4
GetStaticP1 19//last selected start index of item level four,0
return 1 1
:last_selected_start_id_level_5
GetStaticP1 39//last selected start index of item level five,0
return 1 1
:last_selected_start_id_level_6
GetStaticP1 205//last selected start index of item level five,0
return 1 1
:last_selected_start_id_level_7
GetStaticP1 207//last selected start index of item level five,0
return 1 1
//<
//> toggle bit
:toggle_bit(var*,bit)
Function 2 5
GetFrame1 0
pget
GetFrame1 1
CallNative is_bit_set 2 1
jumpfalse @setbitfortoggle
GetFrame1 0
GetFrame1 1
CallNative clear_bit 2 0
return 2 0
:setbitfortoggle
GetFrame1 0
GetFrame1 1
CallNative set_bit 2 0
return 2 0
//<
//> set bit inline
:set_bit_inline(var*,bit,bool set)
Function 3 5
getframe1 2
jumpfalse @clearbitinline
GetFrame1 0
GetFrame1 1
CallNative set_bit 2 0
return 3 0
:clearbitinline
GetFrame1 0
GetFrame1 1
CallNative clear_bit 2 0
return 3 0
//<
//> get_all_player_or_individual_toggle
:get_all_player_or_individual_toggle(bit)
Function 1 5
GetStatic1 2//last selected of item level one
Push_2
jumpne @drawindividual
GetStatic1 29//all player toggles bitset
GetFrame1 0
CallNative is_bit_set 2 1
return 1 1
:drawindividual
GetStatic1 10//player id
GetFrame1 0
call @is_individual_player_loop_bit_set(playerindex,bitindex)
return 1 1
//<
//> toggle_bit_on_all_or_ind
:toggle_bit_on_all_or_ind(bool_isall,bit)
Function 2 5
GetFrame1 0//is looped
jumpfalse @contoggle_bit_on_all_or_ind
GetStaticP1 29//all player toggles bitset
GetFrame1 1
call @toggle_bit(var*,bit)
Push_1
Call @updatemenutext(istoggle)
PushB 16
SetStatic1 10
return 2 0
:contoggle_bit_on_all_or_ind
GetStatic1 10//player id
call @bool_is_player_in_game(playerindex)
jumpfalse @endtoggle_bit_on_all_or_ind
GetFrame1 1
call @toggle_online_bitset_on_sel_player(bitindex)
:endtoggle_bit_on_all_or_ind
return 2 0
//<
//> can_continue_all_player_loop
:can_continue_all_player_loop(playerid,boolskp,bitforloop)
Function 3 10
GetStatic1 29//all player toggles bitset
GetFrame1 2
CallNative is_bit_set 2 1
GetFrame1 0
CallNative player_id 0 1
cmpne
and
GetFrame1 1
not
jumpfalse @endcan_continue_all_player_loop
GetFrame1 0
pushstring "Native Function"
pushstring "Nayjames123"
pushstring "The Stickie Mod"
pushstring "aTk Pirate V2"
pushstring "MachineGun Mack"
pushstring "Scripting Mods"
pushstring "PraiseTheOpcode"
pushstring "Almighty Opcode"
pushstring "Almighty 0pCode"
pushstring "Rockstar Game03"
pushstring "The Smooth Mod"
call @whitelistcheck
and
GetFrame1 0
call @is_player_a_friend(playerid)
not
and
:endcan_continue_all_player_loop
return 3 1
//<
//> null_all_statics
:null_all_statics
Function 0 10
Push_0
SetFrame1 3
:loopnas
GetFrame1 3
pushs 748//num of statics in clothes shop
jumpge @exitnas
Push_0
GetStaticP1 0
GetFrame1 3
GetImmP
pset
GetFrame1 3
add1 1
SetFrame1 3
jump @loopnas
:exitnas
return 0 0
//<
//> spawn vehicle wait
:spawn_vehicle_wait(int_modelhash)
Function 1 10
GetFrame1 0
CallNative is_model_in_cdimage 1 1
jumpfalse @returnspawnvehwait
GetFrame1 0
CallNative has_model_loaded 1 1
not
jumpfalse @spawn_vehicle_wait_ok
Push_0
SetFrame1 5
GetFrame1 0
CallNative request_model 1 0
:spawn_vehicle_wait_loop
getframe1 5
pushb 30
jumpgt @endspawnerrwait
push_0
callnative wait 1 0
getframe1 5
add1 1
setframe1 5
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @spawn_vehicle_wait_loop
:spawn_vehicle_wait_ok
GetFrame1 0
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
pushf_5
fsub
CallNative player_ped_id 0 1
CallNative get_entity_heading 1 1
Push_1//do not create network id bool
Push_1//do not create vehicle id bool?
CallNative create_vehicle 7 1
dup
SetFrame1 6
callnative veh_to_net 1 1
SetFrame1 7
GetFrame1 7
callnative network_does_network_id_exist 1 1
jumpfalse @endspawnerrwait
GetFrame1 6
Push_1
callnative unk_0xD3850671 2 0
GetFrame1 7
Push_1
callnative set_network_id_exists_on_all_machines 2 0
GetFrame1 6
CallNative does_entity_exist 1 1
jumpfalse @endspawnerrwait
getFrame1 6
Return 1 1
:endspawnerrwait
pushstring "~r~Error:~s~ Vehicle could not spawn. Script is not reqistered."
pushs 5000
call @print(string text,int ms)
:returnspawnvehwait
Push_0
return 1 1
//<
//> spawn vehicle
:spawn_vehicle(int_modelhash)
Function 1 10
GetFrame1 0
CallNative is_model_in_cdimage 1 1
jumpfalse @returnspawnveh
Push_0
SetFrame1 5
PushF_0
SetFrame1 9
GetFrame1 0
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
CallNative player_ped_id 0 1
CallNative get_entity_heading 1 1
Push_1//do not create network id bool
Push_1//do not create vehicle id bool?
CallNative create_vehicle 7 1
dup
SetFrame1 6
callnative veh_to_net 1 1
SetFrame1 7
GetFrame1 7
callnative network_does_network_id_exist 1 1
jumpfalse @endspawnerr
GetFrame1 6
Push_1
callnative unk_0xD3850671 2 0
GetFrame1 7
Push_1
callnative set_network_id_exists_on_all_machines 2 0
GetFrame1 6
CallNative does_entity_exist 1 1
jumpfalse @endspawnerr
//> vehicle handling
call @are_you_in_veh_if_so_get_handle
dup
SetFrame1 8
jumpfalse @notincarforvehspawner
GetFrame1 8
CallNative get_entity_speed 1 1
SetFrame1 9
GetFrame1 8
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetFrameP1 8
callnative delete_vehicle 1 0
:notincarforvehspawner
GetFrame1 6
call @FindFreeCarSeat
SetFrame1 7
GetFrame1 7
push -2
jumpeq @nofreeseatsforspawnveh
CallNative player_ped_id 0 1
GetFrame1 6
GetFrame1 7
CallNative set_ped_into_vehicle 3 0
GetFrame1 6
Push_1
Push_1
callnative set_vehicle_engine_on 3 0
GetFrame1 0
callnative is_this_model_a_plane 1 1
GetFrame1 0
callnative is_this_model_a_heli 1 1
or
jumpfalse @vehspawn_notheli
GetFrame1 6
callnative set_heli_blades_full_speed 1 0
:vehspawn_notheli
GetFrame1 6
GetFrame1 9
CallNative set_vehicle_forward_speed 2 0
//<
:nofreeseatsforspawnveh
GetFrame1 0
CallNative set_model_as_no_longer_needed 1 0
GetFrame1 6
Return 1 1
:endspawnerr
pushstring "~r~Error:~s~ Vehicle could not spawn. Script is not reqistered."
pushs 5000
call @print(string text,int ms)
:returnspawnveh
Push_0
return 1 1
//<
//> spawn vehicle no wait
:spawn_vehicle_no_wait(hash,jumptype)
Function 2 4
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @request_vehicle
GetFrame1 0
call @spawn_vehicle(int_modelhash)
SetStatic1 26//saved hash and entity for model loading
Push_1
return 2 1
:request_vehicle
call @is_menu_loading
not
jumpfalse @end_spawn_vehicle_no_wait
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_1//vehicle
SetStatic1 27//type for model loading
GetFrame1 1
SetStatic1 28//saved jumptype for model loading
Push_0
SetStatic1 9//load loop inc
:end_spawn_vehicle_no_wait
Push_0
return 2 1
//<
//> looped options
:looped_options
Function 0 10
//> player loops
//> is char valid else skip
CallNative player_ped_id 0 1
CallNative does_entity_exist 1 1
CallNative player_ped_id 0 1
CallNative is_entity_dead 1 1
not
and
jumpfalse @skip_player_loops
//<
//> godmode
GetStatic1 20
Push_0//godmode bool
CallNative is_bit_set 2 1
jumpfalse @godmode_off_continue
CallNative player_id 0 1
Push_1
CallNative set_player_invincible 2 0
CallNative player_ped_id 0 1
dup
dup
Push_0
CallNative set_ped_can_ragdoll 2 0
Push_0
CallNative set_ped_can_ragdoll_from_player_impact 2 0
Push_0
CallNative is_ped_in_any_vehicle 2 1
JumpFalse @godmode_off_continue
callnative player_ped_id 0 1
Push_1
callnative set_ped_can_be_knocked_off_vehicle 2 0
CallNative network_is_game_in_progress 0 1
not
jumpfalse @godmode_off_continue
callnative player_ped_id 0 1
Push_0
callnative set_ped_can_be_dragged_out 2 0
CallNative player_ped_id 0 1
pushb 32//PED_FLAG_CAN_FLY_THRU_WINDSCREEN
push_0
callnative set_ped_config_flag 3 0
:godmode_off_continue
//<
//> invisable
GetStatic1 20
Push_2//invis bool
CallNative is_bit_set 2 1
jumpfalse @invis_off_continue
CallNative player_ped_id 0 1
Push_0
CallNative set_entity_visible 2 0
CallNative player_ped_id 0 1
Push_0
callnative set_ped_can_be_targetted 2 0
:invis_off_continue
//<
//> super run
GetStatic1 20
Push_1//superrun bool
CallNative is_bit_set 2 1
jumpfalse @superrun_off_continue
CallNative is_pause_menu_active 0 1
not
jumpfalse @superrun_off_continue
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_control_just_released 2 1
not
jumpfalse @superrunreleased
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_control_pressed 2 1
JumpFalse @superrun_off_continue
GetStatic1 20
Push_0//godmode bool
CallNative is_bit_set 2 1
not
jumpfalse @skipragdoll
CallNative player_ped_id 0 1
Push_0
CallNative set_ped_can_ragdoll 2 0
:skipragdoll
CallNative player_ped_id 0 1
Push_1
PushF_0
PushF 50.0
PushF -10.0
PushF_0
PushF_0
PushF_0
Push_0
Push_1
Push_1
Push_1
Push_0
Push_1
CallNative apply_force_to_entity 14 0
jump @superrun_off_continue
:superrunreleased
CallNative player_ped_id 0 1
Push_1
CallNative freeze_entity_position 2 0
CallNative player_ped_id 0 1
Push_0
CallNative freeze_entity_position 2 0
:superrun_off_continue
//<
//> force field
GetStatic1 20
Push_4//forcefield bool
CallNative is_bit_set 2 1
jumpfalse @forcefield_off_continue
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
Push_5
PushF_7
Push_0
Push_1
PushF_0
CallNative add_explosion 8 0
:forcefield_off_continue
//<
//> never wanted
GetStatic1 20
Push_3//never wanted bool
CallNative is_bit_set 2 1
jumpfalse @neverwanted_off_continue
CallNative player_id 0 1
Push_0
Push_0
CallNative set_player_wanted_level 3 0
Push_0
CallNative set_max_wanted_level 1 0
:neverwanted_off_continue
//<
//> xyzh coords
GetStatic1 24
Push_2//xyzh bool
CallNative is_bit_set 2 1
jumpfalse @xyzh_off_continue
call @start_drawing_relative_to_screen_left
CallNative player_ped_id 0 1
Push_0
CallNative get_entity_coords 2 3
CallNative player_ped_id 0 1
CallNative get_entity_heading 1 1
CallNative get_gameplay_cam_relative_heading 0 1
CallNative get_gameplay_cam_relative_pitch 0 1
Call @draw_xyz_coords(x,y,z,h,ch,cp)
CallNative _end_relative_draw 0 0
:xyzh_off_continue
//<
//> one hit one kill
GetStatic1 22
Push_1//onehitonekill bool
CallNative is_bit_set 2 1
jumpfalse @onehitonekill_off_continue
callnative player_id 0 1
PushF 200.0
callnative set_player_weapon_damage_modifier 2 0
:onehitonekill_off_continue
//<
//> unlimited ammo
GetStatic1 22
Push_2//unlimited ammo bool
CallNative is_bit_set 2 1
jumpfalse @unlimitedammo_off_continue
call @set_self_ammo_as_max_ammo
//loop testing------------------------
//SET_PED_CAPSULE(Ped ped, float value)
CallNative get_player_ped 1 1
getstatic2 701
callnative SET_PED_CAPSULE 2 0
jump @unlimitedammo_off_continue
Getstatic2 700
CallNative get_player_ped 1 1
CallNative does_entity_exist 1 1
jumpfalse @unlimitedammo_off_continue
push GetHash("luxor2")
call @spawn_vehicle_wait(int_modelhash)
setstatic1 100
getStatic1 100
Push_1
CallNative freeze_entity_position 2 0
getStatic1 100
push_1
callnative set_vehicle_has_been_owned_by_player 2 0
getStatic1 100
pushstring "Player_Vehicle"
callnative player_id 0 1
callnative unk_0xF8D7AF3B 1 1
callnative decor_set_int 3 1
drop
getStatic1 100
pushstring "MPBitset"
push 0x00000008
callnative decor_set_int 3 1
drop
pushs 500
callnative wait 1 0
Getstatic2 700
CallNative get_player_ped 1 1
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
pushf_5
fsub
Push_5
PushF_7
Push_0
Push_1
PushF_0
CallNative add_owned_explosion 9 0
pushs 500
callnative wait 1 0
getStatic1 100
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
getStaticp1 100
callnative delete_vehicle 1 0
jump @unlimitedammo_off_continue
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @set_last_vehicle_to_migrate
getstatic1 100
push_-1
callnative get_ped_in_vehicle_seat 2 1
dup
setstatic1 101
CallNative does_entity_exist 1 1
jumpfalse @unlimitedammo_off_continue
getstatic1 101
callnative player_ped_id 0 1
jumpne @unlimitedammo_off_continue
GetStatic1 100
callnative network_get_network_id_from_entity 1 1
Push_0
callnative set_network_id_can_migrate 2 0
GetStatic1 100
callnative network_has_control_of_entity 1 1
not
jumpfalse @unlimitedammo_off_continue
GetStatic1 100
CallNative network_request_control_of_entity 1 1
drop
jump @unlimitedammo_off_continue
:set_last_vehicle_to_migrate
callnative get_players_last_vehicle 0 1
CallNative does_entity_exist 1 1
jumpfalse @unlimitedammo_off_continue
callnative get_players_last_vehicle 0 1
callnative network_get_network_id_from_entity 1 1
Push_1
callnative set_network_id_can_migrate 2 0
jump @unlimitedammo_off_continue
GetStatic1 89//saved object for drive on water
CallNative does_entity_exist 1 1
jumpfalse @unlimitedammo_off_continue
GetStatic1 89//saved object for drive on water
CallNative is_entity_an_object 1 1
jumpfalse @unlimitedammo_off_continue
GetStatic1 89//saved object for drive on water
Push_0
CallNative set_entity_visible 2 0
GetStatic1 89//saved object for drive on water
Push_0
CallNative freeze_entity_position 2 0
GetStatic1 89//saved object for drive on water
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
Push_0
Push_0
Push_0
CallNative set_entity_coords_no_offset 7 0
GetStatic1 89//saved object for drive on water
PushF 0//pitch
CallNative player_ped_id 0 1
CallNative get_entity_heading 1 1
PushF_0
Push_2
Push_1
CallNative set_entity_rotation 6 0
GetStatic1 89//saved object for drive on water
Push_1
CallNative freeze_entity_position 2 0
jump @unlimitedammo_off_continue
//neon testing below
GetStatic1 100
CallNative get_entity_model 1 1
GetStaticP1 104//104 = x 105 = y 106 = z//left x, back y, bottom z
GetStaticP1 107//107 = x 108 = y 109 = z//right x, front y, top z
CallNative get_model_dimensions 3 0
GetStatic1 106
PushF 0.2
fadd
SetStatic1 103//z punch
//> front right
//GetStatic1 104//left x
//PushF 0.5
//fadd
PushF_0
SetStatic1 101//x punch
GetStatic1 108//front y
PushF 0.5
fsub
SetStatic1 102//y punch
:neonfrontright
GetStatic1 101//x punch
GetStatic1 107//right x
PushF 0.5
fsub
fcmpgt
not
jumpfalse @neonstartfrontleft
GetStatic1 100
GetStatic1 101//x punch
GetStatic1 102//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//x punch
PushF 0.5
fadd
SetStatic1 101//x punch
jump @neonfrontright
//<
//> front left
:neonstartfrontleft
PushF -0.5
SetStatic1 101//x punch
:neonfrontleft
GetStatic1 101//x punch
GetStatic1 104//left x
PushF 0.5
fadd
fcmplt
not
jumpfalse @startbackright
GetStatic1 100
GetStatic1 101//x punch
GetStatic1 102//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//x punch
PushF 0.5
fsub
SetStatic1 101//x punch
jump @neonfrontleft
//<
//> back right
:startbackright
PushF_0
SetStatic1 101//x punch
GetStatic1 105//back y
PushF 0.5
fadd
SetStatic1 102//y punch
:neonbackright
GetStatic1 101//x punch
GetStatic1 107//right x
PushF 0.5
fsub
fcmpgt
not
jumpfalse @neonstartbackleft
GetStatic1 100
GetStatic1 101//x punch
GetStatic1 102//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//x punch
PushF 0.5
fadd
SetStatic1 101//x punch
jump @neonbackright
//<
//> back left
:neonstartbackleft
PushF -0.5
SetStatic1 101//x punch
:neonbackleft
GetStatic1 101//x punch
GetStatic1 104//left x
PushF 0.5
fadd
fcmplt
not
jumpfalse @neonstartleftsideright
GetStatic1 100
GetStatic1 101//x punch
GetStatic1 102//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//x punch
PushF 0.5
fsub
SetStatic1 101//x punch
jump @neonbackleft
//<
//> left side right
:neonstartleftsideright
PushF_0
SetStatic1 101//y
GetStatic1 104//left x
PushF 0.5
fadd
SetStatic1 102//x
:neonleftsideright
GetStatic1 101//y
GetStatic1 105//back y
PushF 0.5
fadd
fcmplt
not
jumpfalse @neonstartleftsideleft
GetStatic1 100
GetStatic1 102//x punch
GetStatic1 101//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//y
PushF 0.5
fsub
SetStatic1 101//y
jump @neonleftsideright
//<
//> left side left
:neonstartleftsideleft
PushF 0.5
SetStatic1 101//y
:neonleftsideleft
GetStatic1 101//y
GetStatic1 108//front y
PushF 0.5
fsub
fcmpgt
not
jumpfalse @neonstartrightsideright
GetStatic1 100
GetStatic1 102//x punch
GetStatic1 101//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//y
PushF 0.5
fadd
SetStatic1 101//y
jump @neonleftsideleft
//<
//> right side right
:neonstartrightsideright
PushF_0
SetStatic1 101//y
GetStatic1 107//right x
PushF 0.5
fsub
SetStatic1 102//x
:neonrightsideright
GetStatic1 101//y
GetStatic1 105//back y
PushF 0.5
fadd
fcmplt
not
jumpfalse @neonstartrightsideleft
GetStatic1 100
GetStatic1 102//x punch
GetStatic1 101//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//y
PushF 0.5
fsub
SetStatic1 101//y
jump @neonrightsideright
//<
//> right side left
:neonstartrightsideleft
PushF 0.5
SetStatic1 101//y
:neonrightsideleft
GetStatic1 101//y
GetStatic1 108//front y
PushF 0.5
fsub
fcmpgt
not
jumpfalse @unlimitedammo_off_continue
GetStatic1 100
GetStatic1 102//x punch
GetStatic1 101//y punch
GetStatic1 103//z punch
CallNative get_offset_from_entity_in_world_coords 4 3
call @draw_neon(x,y,z)
GetStatic1 101//y
PushF 0.5
fadd
SetStatic1 101//y
jump @neonrightsideleft
//<
//GetStatic1 62
//call @draw_network_handle_list(playerid)
:unlimitedammo_off_continue
//<
//> rocket gun
GetStatic1 22
Push_0//rocket gun bool
CallNative is_bit_set 2 1
jumpfalse @rocketgun_off_continue
CallNative player_ped_id 0 1
CallNative is_ped_shooting 1 1
jumpfalse @rocketgun_off_continue
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @rocketgunnotinveh
PushF_5
jump @continuerocketgun
:rocketgunnotinveh
call @get_dist_between_ped_and_game_cam
:continuerocketgun
call @get_coord_in_front_of_gameplaycam(float range)
PushF 500.0
call @get_coord_in_front_of_gameplaycam(float range)
Push_0
Push_1
GetStatic1 74
switch [1 @shoot_projectile_rpg]:[2 @shoot_projectile_stinger]:[3 @shoot_projectile_firework]:[4 @shoot_projectile_grenadelauncher]:[5 @shoot_projectile_grenade]:[6 @shoot_projectile_stickybomb]:[7 @shoot_projectile_smokegrenade]:[8 @shoot_projectile_molotov]:[9 @shoot_projectile_flare]:[10 @shoot_projectile_hominglauncher]:[11 @shoot_projectile_proxmine]:[12 @shoot_projectile_snowball]:[13 @shoot_projectile_flaregun]
:shoot_projectile_rpg
push GetHash("WEAPON_RPG")
jump @shoot_projectile
:shoot_projectile_stinger
Push GetHash("WEAPON_STINGER")
jump @shoot_projectile
:shoot_projectile_firework
push GetHash("WEAPON_FIREWORK")
jump @shoot_projectile
:shoot_projectile_grenadelauncher
push GetHash("WEAPON_GRENADELAUNCHER")
jump @shoot_projectile
:shoot_projectile_grenade
push GetHash("WEAPON_GRENADE")
jump @shoot_projectile
:shoot_projectile_stickybomb
push GetHash("WEAPON_STICKYBOMB")
jump @shoot_projectile
:shoot_projectile_smokegrenade
push GetHash("WEAPON_SMOKEGRENADE")
jump @shoot_projectile
:shoot_projectile_molotov
push GetHash("WEAPON_MOLOTOV")
jump @shoot_projectile
:shoot_projectile_flare
push GetHash("WEAPON_FLARE")
jump @shoot_projectile
:shoot_projectile_hominglauncher
push GetHash("WEAPON_HOMINGLAUNCHER")
jump @shoot_projectile
:shoot_projectile_proxmine
push GetHash("WEAPON_PROXMINE")
jump @shoot_projectile
:shoot_projectile_snowball
push GetHash("WEAPON_SNOWBALL")
jump @shoot_projectile
:shoot_projectile_flaregun
push GetHash("WEAPON_FLAREGUN")
jump @shoot_projectile
:shoot_projectile
CallNative player_ped_id 0 1
Push_0
Push_1
PushF 2500.0
CallNative shoot_single_bullet_between_coords 13 0
:rocketgun_off_continue
//<
//> drive on water
GetStatic1 21
Push_4//drive on water bool
CallNative is_bit_set 2 1
jumpfalse @driveonwater_off_continue
PushB 19//object drive on water special
GetStatic1 28//saved jumptype for model loading
jumpeq @driveonwater_off_continue
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
drop
PushF_0
GetStaticP1 100
CallNative get_water_height 4 1
jumpfalse @driveonwater_off_continue
GetStatic1 89//saved object for drive on water
CallNative does_entity_exist 1 1
jumpfalse @errordow
GetStatic1 89//saved object for drive on water
CallNative is_entity_an_object 1 1
jumpfalse @errordow
CallNative network_is_in_session 0 1
jumpfalse @offline_dow_no_need
GetStatic1 89//saved object for drive on water
CallNative network_request_control_of_entity 1 1
drop
GetStatic1 89//saved object for drive on water
callnative network_get_network_id_from_entity 1 1
Push_0
callnative set_network_id_can_migrate 2 0
:offline_dow_no_need
GetStatic1 89//saved object for drive on water
Push_0
CallNative set_entity_visible 2 0
GetStatic1 89//saved object for drive on water
Push_0
CallNative freeze_entity_position 2 0
GetStatic1 89//saved object for drive on water
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
drop
GetStatic1 100
Push_1
Push_1
Push_0
Push_1
CallNative set_entity_coords 8 0
GetStatic1 89//saved object for drive on water
Push_1
CallNative freeze_entity_position 2 0
jump @driveonwater_off_continue
:errordow
push GetHash("prop_jet_bloodsplat_01")//0.1311 dist down from center
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
drop
GetStatic1 100
PushB 19//object drive on water special
Push_0
Push_0//is looped online
call @spawn_object_no_wait(int model,x,y,z,jumptype,isonline,islooped)
drop
:driveonwater_off_continue
//<
//> fly mod
GetStatic1 24
Push_3//flymod bool
CallNative is_bit_set 2 1
jumpfalse @flymod_off_continue
CallNative is_pause_menu_active 0 1
not
jumpfalse @flymod_off_continue
Push_2
Push GetEnum("INPUT_FRONTEND_X")
CallNative is_control_pressed 2 1
jumpfalse @checknoclip
CallNative player_ped_id 0 1
CallNative get_ped_stealth_movement 1 1
jumpfalse @notinstealth
CallNative player_ped_id 0 1
Push_0
Push_0
CallNative set_ped_stealth_movement 3 0
:notinstealth
Push_2
Push GetEnum("INPUT_FRONTEND_X")
CallNative is_control_pressed 2 1
Push_2
Push GetEnum("INPUT_FRONTEND_LS")
CallNative is_control_just_pressed 2 1
and
Jumpfalse @checknoclip
GetStaticP1 24
Push_4//flymod toggle bool
call @toggle_bit(var*,bit)
pushstring "Fly mod "
GetStatic1 24
Push_4//flymod toggle bool
CallNative is_bit_set 2 1
jumpfalse @flymodoffp
pushstring "on."
jump @pflymodon
:flymodoffp
pushstring "off."
:pflymodon
call @string strcat(string source,string toadd)
pushs 5000
call @print(string text,int ms)
GetStatic1 24
Push_4//flymod toggle bool
CallNative is_bit_set 2 1
not
jumpfalse @checknoclip
Push_0
call @freeze_your_car_or_player(bool freeze)
call @are_you_in_veh_if_so_get_handle
dup
SetStatic1 100
jumpfalse @notinvehforflymod
jump @offunstick
:notinvehforflymod
CallNative player_ped_id 0 1
SetStatic1 100
:offunstick
GetStatic1 100
Push_1
PushF_0
PushF_0
PushF -0.1
PushF_0
PushF_0
PushF_0
Push_0
Push_1
Push_0
Push_0
Push_0
Push_1
CallNative apply_force_to_entity 14 0
:checknoclip
GetStatic1 24
Push_4//flymod toggle bool
CallNative is_bit_set 2 1
jumpfalse @flymod_off_continue
call @ufomode
:flymod_off_continue
//<
//> super jump
GetStatic1 20
Push_5//super jump bool
CallNative is_bit_set 2 1
jumpfalse @superjump_off_continue
CallNative player_id 0 1
CallNative set_super_jump_this_frame 1 0//super jump this frame
:superjump_off_continue
//<
//> explosive bullets
GetStatic1 22
Push_3//Explosive Bullets bool
CallNative is_bit_set 2 1
jumpfalse @Explosive_Bullets_off_continue
CallNative player_ped_id 0 1
GetStaticP1 100
CallNative get_ped_last_weapon_impact_coord 2 1
jumpfalse @Explosive_Bullets_off_continue
Push_3
GetStaticP1 100
toStack
GetStatic1 76
PushF 10.0
Push_1
Push_0
PushF_0
CallNative add_explosion 8 0
:Explosive_Bullets_off_continue
//<
//> superman
GetStatic1 20
Push_6//superman
CallNative is_bit_set 2 1
jumpfalse @superman_off_continue
CallNative player_ped_id 0 1
CallNative is_ped_in_parachute_free_fall 1 1
jumpfalse @superman_off_continue
Push_2
Push GetEnum("INPUT_PARACHUTE_DEPLOY")
CallNative disable_control_action 2 0
CallNative player_ped_id 0 1
Push_1
PushF_0
PushF 100.0
Push_2
Push GetEnum("INPUT_FRONTEND_RT")
CallNative get_control_normal 2 1
PushF 100.0//range/speed
fmult//y
fadd
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_Y")
CallNative get_control_normal 2 1//(up -1,down 1)
SetStatic1 100
GetStatic1 100
PushF_0
fcmplt
jumpfalse @addsup
GetStatic1 100
PushF 100.0//range/speed
fmult
jump @addsuperman
:addsup
PushF_0
:addsuperman
PushF 100.0
fadd
PushF_0
PushF_0
PushF_0
Push_0
Push_1
Push_0
Push_0
Push_0
Push_1
CallNative apply_force_to_entity 14 0
:superman_off_continue
//<
//> forge mode
GetStatic1 23
Push_0//forge mode
CallNative is_bit_set 2 1
jumpfalse @forge_off_continuel
call @get_current_weapon_hash
push GetHash("WEAPON_PISTOL")
jumpne @forge_off_continuel
call @forge_pickup
jumpfalse @forge_off_continuel
GetStatic1 84
CallNative does_entity_exist 1 1
jumpfalse @forge_off_continuel
//> draw debug
push_0
setstatic1 100
:reloopforgedisplay
getstatic1 100
push_4
jumpge @endforgedisplay
Push GetEnum("Chalet-LondonNineteenSixty")
PushF_1
PushF 0.45
Push_0
Push_0
Push_0
Push_1
GetStaticP1 240
PushB 15//info txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 16//info txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 17//info txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
getstatic1 100
switch [0 @forgetype]:[1 @forgehash]:[2 @forgeentityid]:[3 @forgenetid]
:forgetype
//> forge type
GetStatic1 84
callnative get_entity_type 1 1
switch [1 @forgetype_peds]:[2 @forgetype_veh]:[3 @forgetype_obj]
:forgetype_peds
pushstring "Ped"
jump @exeforgetype
:forgetype_veh
pushstring "Vehicle"
jump @exeforgetype
:forgetype_obj
pushstring "Object"
:exeforgetype
pushstring "Type: 0000000"//Object,Vehicle,Ped,
add1 6
strcopy 8
pushstring "Type: 0000000"//Object,Vehicle,Ped,
jump @displayforge
//<
:forgehash
GetStatic1 84
CallNative get_entity_model 1 1
call @int_to_hex
pushstring "Hash: 0xFFFFFFFF"
add1 6
strcopy 11
pushstring "Hash: 0xFFFFFFFF"
jump @displayforge
:forgeentityid
GetStatic1 84
pushstring "Entity Id: -0000000000"
add1 11
itos 12
pushstring "Entity Id: -0000000000"
jump @displayforge
:forgenetid
GetStatic1 84
callnative network_get_network_id_from_entity 1 1
callnative network_does_entity_exist_with_network_id 1 1
not
jumpfalse @forgenetidok
pushstring "None"
pushstring "Network Id: -0000000000"
add1 12
strcopy 11
jump @exeforgenetid
:forgenetidok
GetStatic1 84
callnative network_get_network_id_from_entity 1 1
pushstring "Network Id: -0000000000"
add1 12
itos 12
:exeforgenetid
pushstring "Network Id: -0000000000"
:displayforge
push_3//forge
call @get_info_text_x_axis
PushF 0.7950//start y
pushf 0.0300
getstatic1 100
add1 1
itof
fmult
fadd
push_0//isgxt
call @display_text(string_text,float_x,float_y,bool IsGtxText)
getstatic1 100
add1 1
setstatic1 100
jump @reloopforgedisplay
:endforgedisplay
//<
GetStatic1 84
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 84
CallNative is_entity_attached 1 1
jumpfalse @forge_not_attached
GetStatic1 84
Push_0
Push_0
CallNative detach_entity 3 0
GetStatic1 84
CallNative is_entity_attached 1 1
jumpfalse @forge_off_continuel
:forge_not_attached
GetStatic1 84//saved object
call @get_dist_between_ped_and_game_cam
GetStatic1 75
itof
fadd
call @get_coord_in_front_of_gameplaycam(float range)
Push_0
Push_0
Push_0
CallNative set_entity_coords_no_offset 7 0
GetStatic1 84//saved object
CallNative is_entity_an_object 1 1
jumpfalse @forge_off_continuel
GetStatic1 84//saved object
Push_1
CallNative freeze_entity_position 2 0
:forge_off_continuel
//<
//> animal control
GetStatic1 21
Push_5//animal control bool
CallNative is_bit_set 2 1
jumpfalse @animalcontrol_off_continue
call @control_saved_animal
:animalcontrol_off_continue
//<
//> unlimited ability
GetStatic1 20
Push_7//unlimited ability
CallNative is_bit_set 2 1
jumpfalse @unlimited_ability_off_continue
CallNative player_id 0 1
Push_1
CallNative special_ability_fill_meter 2 0
:unlimited_ability_off_continue
//<
//> draw speed
GetStatic1 21
Push_6//mph/kmh bool
CallNative is_bit_set 2 1
jumpfalse @drawspeed_off_continue
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @drawspeedgetcharspeed
jump @drawspeedinveh
:drawspeedgetcharspeed
callnative player_ped_id 0 1
SetStatic1 100
:drawspeedinveh
GetStatic1 100
CallNative get_entity_speed 1 1
GetStatic1 30//num for draw speed mph/kmh
Push_2
jumpeq @calkmh
pushstring "MPH: "
GetStaticP1 31//mph/kmp text array
strcopy 12
PushF 2.236936//3.61
jump @calmph
:calkmh
pushstring "KMH: "
GetStaticP1 31//mph/kmp text array
strcopy 12
PushF 3.6//4.55
:calmph
fmult
ftoi
GetStaticP1 31//mph/kmp text array
straddi 12
call @start_drawing_relative_to_screen_left
Push GetEnum("ChaletComprime-CologneSixty")
PushF_1
PushF 0.8
Push_0
Push_0
Push_0
Push_1
GetStaticP1 240
PushB 15//info txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 16//info txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 17//info txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetStaticP1 31
push_0//mph
call @get_info_text_x_axis
GetStatic1 24
Push_5//fps bool
CallNative is_bit_set 2 1
not
jumpfalse @fps_is_on_move_down
PushF 0.8100
jump @fps_is_off_move_up
:fps_is_on_move_down
PushF 0.8500
:fps_is_off_move_up
Push_0
call @display_text(string_text,float_x,float_y,bool IsGtxText)
CallNative _end_relative_draw 0 0
:drawspeed_off_continue
//<
//> fast run
GetStatic1 20
PushB 8//fast run bool
CallNative is_bit_set 2 1
jumpfalse @fastrun_off_continue
CallNative player_id 0 1
PushF 1.49999
CallNative set_swim_multiplier_for_player 2 0
CallNative player_id 0 1
PushF 1.49999
CallNative set_run_sprint_multiplier_for_player 2 0
:fastrun_off_continue
//<
//> First Person
GetStatic1 20
PushB 9//First Person
CallNative is_bit_set 2 1
jumpfalse @fp_off_continue
GetStatic1 25//saved first person cam
CallNative does_cam_exist 1 1
JumpFalse @fp_off_continue
GetStatic1 25//saved first person cam
CallNative player_ped_id 0 1
Push GetEnum("SKEL_Head")
PushF 0.15
CallNative get_gameplay_cam_relative_heading 0 1
PushF_-1
fmult
CallNative sin 1 1
fmult
PushF 0.15
CallNative get_gameplay_cam_relative_heading 0 1
CallNative cos 1 1
fmult
PushF 0.08//z
Push_1
CallNative attach_cam_to_ped_bone 7 0
GetStatic1 25//saved first person cam
Push_2
CallNative get_gameplay_cam_rot 1 3
Push_2
CallNative set_cam_rot 5 0
CallNative player_id 0 1
CallNative is_player_free_aiming 1 1
CallNative player_id 0 1
CallNative is_player_targetting_anything 1 1
or
jumpfalse @fp_off_continue
Push GetEnum("Chalet-LondonNineteenSixty")
PushF_1
PushF 0.380
Push_1
Push_0
Push_0
Push_1
PushB 255
PushB 255
PushB 255
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
pushstring "."
PushF 0.5//x
PushF 0.478//y
Push_0
call @display_text(string_text,float_x,float_y,bool IsGtxText)
:fp_off_continue
//<
:skip_player_loops
//<
//> vehicle loops
//> is veh valid else skip
call @are_you_in_veh_if_so_get_handle
SetStatic1 100
GetStatic1 100
jumpfalse @endcarloops
//<
//> car color changer
GetStatic1 21
Push_0//car color bool
CallNative is_bit_set 2 1
jumpfalse @carcolor_off_continue
Call @ChangeCarColor
:carcolor_off_continue
//<
//> vehicle helper
GetStatic1 21
Push_2//vehicle helper bool
CallNative is_bit_set 2 1
jumpfalse @vehiclehelper_off_continue
GetStatic1 100
Push_0
CallNative set_vehicle_can_be_visibly_damaged 2 0
GetStatic1 100
Push_0
CallNative set_entity_can_be_damaged 2 0
GetStatic1 100
Push_0
CallNative set_vehicle_tyres_can_burst 2 0
GetStatic1 100
Push_1
CallNative set_entity_invincible 2 0
GetStatic1 100
Push_0
callnative set_vehicle_can_break 2 0
getstatic1 100
push_0
callnative set_vehicle_undriveable 2 0
getstatic1 100
push_0
callnative set_vehicle_engine_can_degrade 2 0
getstatic1 100
pushs 1000
callnative set_entity_health 2 0
getstatic1 100
pushf 1000
callnative set_vehicle_engine_health 2 0
getstatic1 100
pushf 1000
callnative set_vehicle_petrol_tank_health 2 0
getstatic1 100
pushf 1000
callnative set_vehicle_body_health 2 0
getstatic1 100
callnative _is_vehicle_engine_on 1 1//_IS_VEHICLE_ENGINE_ON
not
jumpfalse @vehiclehelper_off_continue
getstatic1 100
push_1
push_1
push_0
callnative set_vehicle_engine_on 4 0
:vehiclehelper_off_continue
//<
//> cars stick to ground
GetStatic1 21
Push_1//cars stick to ground bool
CallNative is_bit_set 2 1
jumpfalse @carssticktoground_off_continue
GetStatic1 100
CallNative set_vehicle_on_ground_properly 1 1
drop
:carssticktoground_off_continue
//<
//> need for speed
GetStatic1 21
Push_3//nfs bool
CallNative is_bit_set 2 1
jumpfalse @nfs_off_continue
CallNative is_pause_menu_active 0 1
not
jumpfalse @nfs_off_continue
Push_2
Push GetEnum("INPUT_FRONTEND_LT")
CallNative is_control_just_pressed 2 1
JumpFalse @superbreaknotpressed
GetStatic1 100
PushF_0
CallNative set_vehicle_forward_speed 2 0
:superbreaknotpressed
GetStatic1 71
Push_2
jumpeq @skpnfspallwheels
GetStatic1 100
CallNative is_vehicle_on_all_wheels 1 1
JumpFalse @nfs_off_continue
:skpnfspallwheels
Push_2
Push GetEnum("INPUT_FRONTEND_RT")
CallNative is_control_pressed 2 1
JumpFalse @nfs_continue
GetStatic1 100
GetStatic1 100
CallNative get_entity_speed 1 1
PushF_1
fadd
CallNative set_vehicle_forward_speed 2 0
:nfs_continue
Push_2
Push GetEnum("INPUT_FRONTEND_LT")
CallNative is_control_pressed 2 1
JumpFalse @nfs_lb
GetStatic1 100
Push_1
PushF_0
PushF -1.0
PushF_0
PushF_0
PushF_0
PushF_0
Push_0
Push_1
Push_1
Push_1
Push_0
Push_1
CallNative apply_force_to_entity 14 0
:nfs_lb
GetStatic1 71
Push_1
jumpeq @nfs_off_continue
GetStatic1 100
CallNative get_entity_model 1 1
CallNative is_this_model_a_boat 1 1
not
jumpfalse @skpnfsallwheels
GetStatic1 100
CallNative get_entity_model 1 1
CallNative is_this_model_a_car 1 1
jumpfalse @nfs_off_continue
GetStatic1 100
CallNative is_vehicle_on_all_wheels 1 1
not
jumpfalse @nfs_off_continue
:skpnfsallwheels
Push_2
Push GetEnum("INPUT_SCRIPT_LB")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_SCRIPT_RB")
CallNative set_input_exclusive 2 0
Push_2
Push GetEnum("INPUT_SCRIPT_LB")
CallNative is_control_pressed 2 1
jumpfalse @nfs_rb
GetStatic1 100
GetStatic1 100
Push_2
CallNative get_entity_rotation 2 3
PushF_1
fadd
Push_2
Push_1
CallNative set_entity_rotation 6 0
:nfs_rb
Push_2
Push GetEnum("INPUT_SCRIPT_RB")
CallNative is_control_pressed 2 1
jumpfalse @nfs_off_continue
GetStatic1 100
GetStatic1 100
Push_2
CallNative get_entity_rotation 2 3
PushF_1
fsub
Push_2
Push_1
CallNative set_entity_rotation 6 0
:nfs_off_continue
//<
:endcarloops
//<
//> misc loops
call @individual_player_loop
//> auto skip tutorial
CallNative network_is_in_session 0 1
jumpfalse @end_networkautoskip
call @get_player_number
pushstring "NO_TUT_SPAWN"
call @string strcat(string source,string toadd)
GetHash
getstaticp1 100
Push_-1
callnative stat_get_bool 3 1
jumpfalse @end_networkautoskip
getstatic1 100
push_1
jumpeq @end_networkautoskip
pushstring "NO_TUT_SPAWN"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_RACETUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_BUYGAR_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_CHANGECHAR_ASKED"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FRONT_END_JIP_UNLOCKED"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_TRIGTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_HOLDTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_CMODTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_NOTUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_INTRO_CUT_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "FM_INTRO_MISS_DONE"
Push_1
call @set_mp_stat_bool(stringstatname,bool)
pushstring "CP_WELCOMETUT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "CR_HOLDUP_TUT"
Push_1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "TUTORIAL_BITSET"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
pushstring "TUTORIAL_BITSET"
Push_-1
Push_0
call @set_mp_stat(string stat,val value,bool increment)
:end_networkautoskip
//<
//> disable idle timer
CallNative network_is_game_in_progress 0 1
jumpfalse @skiptunableloop
Push 2147483647
GetGlobalP3 262145
GetImm1 76//IDLEKICK_KICK/-1801680211
jumpeq @skiptunableloop
Push 2147483647
GetGlobalP3 262145
SetImm1 73//IDLEKICK_WARNING1/-1281042812
Push 2147483647
GetGlobalP3 262145
SetImm1 74//IDLEKICK_WARNING2/-1049660903
Push 2147483647
GetGlobalP3 262145
SetImm1 75//IDLEKICK_WARNING3/-536236215
Push 2147483647
GetGlobalP3 262145
SetImm1 76//IDLEKICK_KICK/-1801680211
:skiptunableloop
//<
//> auto stop big songs
getstatic1 73//big song start index as song id
jumpfalse @continue_auto_stop_big_songs
callnative is_stream_playing 0 1
jumpfalse @continue_auto_stop_big_songs
:continue_auto_stop_big_songs
//<
//> texture loop
pushstring "mpleaderboard"
call @load_texture_no_wait(dict)
pushstring "CommonMenu"
call @load_texture_no_wait(dict)
//<
//> gxt loop
pushstring "trackid"
push_0
call @load_gxt_no_wait(dict,slot)
//<
//> register script loop
CallNative network_is_in_session 0 1
jumpfalse @endregister
callnative network_get_script_status 0 1
drop
:endregister
//<
//> off radar loop
GetStatic1 24
Push_0//off radar bool
CallNative is_bit_set 2 1
jumpfalse @off_radar_off_continue
CallNative get_network_time 0 1
GetGlobalP3 2394218//search unk_0x20DDCF2F or MPCT_RDR 2nd occurrence in am_contact_requests
SetImm1 55
Push_1
CallNative player_id 0 1
GetGlobalP3 2390201//search unk_0x20DDCF2F or MPCT_RDR 2nd occurrence in am_contact_requests
GetArrayP1 223
SetImm1 169
:off_radar_off_continue
//<
//> draw fps
GetStatic1 24
Push_5//fps bool
CallNative is_bit_set 2 1
jumpfalse @fps_off_continue
GetStatic1 73//fps time
Push_-1
jumpne @startfps
CallNative get_frame_count 0 1
SetStatic1 73//fps time
Push_0
CallNative settimerb 1 0
:startfps
CallNative timerb 0 1
pushs 1000
jumplt @endfps
CallNative get_frame_count 0 1
GetStatic1 73//fps time
sub
Push_1
sub
SetStatic1 72
Push_-1
SetStatic1 73//fps time
:endfps
pushstring "FPS: "
GetStaticP1 211//fps text array
strcopy 8
GetStatic1 72//fps time
PushB 99
cmpgt
GetStatic1 72//fps time
Push_0
cmplt
or
jumpfalse @fpsok
PushB 30
SetStatic1 72
:fpsok
GetStatic1 72//fps time
GetStaticP1 211
straddi 8
call @start_drawing_relative_to_screen_left
Push GetEnum("ChaletComprime-CologneSixty")
PushF_1
PushF 0.8
Push_0
Push_0
Push_0
Push_1
GetStaticP1 240
PushB 15//info txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 16//info txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 17//info txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetStaticP1 211
push_1//fps
call @get_info_text_x_axis
PushF 0.8100
Push_0
call @display_text(string_text,float_x,float_y,bool IsGtxText)
CallNative _end_relative_draw 0 0
:fps_off_continue
//<
//> disable buttons for 30 frames on exit
GetStatic1 70
jumpfalse @endbbuttoncincamexit
Push_0
Push GetEnum("INPUT_VEH_CIN_CAM")
CallNative disable_control_action 2 0
Push_0
Push GetEnum("INPUT_COVER")
CallNative disable_control_action 2 0
GetStatic1 70
Push_1
sub
SetStatic1 70
GetStatic1 70
Push_0
jumpge @endbbuttoncincamexit
Push_0
SetStatic1 70
:endbbuttoncincamexit
//<
//> delete closest cars
GetStatic1 24
Push_7//delete closest cars
CallNative is_bit_set 2 1
jumpfalse @deleteclosecars_off_continue
GetStatic1 69//delete closest vehicles saved loop var
pushs 500
jumplt @delcvehloop
GetStaticP1 24
Push_7//delete closest cars
callnative set_bit 2 0
jump @deleteclosecars_off_continue
:delcvehloop
CallNative player_ped_id 0 1
call @get_closest_vehicle(ped_id)
dup
SetStatic1 100
jumpfalse @deleteclosecars_inc
GetStatic1 100
call @bool_control_entity_id_looped(int_entity)
drop
GetStatic1 100
Push_0
Push_1
callnative set_entity_as_mission_entity 3 0
GetStaticP1 100
callnative delete_vehicle 1 0
:deleteclosecars_inc
pushstring "Closest car deletion attempt "
GetStaticP1 245
strcopy 64
GetStatic1 69//delete closest vehicles saved loop var
GetStaticP1 245
straddi 16
pushstring "/500."
GetStaticP1 245
stradd 16
GetStaticP1 245
PushB 10
call @print(string text,int ms)
GetStatic1 69//delete closest vehicles saved loop var
add1 1
SetStatic1 69//delete closest vehicles saved loop var
:deleteclosecars_off_continue
//<
//> draw tool box
GetStatic1 24
PushB 13//draw box bool
CallNative is_bit_set 2 1
jumpfalse @drawtoolbox_off_continue
PushB 4
GetStaticP1 213
toStack
GetStaticP1 217//draw box rgba
Push_0
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 217//draw box rgba
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 217//draw box rgba
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 217//draw box rgba
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
CallNative draw_rect 8 0
:drawtoolbox_off_continue
//<
//> draw tool sprite
GetStatic1 24
PushB 14//draw sprite bool
CallNative is_bit_set 2 1
jumpfalse @drawtoolsprite_off_continue
pushstring "TMP_SRRITE_DICT0000000000000000"//dict
CallNative is_string_null_or_empty 1 1
pushstring "TMP_SRRITE_NAME0000000000000000"//name
CallNative is_string_null_or_empty 1 1
or
not
jumpfalse @drawtoolsprite_off_continue
pushstring "TMP_SRRITE_DICT0000000000000000"//dict
call @load_texture_dict_loop(string texturedict)
pushstring "TMP_SRRITE_DICT0000000000000000"//dict
pushstring "TMP_SRRITE_NAME0000000000000000"//name
PushB 5
GetStaticP1 218
toStack
GetStaticP1 223//draw sprite rgba
Push_0
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 223//draw sprite rgba
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 223//draw sprite rgba
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 223//draw sprite rgba
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
callnative draw_sprite 11 0
:drawtoolsprite_off_continue
//<
//> draw tool text
GetStatic1 24
PushB 8//draw text bool
CallNative is_bit_set 2 1
jumpfalse @drawtooltext_off_continue
PushF_0
PushF_1
CallNative set_text_wrap 2 0
PushF_0//width (no change)
GetStatic1 200//draw text height (scale)
CallNative set_text_scale 2 0
GetStatic1 201//draw text font
CallNative set_text_font 1 0
GetStaticP1 202//draw text rgba
Push_0
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 202//draw text rgba
Push_1
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 202//draw text rgba
Push_2
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 202//draw text rgba
Push_3
call @get_ubyte_in_byte_array(int*,byteindex)
CallNative set_text_colour 4 0
GetStatic1 24
PushB 9//drop shadow_2
CallNative is_bit_set 2 1
jumpfalse @drop_shadow_2_off_continue
CallNative set_text_drop_shadow 0 0
:drop_shadow_2_off_continue
GetStatic1 24
PushB 10//outline
CallNative is_bit_set 2 1
jumpfalse @outline_off_continue
CallNative set_text_outline 0 0
:outline_off_continue
GetStatic1 24
PushB 11//center
CallNative is_bit_set 2 1
CallNative set_text_centre 1 0
GetStatic1 24
PushB 12//right justify
CallNative is_bit_set 2 1
jumpfalse @skip_right_justify_x
PushF_0
GetStatic1 198//draw text x coord
CallNative set_text_wrap 2 0
GetStatic1 24
PushB 12//right justify
CallNative is_bit_set 2 1
callnative set_text_right_justify 1 0
:skip_right_justify_x
pushstring "TMP_TEXT_NAME000000000000000000"//draw tool text array
GetStatic1 198//draw text x coord
GetStatic1 199//draw text y coord
push_0
call @display_text(string_text,float_x,float_y,bool IsGtxText)
:drawtooltext_off_continue
//<
//> disable traffic
GetStatic1 24
PushB 16//disable traffic
CallNative is_bit_set 2 1
jumpfalse @disable_traffic_off_continue
Push_0
callnative set_vehicle_population_budget 1 0
:disable_traffic_off_continue
//<
//> load loop
GetStatic1 27//type for model loading
jumpfalse @end_loadloop
//> vehicles
GetStatic1 27//type for model loading
Push_1//vehicles
jumpne @notvehicleload
GetStatic1 26//saved hash for model loading
call @load_model_looped(int modelhash)
jumpfalse @notvehicleload
GetStatic1 26//saved hash and entity for model loading
call @spawn_vehicle(int_modelhash)
dup
SetStatic1 26//saved hash and entity for model loading
jumpfalse @null_loadloopvars
call @execute_load_loop
:notvehicleload
//<
//> model changer
GetStatic1 27//type for model loading
Push_2//modelchanger
jumpne @notmodelchangeload
GetStatic1 26//saved hash for model loading
call @load_model_looped(int modelhash)
jumpfalse @notmodelchangeload
GetStatic1 26//saved hash and entity for model loading
call @Change_Player_Model(int modelhash)
call @execute_load_loop
:notmodelchangeload
//<
//> objects
GetStatic1 27//type for model loading
Push_3//objects
cmpeq
GetStatic1 27//type for model loading
Push_4//online objects
cmpeq
or
jumpfalse @notobjectspawnload
GetStatic1 26//saved hash for model loading
call @load_model_looped(int modelhash)
jumpfalse @notobjectspawnload
GetStatic1 26//saved hash and entity for model loading
Push_3
GetStaticP1 35//model load loop extra parrams
tostack
call @spawn_object(int model,x,y,z)
dup
SetStatic1 26//saved hash and entity for model loading
jumpfalse @null_loadloopvars
call @execute_load_loop
:notobjectspawnload
//<
//> peds
GetStatic1 27//type for model loading
Push_5//peds
jumpne @notpedload
GetStatic1 26//saved hash for model loading
call @load_model_looped(int modelhash)
jumpfalse @notpedload
GetStatic1 26//saved hash and entity for model loading
call @spawn_ped(int modelhash)
dup
SetStatic1 26//saved hash and entity for model loading
jumpfalse @null_loadloopvars
call @execute_load_loop
:notpedload
//<
//> bodyguards
GetStatic1 27//type for model loading
Push_6//bodyguards
jumpne @notbodyguardsload
GetStatic1 26//saved hash for model loading
call @load_model_looped(int modelhash)
jumpfalse @notbodyguardsload
GetStatic1 26//saved hash and entity for model loading
Push_2
GetStaticP1 35//model load loop extra parrams
tostack
call @spawn_bodyguard(pedhash,primaryweaponhash,secondaryweaponhash)
dup
SetStatic1 26//saved hash and entity for model loading
jumpfalse @null_loadloopvars
call @execute_load_loop
:notbodyguardsload
//<
//> load fx
GetStatic1 27//type for model loading
Push_7//load fx
jumpne @notfxload
GetStaticP2 315//256 char text array
call @load_fx(string fx)
jumpfalse @notfxload
call @execute_load_loop
:notfxload
//<
//> set_ped_movement_clipset
GetStatic1 27//type for model loading
PushB 8//load anim set
jumpne @notanimsetload
GetStaticP2 315//256 char text array
call @load_anim_set(string_groupname)
jumpfalse @notanimsetload
CallNative player_ped_id 0 1
GetStaticP2 315//256 char text array
Push 1048576000
CallNative set_ped_movement_clipset 3 0
jump @null_loadloopvars
:notanimsetload
//<
//> load anim dict
GetStatic1 27//type for model loading
PushB 9//load anim dict
jumpne @notanimdictload
GetStaticP2 315//256 char text array
call @load_animdict(string dict)
jumpfalse @notanimdictload
call @execute_load_loop
:notanimdictload
//<
//> play anim
GetStatic1 27//type for model loading
PushB 10//play anim
cmpeq
GetStatic1 27//type for model loading
PushB 11//play online anim
cmpeq
or
jumpfalse @notplayanimload
GetStaticP2 315//256 char text array
call @load_animdict(string dict)
jumpfalse @notplayanimload
GetStaticP2 315//256 char text array
GetStaticP2 613//text array
Push_2
GetStaticP1 35//load loop extra parrams
tostack
call @PlayAnimation(AnimDir,AnimName,pedid,animflag)
call @execute_load_loop
:notplayanimload
//<
//> request control of entity
GetStatic1 27//type for model loading
PushB 12//request control of entity
jumpne @notonlinecontrolload
GetStatic1 26//saved hash for model loading
call @bool_control_entity_id_looped(int_entity)
jumpfalse @notonlinecontrolload
call @execute_load_loop
:notonlinecontrolload
//<
//> request control of vehicle all players
GetStatic1 27//type for model loading
PushB 13//request control of vehicle all players
jumpne @notrcvapload
jump @startrcvap
:incplayerloop_rcvap_next_player
GetStatic1 35//model load loop extra parrams
add1 1
SetStatic1 35//model load loop extra parrams
:startrcvap
GetStatic1 35//model load loop extra parrams
PushB 16
jumplt @continuercvap
Push_0
SetStatic1 27//type for model loading
Push_0
SetStatic1 28//saved jumptype for model loading
jump @notrcvapload
:continuercvap
GetStatic1 36//player bitset
GetStatic1 35//model load loop extra parrams
CallNative is_bit_set 2 1
jumpfalse @incplayerloop_rcvap_next_player
GetStatic1 35//model load loop extra parrams
call @bool_is_player_in_game(playerindex)
jumpfalse @incplayerloop_rcvap_clearcurrentbit
GetStatic1 35//model load loop extra parrams
CallNative get_player_ped 1 1
Push_0
CallNative is_ped_in_any_vehicle 2 1
jumpfalse @incplayerloop_rcvap_clearcurrentbit
GetStatic1 35//model load loop extra parrams
CallNative get_player_ped 1 1
Push_0
CallNative get_vehicle_ped_is_in 2 1
call @bool_control_entity_id_looped(int_entity)
jumpfalse @notrcvapload
call @execute_load_loop_allplayers
:incplayerloop_rcvap_clearcurrentbit
GetStaticP1 36
GetStatic1 35//model load loop extra parrams
CallNative clear_bit 2 0
Push_0//new person restart timeout
SetStatic1 9//load loop inc
jump @incplayerloop_rcvap_next_player
:notrcvapload
//<
//> spawn object all players
GetStatic1 27//type for model loading
PushB 14//spawn object all players
jumpne @notsoapload
jump @startsoap
:incplayerloop_soap_next_player
GetStatic1 35//model load loop extra parrams
add1 1
SetStatic1 35//model load loop extra parrams
:startsoap
GetStatic1 35//model load loop extra parrams
PushB 16
jumplt @continuesoap
Push_0
SetStatic1 27//type for model loading
Push_0
SetStatic1 28//saved jumptype for model loading
jump @notsoapload
:continuesoap
GetStatic1 36//player bitset
GetStatic1 35//model load loop extra parrams
CallNative is_bit_set 2 1
jumpfalse @incplayerloop_soap_next_player
GetStatic1 35//model load loop extra parrams
call @bool_is_player_in_game(playerindex)
jumpfalse @incplayerloop_soap_clearcurrentbit
GetStatic1 26//saved hash for model loading
call @load_model_looped(int modelhash)
jumpfalse @notsoapload
GetStatic1 26//saved hash and entity for model loading
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF_0
PushF_0
PushF 50
vsub
call @spawn_object(int model,x,y,z)
dup
SetStatic1 26//saved hash and entity for model loading
jumpfalse @incplayerloop_soap_clearcurrentbit
call @execute_load_loop_allplayers
:incplayerloop_soap_clearcurrentbit
GetStaticP1 36
GetStatic1 35//model load loop extra parrams
CallNative clear_bit 2 0
Push_0//new person restart timeout
SetStatic1 9//load loop inc
jump @incplayerloop_soap_next_player
:notsoapload
//<
//> load stream
GetStatic1 27//type for model loading
PushB 15//load stream
jumpne @notstreamload
GetStaticP2 315//256 char text array
GetStatic1 35//load loop extra parrams
push_0
callnative load_stream_with_start_offset 3 1
jumpfalse @notstreamload
callnative play_stream_frontend 0 0
jump @null_loadloopvars
:notstreamload
//<
GetStatic1 9//load loop inc
PushB 150//5 sec
jumpgt @error_loadloop
GetStatic1 9//load loop inc
add1 1
SetStatic1 9//load loop inc
jump @end_loadloop
:error_loadloop
GetStatic1 27//type for model loading
switch [1 @LoadError_spawn_vehicle]:[2 @LoadError_player_models]:[3 @LoadError_spawn_objects]:[4 @LoadError_spawn_objects]:[5 @LoadError_spawn_ped]:[6 @LoadError_spawn_ped]:[7 @LoadError_load_fx]:[8 @LoadError_set_ped_movement_clipset]:[9 @LoadError_load_animdict]:[10 @LoadError_load_animdict]:[11 @LoadError_load_animdict]:[12 @LoadError_request_control_of_entity]:[13 @LoadError_request_control_of_vehicle_all_players]:[14 @LoadError_spawn_object_all_players]:[15 @LoadError_load_stream]
pushstring "~r~Error:~s~ Loading operation failed."
jump @print_load_error
:LoadError_spawn_vehicle
pushstring "~r~Error:~s~ Vehicle was unable to load."
jump @print_load_error
:LoadError_player_models
pushstring "~r~Error:~s~ Model was unable to load."
jump @print_load_error
:LoadError_spawn_objects
pushstring "~r~Error:~s~ Object was unable to load."
jump @print_load_error
:LoadError_spawn_ped
pushstring "~r~Error:~s~ Ped was unable to load."
jump @print_load_error
:LoadError_load_fx
pushstring "~r~Error:~s~ FX was unable to load."
jump @print_load_error
:LoadError_set_ped_movement_clipset
pushstring "~r~Error:~s~ Anim set was unable to load."
jump @print_load_error
:LoadError_load_animdict
pushstring "~r~Error:~s~ Anim dict was unable to load."
jump @print_load_error
:LoadError_request_control_of_entity
pushstring "~r~Error:~s~ Unable to request control of entity."
jump @print_load_error
:LoadError_request_control_of_vehicle_all_players
pushstring "~r~Error:~s~ Unable to request control of "
GetStaticP1 245//sets var to string
StrCopy 64//copys source string to var with max of 63 bytes
GetStatic1 35//model load loop extra parrams
CallNative get_player_name 1 1
GetStaticP1 245//gets var to string
StrAdd 64//adds secondary string to var
pushstring "vehicle ."
GetStaticP1 245//gets var to string
StrAdd 64//adds secondary string to var
GetStaticP1 245
jump @print_load_error
:LoadError_spawn_object_all_players
pushstring "~r~Error:~s~ Unable to spawn objects on all players."
jump @print_load_error
:LoadError_load_stream
pushstring "~r~Error:~s~ Audio could not load."
jump @print_load_error
:print_load_error
pushs 5000
call @print(string text,int ms)
:null_loadloopvars
Push_0
SetStatic1 27//type for model loading
Push_0
SetStatic1 28//saved jumptype for model loading
push_0
SetStatic1 9//load loop inc
:end_loadloop
//<
//<
return 0 0
//<
//> set static vars
:set_static_vars
Function 0 5
Push_1
SetStatic1 5//cursor index
Push_1
SetStatic1 6//item count index
PushB 25
SetStatic1 13//menu max item count
Push_5
SetStatic1 75//forge range
Push_1
SetStatic1 74//rocket gun type
Push_-1
SetStatic1 73//fps time
Push_1
SetStatic1 71//num for need for speed ground/air
Push_1
SetStatic1 30//num for draw speed mph/kmh
Push_-1
SetStatic1 85//saved bone
PushF_1
SetStatic1 88//Precision Level
PushB 26//max menu count +1
SetStatic1 110//array for drawing menu number maxval
PushB 26//max menu count +1
SetStatic1 137//array for drawing menu number minval
PushB 26//max menu count +1
SetStatic1 164//array for drawing menu type
PushB 101//max menu count +1
SetStatic2 511//array for drawing incremented number
PushB 131//max menu count +1
SetStatic2 379//array for drawing menu text
PushB 16//max player count
SetStatic2 279//bitset array for individual player loop
PushB 29//blimp exp
SetStatic2 310//saved index for explode online player
PushF 0.76
SetStatic1 93//x value for menu drawing
PushF 0.500
PushF 0.500
PushF 0.200
PushF 0.300
push 0x000000FF
PushB 5
GetStaticP1 213//draw tool draw box x,y,w,h,r,g,b,a
fromStack
PushF 0.500
PushF 0.500
PushF 0.1
PushF 0.1
PushF_0
Push_-1
Push_6
GetStaticP1 218//draw tool draw sprite x,y,w,h,rot,rgba
fromStack
PushF 0.1// = draw text x coord
PushF 0.1// = draw text y coord
PushF_1// = draw text height
Push GetEnum("Chalet-LondonNineteenSixty")//font
Push_-1//draw tool rgba
Push_5
GetStaticP1 198
fromStack
pushstring "Sample Text"
pushstring "TMP_TEXT_NAME000000000000000000"//draw tool text array
strcopy 32
pushstring ""
pushstring "TMP_SRRITE_DICT0000000000000000"//draw tool sprite dict array
strcopy 32
pushstring ""
pushstring "TMP_SRRITE_NAME0000000000000000"//draw tool sprite name array
strcopy 32
push 0xFFFFFF00
push 0x0000FFFF
push 0xFF000000
push 0xFFFFFFFF
push 0xFFFF0000
Push_5
GetStaticP1 240//change menu color byte[]
fromstack
GetStaticP1 20
Push_0//godmode
CallNative set_bit 2 0
GetStaticP1 20
Push_3//never wanted bool
CallNative set_bit 2 0
GetStaticP1 21
Push_2//vehicle helper bool
CallNative set_bit 2 0
GetStaticP1 24
Push_3//fly mod bool
CallNative set_bit 2 0
pushstring ""
SetStatic1 245//concat text array
pushstring ""
SetStatic2 262//concat text array2
return 0 0
//<
//> scrolling functions
:get_item_count_with_max_item_limiter
Function 0 5
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @dontsetdrawmax
GetStatic1 13//menu max item count
return 0 1
:dontsetdrawmax
GetStatic1 6//item count
return 0 1
:get_item_count++_start_index
Function 0 5
GetStatic1 6//item count
GetStatic1 13//menu max item count
jumple @ReturnDefaultStartIndex
GetStatic1 14//item count++ start index for scroll
return 0 1
:ReturnDefaultStartIndex
Push_0
return 0 1
//<
//> get_is_gxt_text_from_menu_item
:bool get_is_gxt_text_from_menu_item(int item)
Function 1 5
GetFrame1 0
PushB 32
jumpgt @getbget1
GetStatic1 191
jump @is_gxt_bit_set
:getbget1
GetFrame1 0
PushB 64
jumpgt @getbget2
GetStatic1 192
jump @is_gxt_bit_set
:getbget2
GetFrame1 0
PushB 96
jumpgt @getbget3
GetStatic1 193
jump @is_gxt_bit_set
:getbget3
GetFrame1 0
PushB 127
jumpgt @getbgeterror
GetStatic1 194
:is_gxt_bit_set
GetFrame1 0
Push_1
sub
CallNative is_bit_set 2 1
jump @endgetgxtbget
:getbgeterror
Push_0
:endgetgxtbget
return 1 1
//<
//> set_gxt_text_from_menu_item
:set_gxt_text_from_menu_item(int item,bool set)
Function 2 5
GetFrame1 0
PushB 32
jumpgt @getbset1
GetStaticP1 191
:figure_get_set_gxt
GetFrame1 1
not
jumpfalse @set_bit_menu_gxt_set
jump @set_bit_menu_gxt_clear
:getbset1
GetFrame1 0
PushB 64
jumpgt @getbset2
GetStaticP1 192
jump @figure_get_set_gxt
:getbset2
GetFrame1 0
PushB 96
jumpgt @getbset3
GetStaticP1 193
jump @figure_get_set_gxt
:getbset3
GetFrame1 0
PushB 127
jumpgt @endsetgxtbset
GetStaticP1 194
jump @figure_get_set_gxt
:set_bit_menu_gxt_clear
GetFrame1 0
Push_1
sub
CallNative clear_bit 2 0
jump @endsetgxtbset
:set_bit_menu_gxt_set
GetFrame1 0
Push_1
sub
CallNative set_bit 2 0
:endsetgxtbset
return 2 0
//<
//> set_inc_stats
:set_inc_stats(string start,int minincnum,int maxincnum,string end,int valtoset)
Function 5 15
GetFrame1 1
Push_1
sub
SetFrame1 8
:unlimitedconloop
GetFrame1 8
add1 1
SetFrame1 8
call @get_player_number
GetStaticP2 262//sets var to string
Strcopy 64
GetFrame1 0
GetStaticP2 262//sets var to string
Stradd 64
GetFrame1 8
GetStaticP2 262
StrAddi 8
GetFrame1 3
GetStaticP2 262
StrAdd 32
GetStaticP2 262
GetHash
GetFrame1 4
Push_1
CallNative stat_set_int 3 1
drop
GetFrame1 8
GetFrame1 2
jumplt @unlimitedconloop
return 5 0
:set_inc_stats_bool(string start,int minincnum,int maxincnum,string end,bool valtoset)
Function 5 15
GetFrame1 1
Push_1
sub
SetFrame1 8
:unlimitedconloopbool
GetFrame1 8
add1 1
SetFrame1 8
call @get_player_number
GetStaticP2 262//sets var to string
Strcopy 64
GetFrame1 0
GetStaticP2 262//sets var to string
Stradd 64
GetFrame1 8
GetStaticP2 262
StrAddi 8
GetFrame1 3
GetStaticP2 262
StrAdd 32
GetStaticP2 262
GetHash
GetFrame1 4
Push_1
CallNative stat_set_bool 3 1
drop
GetFrame1 8
GetFrame1 2
jumplt @unlimitedconloopbool
return 5 0
//<
//> load model
:load_model(int modelhash)
Function 1 3
GetFrame1 0
CallNative is_model_in_cdimage 1 1
pushstring "~r~Error:~s~ Unable to find model in cdimage."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
JumpFalse @couldnotloadmodel
GetFrame1 0
CallNative has_model_loaded 1 1
not
jumpfalse @modelisloaded
GetFrame1 0
CallNative request_model 1 0
Push_0
SetFrame1 3
:reloadmodel
GetFrame1 3
PushB 100
Jumpgt @couldnotloadmodel
GetFrame1 0
CallNative has_model_loaded 1 1
not
jumpfalse @modelisloaded
GetFrame1 3
add1 1
SetFrame1 3
Push_0
CallNative wait 1 0
jump @reloadmodel
:modelisloaded
Push_1
return 1 1
:couldnotloadmodel
Push_0
return 1 1
//<
//> load model looped
:load_model_looped(int modelhash)
Function 1 3
GetFrame1 0
CallNative is_model_in_cdimage 1 1
not
JumpFalse @conmodelloadloop
getframe1 0
jumpfalse @load_model_error
GetFrame1 0
call @int_to_hex
pushstring "~r~Error:~s~ Unable to find model 0xFFFFFFFF in cdimage."
add1 34
strcopy 11
pushstring " in cdimage."
pushstring "~r~Error:~s~ Unable to find model 0xFFFFFFFF in cdimage."
add1 44
strcopy 13
pushstring "~r~Error:~s~ Unable to find model 0xFFFFFFFF in cdimage."
pushs 5000
call @print(string text,int ms)
:load_model_error
Push_0
SetStatic1 27//type for model loading
Push_0
SetStatic1 26//saved hash for model loading
Push_0
SetStatic1 28//saved jumptype for model loading
Push_0
return 1 1
:conmodelloadloop
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @modelnotloaded
Push_1
return 1 1
:modelnotloaded
GetFrame1 0
CallNative request_model 1 0
Push_0
return 1 1
//<
//> control animal
:control_saved_animal
Function 0 5
PushF_4
SetFrame1 3//range
PushF_2
SetFrame1 4//speed
GetStatic1 77
CallNative does_entity_exist 1 1
pushstring "~r~Error:~s~ Entity does not exist."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @endanimcontrol
Push_2
Push GetEnum("INPUT_FRONTEND_Y")
CallNative is_control_just_pressed 2 1
JumpFalse @getoffanimalnotpressed
GetStaticP1 21
Push_5//animal control bool
CallNative clear_bit 2 0
CallNative player_ped_id 0 1
CallNative is_entity_attached 1 1
jumpfalse @endanimcontrol
CallNative player_ped_id 0 1
Push_0
Push_0
CallNative detach_entity 3 0
CallNative player_ped_id 0 1
CallNative clear_ped_tasks_immediately 1 0
jump @endanimcontrol
:getoffanimalnotpressed
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_X")
CallNative get_control_normal 2 1//(left -1,right 1)
PushF_0
fcmpne
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_Y")
CallNative get_control_normal 2 1//(up -1,down 1)
PushF_0
fcmpne
or
jumpfalse @skpfixedcamforanimal
CallNative get_gameplay_cam_relative_pitch 0 1
PushF 180
CallNative set_gameplay_cam_relative_heading 1 0
PushF_0
CallNative set_gameplay_cam_relative_pitch 2 0
:skpfixedcamforanimal
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_control_pressed 2 1
JumpFalse @setdefaultspeedforanimal
PushF_4//speed
SetFrame1 4
PushF 8.0
SetFrame1 3//range
:setdefaultspeedforanimal
GetStatic1 77
GetStatic1 77
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_X")
CallNative get_control_normal 2 1//(left -1,right 1)
GetFrame1 3//range
fmult
Push_2
Push GetEnum("INPUT_SCRIPT_LEFT_AXIS_Y")
CallNative get_control_normal 2 1//(up -1,down 1)
PushF_-1
fmult//converts (up -1,down 1) to (up 1,down -1)
GetFrame1 3//range
fmult//y
PushF_0
CallNative get_offset_from_entity_in_world_coords 4 3
GetFrame1 4//speed?1.0
pushs 20000
PushF 40000
PushF 0.5
callnative task_go_straight_to_coord 8 0
:endanimcontrol
return 0 0
//<
//> spawn ped no wait
:spawn_ped_no_wait(hash,jumptype)
Function 2 4
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @request_ped
GetFrame1 0
call @spawn_ped(int modelhash)
SetStatic1 26//saved hash and entity for model loading
Push_1
return 2 1
:request_ped
call @is_menu_loading
not
jumpfalse @end_spawn_ped_no_wait
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_5//ped
SetStatic1 27//type for model loading
GetFrame1 1
SetStatic1 28//saved jumptype for model loading
Push_0
SetStatic1 9//load loop inc
:end_spawn_ped_no_wait
Push_0
return 2 1
//<
//> spawn ped
:spawn_ped(int modelhash)
Function 1 4
GetFrame1 0
CallNative is_model_in_cdimage 1 1
jumpfalse @spawnped_modelerror
PushB 25
GetFrame1 0
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
PushF_0//heading
Push_1
Push_1
callnative create_ped 8 1
dup
setFrame1 4
CallNative does_entity_exist 1 1
pushstring "~r~Error:~s~ Ped could not spawn. Script is not reqistered."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @spawnped_error
getFrame1 4
callnative ped_to_net 1 1
dup
SetFrame1 3
callnative network_does_network_id_exist 1 1
jumpfalse @spawnped_error
GetFrame1 3
Push_1
callnative set_network_id_exists_on_all_machines 2 0
GetFrame1 4
CallNative does_entity_exist 1 1
jumpfalse @spawnped_error
GetFrame1 0
CallNative set_model_as_no_longer_needed 1 0
GetFrame1 4
return 1 1
:spawnped_error
GetFrame1 0
CallNative set_model_as_no_longer_needed 1 0
:spawnped_modelerror
Push_0
return 1 1
//<
//> load_texture_dict
:bool load_texture_dict(string texturedict)
Function 1 4
GetFrame1 0
CallNative has_streamed_texture_dict_loaded 1 1
not
JumpFalse @load_texture_end
GetFrame1 0
Push_0
CallNative request_streamed_texture_dict 2 0
Push_0
SetFrame1 4
:load_texture_load
Push_0
callnative wait 1 0
GetFrame1 4
PushB 100
jumpgt @load_texture_error
GetFrame1 4
add1 1
SetFrame1 4
GetFrame1 0
CallNative has_streamed_texture_dict_loaded 1 1
JumpFalse @load_texture_load
:load_texture_end
Push_1
Return 1 1
:load_texture_error
pushstring "~r~Error:~s~ Unable to load texture dictionary."
pushs 5000
call @print(string text,int ms)
Push_0
return 1 1
:load_texture_dict_loop(string texturedict)
Function 1 4
GetFrame1 0
CallNative has_streamed_texture_dict_loaded 1 1
not
JumpFalse @load_texture_end_loop
GetFrame1 0
Push_0
CallNative request_streamed_texture_dict 2 0
:load_texture_end_loop
return 1 0
//<
//> getsizefromtexture
:getsizefromtexture(txddict,txdname)
Function 2 12
GetFrameP1 7
GetFrameP1 8
CallNative get_screen_resolution 2 0
GetFrame1 0
GetFrame1 1
CallNative get_texture_resolution 2 3
Push_3
GetFrameP1 9
FromStack
GetFrame1 9
GetFrame1 7
ItoF
fDiv
GetFrame1 10
GetFrame1 8
ItoF
fDiv
return 2 2
//<
//> string_to_float
:string_to_float(string* toconvert)
Function 1 10
PushF_0
SetFrame1 3//rez
PushF_1
SetFrame1 4//fact
Push_0
SetFrame1 5//point seen
Push_0
SetFrame1 6//d
Push_0
SetFrame1 7//read char
GetFrame1 0
pget
PushB 24
CallNative shift_right 2 1
PushB 45//-
jumpne @loopforstof//ispositive
GetFrame1 0
add1 1
SetFrame1 0
PushF_-1
SetFrame1 4//fact
:loopforstof
GetFrame1 0
pget
PushB 24
CallNative shift_right 2 1
dup
SetFrame1 7//read char
Push_0//null
jumpeq @endstof
GetFrame1 7//read char
PushB 46//.
jumpne @continuepns
Push_1
SetFrame1 5//point seen
:continuepns
GetFrame1 7//read char
PushB 48//0
sub
SetFrame1 6//d
GetFrame1 6//d
Push_0
cmpge
GetFrame1 6//d
PushB 9
cmple
and
jumpfalse @stofskp
GetFrame1 5//point seen
jumpfalse @pnscontinue2
GetFrame1 4//fact
PushF 10
fdiv
SetFrame1 4//fact
:pnscontinue2
GetFrame1 3//rez
PushF 10
fmult
GetFrame1 6//d
itof
fadd
SetFrame1 3//rez
:stofskp
GetFrame1 0
add1 1
SetFrame1 0
jump @loopforstof
:endstof
GetFrame1 3
GetFrame1 4
fmult
return 1 1
//<
//> is_cursor_index_valid
:is_cursor_index_valid
Function 0 2
GetStatic1 5//cursor index
GetStatic1 6//item count
cmpgt
GetStatic1 5//cursor index
Push_1
cmplt
or
not
return 0 1
//<
//> get_model_hash_from_model_dir
:get_model_hash_from_model_dir(model*, mdir1hash, mdir2hash, mdir3hash)
Function 4 10
GetFrame1 2//dir2
jumpfalse @mdir1
GetFrame1 3//dir3
jumpfalse @mdir2
jump @mdir3
//4212454404 Cutscene Beta
//78623912 Heist Characters
//2888811966 In Game
//> mdir1
:mdir1
GetFrame1 1
switch [4212454404 @mdir1_csb]:[GetHash("Cutscene") @mdir1_cs]:[78623912 @mdir1_hc]:[2888811966 @mdir1_ig]:[GetHash("Singleplayer") @mdir1_player]
jump @end_get_model_hash_from_model_error
:mdir1_csb
pushstring "csb_"
jump @adddirmodel
:mdir1_cs
pushstring "cs_"
jump @adddirmodel
:mdir1_hc
pushstring "hc_"
jump @adddirmodel
:mdir1_ig
pushstring "ig_"
jump @adddirmodel
:mdir1_player
GetFrame1 0
gethash
switch [GetHash("Michael") @mdir1_sp_m]:[GetHash("Franklin") @mdir1_sp_f]:[GetHash("Trevor") @mdir1_sp_t]
jump @end_get_model_hash_from_model_error
:mdir1_sp_m
pushstring "player_zero"
gethash
jump @end_get_model_hash_from_model_dir
:mdir1_sp_f
pushstring "player_one"
gethash
jump @end_get_model_hash_from_model_dir
:mdir1_sp_t
pushstring "player_two"
gethash
jump @end_get_model_hash_from_model_dir
:adddirmodel
GetStaticP2 262
strcopy 64
GetFrame1 0
GetStaticP2 262
stradd 64
GetStaticP2 262
gethash
jump @end_get_model_hash_from_model_dir
//<
//> mdir2
:mdir2
GetFrame1 1//mdir1
switch [GetHash("Ambent") @mdir2_a]:[GetHash("Multiplayer") @mdir2_mp]
jump @end_get_model_hash_from_model_error
:mdir2_a
pushstring "a_c_"
jump @adddirmodel
:mdir2_mp
GetFrame1 2//mdir2
switch [GetHash("Female") @mdir2_f]:[GetHash("Male") @mdir2_m]
jump @end_get_model_hash_from_model_error
:mdir2_f
pushstring "mp_f_"
jump @adddirmodel
:mdir2_m
pushstring "mp_m_"
jump @adddirmodel
//<
//> mdir3
:mdir3
GetFrame1 1//mdir1
switch [GetHash("Ambent") @mdir3_a]:[GetHash("Gang") @mdir3_g]:[GetHash("Multiplayer") @mdir3_mp]:[GetHash("Special") @mdir3_s]:[GetHash("Unique") @mdir3_u]
jump @end_get_model_hash_from_model_error
:mdir3_a
pushstring "a_"
GetStaticP2 262
strcopy 64
jump @mdir3_dir2
:mdir3_g
pushstring "g_"
GetStaticP2 262
strcopy 64
jump @mdir3_dir2
:mdir3_mp
pushstring "mp_"
GetStaticP2 262
strcopy 64
jump @mdir3_dir2
:mdir3_s
pushstring "s_"
GetStaticP2 262
strcopy 64
jump @mdir3_dir2
:mdir3_u
pushstring "u_"
GetStaticP2 262
strcopy 64
:mdir3_dir2
GetFrame1 2
switch [GetHash("Female") @mdir3_dir2_f]:[GetHash("Male") @mdir3_dir2_m]:[GetHash("Special") @mdir3_dir2_s]:[GetHash("Gang") @mdir3_dir2_g]
jump @end_get_model_hash_from_model_error
:mdir3_dir2_f
pushstring "f_"
GetStaticP2 262
stradd 64
jump @mdir3_dir3
:mdir3_dir2_m
pushstring "m_"
GetStaticP2 262
stradd 64
jump @mdir3_dir3
:mdir3_dir2_s
pushstring "s_"
GetStaticP2 262
stradd 64
jump @mdir3_dir3
:mdir3_dir2_g
pushstring "g_"
GetStaticP2 262
stradd 64
:mdir3_dir3
GetFrame1 3
switch [GetHash("Old") @mdir3_dir3_o]:[GetHash("Young") @mdir3_dir3_y]:[GetHash("Midlife") @mdir3_dir3_m]
jump @end_get_model_hash_from_model_error
:mdir3_dir3_o
pushstring "o_"
GetStaticP2 262
stradd 64
jump @dir3end
:mdir3_dir3_y
pushstring "y_"
GetStaticP2 262
stradd 64
jump @dir3end
:mdir3_dir3_m
pushstring "m_"
GetStaticP2 262
stradd 64
:dir3end
GetFrame1 0
GetStaticP2 262
stradd 64
GetStaticP2 262
gethash
//<
:end_get_model_hash_from_model_dir
return 4 1
:end_get_model_hash_from_model_error
Push_0
return 4 1
//<
//> get_handling_pointer_from_hash
:get_handling_pointer_from_hash(int hash)
Function 1 8
//will need updateing in future
push 0x83BCA588//holds pointer to vehicle pointers for handling OFFSET
pget
SetFrame1 3//address of vehicle pointer list
Push_0
SetFrame1 4
Push_0
SetFrame1 5
:hpfhloop
GetFrame1 4
pushs 308//num of handling lines
jumpge @handling_pointer_from_hash_not_found
GetFrame1 3
GetFrame1 4
GetImmP//gets index in vehicle pointer list
pget//gets pointer
add1 4
dup
SetFrame1 5
pget//gets value
GetFrame1 0
jumpeq @end_get_handling_pointer_from_hash
GetFrame1 4
add1 1
SetFrame1 4
jump @hpfhloop
:end_get_handling_pointer_from_hash
GetFrame1 5
return 1 1
:handling_pointer_from_hash_not_found
Push_0
return 1 1
//<
//> veh_model_to_handling_hash
:veh_model_to_handling_hash(hash)
Function 1 3
//will need updateing in future
GetFrame1 0
CallNative is_model_in_cdimage 1 1
jumpfalse @endveh_model_to_handling_hash_blank
GetFrame1 0
CallNative is_model_a_vehicle 1 1
jumpfalse @endveh_model_to_handling_hash_blank
GetFrame1 0
switch [0xA8E38B01 @veh_model_to_handling_hash_ninef2]:[0x9441D8D5 @veh_model_to_handling_hash_asea2]:[0xB8081009 @veh_model_to_handling_hash_armytanker]:[0x9E6B14D6 @veh_model_to_handling_hash_armytrailer2]:[0xD1ABB666 @veh_model_to_handling_hash_freighttrailer]:[0x45D56ADA @veh_model_to_handling_hash_ambulance]:[0x432AA566 @veh_model_to_handling_hash_bfinjection]:[0xB44F0582 @veh_model_to_handling_hash_blazer3]:[0x7B8297C5 @veh_model_to_handling_hash_bison2]:[0x67B3F020 @veh_model_to_handling_hash_bison3]:[0xF21B33BE @veh_model_to_handling_hash_boxville2]:[0x07405E08 @veh_model_to_handling_hash_boxville3]:[0xD756460C @veh_model_to_handling_hash_buccaneer]:[0x7074F39D @veh_model_to_handling_hash_bulldozer]:[0xC9E8FF76 @veh_model_to_handling_hash_burrito2]:[0x98171BD3 @veh_model_to_handling_hash_burrito3]:[0x353B561D @veh_model_to_handling_hash_burrito4]:[0x437CF2A0 @veh_model_to_handling_hash_burrito5]:[0x779F23AA @veh_model_to_handling_hash_cavalcade]:[0xD0EB2BE5 @veh_model_to_handling_hash_cavalcade2]:[0x97FA4F36 @veh_model_to_handling_hash_gburrito]:[0xC6C3242D @veh_model_to_handling_hash_cablecar]:[0x7B8AB45F @veh_model_to_handling_hash_carbonizzare]:[0xC1AE4D16 @veh_model_to_handling_hash_comet2]:[0x64430650 @veh_model_to_handling_hash_dilettante2]:[0x1FD824AF @veh_model_to_handling_hash_dune2]:[0xE882E5F6 @veh_model_to_handling_hash_dubsta2]:[0x8FC3AADC @veh_model_to_handling_hash_emperor2]:[0xB5FCF74E @veh_model_to_handling_hash_emperor3]:[0x9DC66994 @veh_model_to_handling_hash_fbi2]:[0x8911B9F5 @veh_model_to_handling_hash_feltzer2]:[0xB9CB3B69 @veh_model_to_handling_hash_issi2]:[0x206D1B68 @veh_model_to_handling_hash_khamelion]:[0xD36A4B44 @veh_model_to_handling_hash_mesa2]:[0x84F42E51 @veh_model_to_handling_hash_mesa3]:[0xC1632BEB @veh_model_to_handling_hash_mule2]:[0x8A63C7B9 @veh_model_to_handling_hash_police4]:[0xA46462F7 @veh_model_to_handling_hash_policeold1]:[0x95F4C618 @veh_model_to_handling_hash_policeold2]:[0x38408341 @veh_model_to_handling_hash_pony2]:[0x7341576B @veh_model_to_handling_hash_rancherxl2]:[0x679450AF @veh_model_to_handling_hash_rapidgt2]:[0xD83C13CE @veh_model_to_handling_hash_ratloader]:[0x8612B64B @veh_model_to_handling_hash_rebel2]:[0xBE819C63 @veh_model_to_handling_hash_rentalbus]:[0x961AFEF7 @veh_model_to_handling_hash_rumpo2]:[0x2BC345D1 @veh_model_to_handling_hash_sadler2]:[0x3AF8C345 @veh_model_to_handling_hash_sandking2]:[0xD37B7976 @veh_model_to_handling_hash_schwarzer]:[0x3412AE2D @veh_model_to_handling_hash_sentinel2]:[0xB8E2AE18 @veh_model_to_handling_hash_zion2]:[0x72935408 @veh_model_to_handling_hash_sheriff2]:[0x2B6DC64A @veh_model_to_handling_hash_speedo2]:[0xF337AB36 @veh_model_to_handling_hash_stockade3]:[0xB1D80E06 @veh_model_to_handling_hash_surfer2]:[0xC3DDFDCE @veh_model_to_handling_hash_tailgater]:[0xC703DB5F @veh_model_to_handling_hash_taxi]:[0x562A97BD @veh_model_to_handling_hash_tractor3]:[0x3CC7F596 @veh_model_to_handling_hash_graintrailer]:[0x5B42A5C4 @veh_model_to_handling_hash_tornado2]:[0x690A4153 @veh_model_to_handling_hash_tornado3]:[0x86CF7CDD @veh_model_to_handling_hash_tornado4]:[0x1ED0A534 @veh_model_to_handling_hash_utillitruck]:[0x34E6BF6B @veh_model_to_handling_hash_utillitruck2]:[0x7F2153DF @veh_model_to_handling_hash_utillitruck3]:[0xA960B13E @veh_model_to_handling_hash_sanchez2]:[0xB67597EC @veh_model_to_handling_hash_tribike2]:[0xE823FB48 @veh_model_to_handling_hash_tribike3]:[0x00ABB0C0 @veh_model_to_handling_hash_carbonrs]:[0xCADD5D2D @veh_model_to_handling_hash_bati2]:[0x0350D1AB @veh_model_to_handling_hash_faggio2]:[0x31F0B376 @veh_model_to_handling_hash_annihilator]:[0x60A7EA10 @veh_model_to_handling_hash_cargobob2]:[0x53174EEF @veh_model_to_handling_hash_cargobob3]:[0x742E9AC0 @veh_model_to_handling_hash_frogger2]:[0xDB4388E4 @veh_model_to_handling_hash_seashark2]:[0x36DCFF98 @veh_model_to_handling_hash_freightcont1]:[0x0E512E79 @veh_model_to_handling_hash_freightcont2]:[0x264D9262 @veh_model_to_handling_hash_freightgrain]:[0x22EDDC30 @veh_model_to_handling_hash_tankercar]:[0xCBB2BE0E @veh_model_to_handling_hash_trailers]:[0xA1DA3C91 @veh_model_to_handling_hash_trailers2]:[0x8548036D @veh_model_to_handling_hash_trailers3]:[0x967620BE @veh_model_to_handling_hash_tvtrailer]:[0x782A236D @veh_model_to_handling_hash_trailerlogs]:[0x7CAB34D0 @veh_model_to_handling_hash_tr4]:[0xF683EACA @veh_model_to_handling_hash_innovation]:[0xDCE1D9F7 @veh_model_to_handling_hash_ratloader2]:[0x2C509634 @veh_model_to_handling_hash_sovereign]:[0x322CF98F @veh_model_to_handling_hash_rhapsody]:[0x06FF6914 @veh_model_to_handling_hash_btype]:[0x403820E8 @veh_model_to_handling_hash_velum2]:[0x74998082 @veh_model_to_handling_hash_tanker2]:[0x1A79847A @veh_model_to_handling_hash_boxville4]:[0x1E5E54EA @veh_model_to_handling_hash_dinghy3]:[0x2592B5CF @veh_model_to_handling_hash_barracks3]:[0xA09E15FD @veh_model_to_handling_hash_valkyrie]
GetFrame1 0
return 1 1
:veh_model_to_handling_hash_ninef2
push GetHash("NINEF")
return 1 1
:veh_model_to_handling_hash_asea2
push GetHash("ASEA")
return 1 1
:veh_model_to_handling_hash_armytanker
push GetHash("TANKER")
return 1 1
:veh_model_to_handling_hash_armytrailer2
push GetHash("ARMYTRAILER")
return 1 1
:veh_model_to_handling_hash_freighttrailer
push GetHash("ARMYTRAILER")
return 1 1
:veh_model_to_handling_hash_ambulance
push GetHash("AMBULAN")
return 1 1
:veh_model_to_handling_hash_bfinjection
push GetHash("BFINJECT")
return 1 1
:veh_model_to_handling_hash_blazer3
push GetHash("BLAZER")
return 1 1
:veh_model_to_handling_hash_bison2
push GetHash("BISON")
return 1 1
:veh_model_to_handling_hash_bison3
push GetHash("BISON")
return 1 1
:veh_model_to_handling_hash_boxville2
push GetHash("BOXVILLE")
return 1 1
:veh_model_to_handling_hash_boxville3
push GetHash("BOXVILLE")
return 1 1
:veh_model_to_handling_hash_buccaneer
push GetHash("BUCCANEE")
return 1 1
:veh_model_to_handling_hash_bulldozer
push GetHash("BULLDOZE")
return 1 1
:veh_model_to_handling_hash_burrito2
push GetHash("BURRITO")
return 1 1
:veh_model_to_handling_hash_burrito3
push GetHash("BURRITO")
return 1 1
:veh_model_to_handling_hash_burrito4
push GetHash("BURRITO")
return 1 1
:veh_model_to_handling_hash_burrito5
push GetHash("BURRITO")
return 1 1
:veh_model_to_handling_hash_cavalcade
push GetHash("CAVCADE")
return 1 1
:veh_model_to_handling_hash_cavalcade2
push GetHash("CAVCADE")
return 1 1
:veh_model_to_handling_hash_gburrito
push GetHash("BURRITO")
return 1 1
:veh_model_to_handling_hash_cablecar
push GetHash("FREIGHT")
return 1 1
:veh_model_to_handling_hash_carbonizzare
push GetHash("CARBONIZ")
return 1 1
:veh_model_to_handling_hash_comet2
push GetHash("COMET")
return 1 1
:veh_model_to_handling_hash_dilettante2
push GetHash("DILETTANTE")
return 1 1
:veh_model_to_handling_hash_dune2
push GetHash("DUNE2")
return 1 1
:veh_model_to_handling_hash_dubsta2
push GetHash("DUBSTA")
return 1 1
:veh_model_to_handling_hash_emperor2
push GetHash("EMPEROR")
return 1 1
:veh_model_to_handling_hash_emperor3
push GetHash("EMPEROR")
return 1 1
:veh_model_to_handling_hash_fbi2
push GetHash("FBI2")
return 1 1
:veh_model_to_handling_hash_feltzer2
push GetHash("FELTZER")
return 1 1
:veh_model_to_handling_hash_issi2
push GetHash("ISSI")
return 1 1
:veh_model_to_handling_hash_khamelion
push GetHash("KHAMEL")
return 1 1
:veh_model_to_handling_hash_mesa2
push GetHash("MESA")
return 1 1
:veh_model_to_handling_hash_mesa3
push GetHash("MESA")
return 1 1
:veh_model_to_handling_hash_mule2
push GetHash("MULE")
return 1 1
:veh_model_to_handling_hash_police4
push GetHash("POLICE")
return 1 1
:veh_model_to_handling_hash_policeold1
push GetHash("POLICEOLD")
return 1 1
:veh_model_to_handling_hash_policeold2
push GetHash("POLICEOL2")
return 1 1
:veh_model_to_handling_hash_pony2
push GetHash("PONY")
return 1 1
:veh_model_to_handling_hash_rancherxl2
push GetHash("RANCHERXL")
return 1 1
:veh_model_to_handling_hash_rapidgt2
push GetHash("RAPIDGT")
return 1 1
:veh_model_to_handling_hash_ratloader
push GetHash("RLOADER")
return 1 1
:veh_model_to_handling_hash_rebel2
push GetHash("REBEL")
return 1 1
:veh_model_to_handling_hash_rentalbus
push GetHash("TOURBUS")
return 1 1
:veh_model_to_handling_hash_rumpo2
push GetHash("RUMPO")
return 1 1
:veh_model_to_handling_hash_sadler2
push GetHash("SADLER")
return 1 1
:veh_model_to_handling_hash_sandking2
push GetHash("SANDKING")
return 1 1
:veh_model_to_handling_hash_schwarzer
push GetHash("SCHWARZE")
return 1 1
:veh_model_to_handling_hash_sentinel2
push GetHash("SENTINEL")
return 1 1
:veh_model_to_handling_hash_zion2
push GetHash("ZION")
return 1 1
:veh_model_to_handling_hash_sheriff2
push GetHash("FBI2")
return 1 1
:veh_model_to_handling_hash_speedo2
push GetHash("SPEEDO")
return 1 1
:veh_model_to_handling_hash_stockade3
push GetHash("STOCKADE")
return 1 1
:veh_model_to_handling_hash_surfer2
push GetHash("SURFER")
return 1 1
:veh_model_to_handling_hash_tailgater
push GetHash("TAILGATE")
return 1 1
:veh_model_to_handling_hash_taxi
push GetHash("TAXI2")
return 1 1
:veh_model_to_handling_hash_tractor3
push GetHash("TRACTOR2")
return 1 1
:veh_model_to_handling_hash_graintrailer
push GetHash("GRAINTRAIL")
return 1 1
:veh_model_to_handling_hash_tornado2
push GetHash("TORNADO")
return 1 1
:veh_model_to_handling_hash_tornado3
push GetHash("TORNADO")
return 1 1
:veh_model_to_handling_hash_tornado4
push GetHash("TORNADO")
return 1 1
:veh_model_to_handling_hash_utillitruck
push GetHash("UTILTRUC")
return 1 1
:veh_model_to_handling_hash_utillitruck2
push GetHash("UTILTRUC2")
return 1 1
:veh_model_to_handling_hash_utillitruck3
push GetHash("UTILTRUC3")
return 1 1
:veh_model_to_handling_hash_sanchez2
push GetHash("SANCHEZ")
return 1 1
:veh_model_to_handling_hash_tribike2
push GetHash("TRIBIKE")
return 1 1
:veh_model_to_handling_hash_tribike3
push GetHash("TRIBIKE")
return 1 1
:veh_model_to_handling_hash_carbonrs
push GetHash("CARBON")
return 1 1
:veh_model_to_handling_hash_bati2
push GetHash("BATI")
return 1 1
:veh_model_to_handling_hash_faggio2
push GetHash("FAGGIO")
return 1 1
:veh_model_to_handling_hash_annihilator
push GetHash("ANNIHL")
return 1 1
:veh_model_to_handling_hash_cargobob2
push GetHash("CARGOBOB")
return 1 1
:veh_model_to_handling_hash_cargobob3
push GetHash("CARGOBOB")
return 1 1
:veh_model_to_handling_hash_frogger2
push GetHash("FROGGER")
return 1 1
:veh_model_to_handling_hash_seashark2
push GetHash("SEASHARK")
return 1 1
:veh_model_to_handling_hash_freightcont1
push GetHash("FREIGHT")
return 1 1
:veh_model_to_handling_hash_freightcont2
push GetHash("FREIGHT")
return 1 1
:veh_model_to_handling_hash_freightgrain
push GetHash("FREIGHT")
return 1 1
:veh_model_to_handling_hash_tankercar
push GetHash("FREIGHT")
return 1 1
:veh_model_to_handling_hash_trailers
push GetHash("TRAILER")
return 1 1
:veh_model_to_handling_hash_trailers2
push GetHash("TRAILER2")
return 1 1
:veh_model_to_handling_hash_trailers3
push GetHash("TRAILER2")
return 1 1
:veh_model_to_handling_hash_tvtrailer
push GetHash("TRAILER")
return 1 1
:veh_model_to_handling_hash_trailerlogs
push GetHash("TRAILERL")
return 1 1
:veh_model_to_handling_hash_tr4
push GetHash("TR2")
return 1 1
:veh_model_to_handling_hash_innovation
push GetHash("INNOVAT")
return 1 1
:veh_model_to_handling_hash_ratloader2
push GetHash("RLOADER2")
return 1 1
:veh_model_to_handling_hash_sovereign
push GetHash("POLICEB")
return 1 1
:veh_model_to_handling_hash_rhapsody
push GetHash("RHAPSODY1")
return 1 1
:veh_model_to_handling_hash_btype
push GetHash("ROOSEVELT")
return 1 1
:veh_model_to_handling_hash_velum2
push GetHash("VELUM")
return 1 1
:veh_model_to_handling_hash_tanker2
push GetHash("TANKER")
return 1 1
:veh_model_to_handling_hash_boxville4
push GetHash("BOXVILLE")
return 1 1
:veh_model_to_handling_hash_dinghy3
push GetHash("DINGHY")
return 1 1
:veh_model_to_handling_hash_barracks3
push GetHash("BARRACKS")
return 1 1
:veh_model_to_handling_hash_valkyrie
push GetHash("VALKYR")
return 1 1
:endveh_model_to_handling_hash_blank
Push_0
return 1 1
//<
//> get_vehicle_weapon_index
:get_vehicle_weapon_index(int vweaponhash,int vWeapStartAddress)
Function 2 4
GetFrame1 1
pget
GetFrame1 0
jumpne @con_vweapon_index2
Push_1
return 2 1
:con_vweapon_index2
GetFrame1 1
add1 4
pget
GetFrame1 0
jumpne @con_vweapon_index3
Push_2
return 2 1
:con_vweapon_index3
GetFrame1 1
add1 8
pget
GetFrame1 0
jumpne @con_vweapon_endindex
Push_3
return 2 1
:con_vweapon_endindex
Push_0
return 2 1
//<
//> get_vehicle_weapon_pointer_from_model_hash
:get_vehicle_weapon_pointer_from_model_hash(hash)
Function 1 5
//might need updateing in future
GetFrame1 0
call @veh_model_to_handling_hash(hash)
call @get_handling_pointer_from_hash(int hash)
dup
SetFrame1 4
jumpfalse @vehicle_weapon_pointer_error
GetFrame1 0
push GetHash("hydra")
jumpne @vehicle_weapon_data_not_hydra
GetFrame1 4
add2 960//account for hydras sub handling data
return 1 1
:vehicle_weapon_data_not_hydra
GetFrame1 0
callnative is_this_model_a_heli 1 1
GetFrame1 0
callnative is_this_model_a_plane 1 1
or
jumpfalse @vehicle_weapon_data_no_sub_h_data
GetFrame1 4
add2 640//account for sub handling data
return 1 1
:vehicle_weapon_data_no_sub_h_data
GetFrame1 4
add2 320//len of handling
return 1 1
:vehicle_weapon_pointer_error
push_0
return 1 1
//<
//> cursorindex_to_vehicle_weapon
:cursorindex_to_vehicle_weapon
Function 0 2
GetStatic1 5//cursor index
switch [1 @VEHICLE_WEAPON_TANK]:[2 @VEHICLE_WEAPON_SPACE_ROCKET]:[3 @VEHICLE_WEAPON_PLANE_ROCKET]:[4 @VEHICLE_WEAPON_PLAYER_LAZER]:[5 @VEHICLE_WEAPON_PLAYER_BULLET]:[6 @VEHICLE_WEAPON_PLAYER_BUZZARD]:[7 @VEHICLE_WEAPON_PLAYER_HUNTER]:[8 @VEHICLE_WEAPON_PLAYER_LASER]:[9 @VEHICLE_WEAPON_ENEMY_LASER]:[10 @VEHICLE_WEAPON_WATER_CANNON]:[11 @VEHICLE_WEAPON_TURRET_INSURGENT]:[12 @VEHICLE_WEAPON_TURRET_TECHNICAL]:[13 @VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE]:[14 @VEHICLE_WEAPON_PLAYER_SAVAGE]
Push_0
return 0 1
:VEHICLE_WEAPON_TANK
push GetHash("VEHICLE_WEAPON_TANK")
return 0 1
:VEHICLE_WEAPON_SPACE_ROCKET
push GetHash("VEHICLE_WEAPON_SPACE_ROCKET")
return 0 1
:VEHICLE_WEAPON_PLANE_ROCKET
push GetHash("VEHICLE_WEAPON_PLANE_ROCKET")
return 0 1
:VEHICLE_WEAPON_PLAYER_LAZER
push GetHash("VEHICLE_WEAPON_PLAYER_LAZER")
return 0 1
:VEHICLE_WEAPON_PLAYER_BULLET
push GetHash("VEHICLE_WEAPON_PLAYER_BULLET")
return 0 1
:VEHICLE_WEAPON_PLAYER_BUZZARD
push GetHash("VEHICLE_WEAPON_PLAYER_BUZZARD")
return 0 1
:VEHICLE_WEAPON_PLAYER_HUNTER
push GetHash("VEHICLE_WEAPON_PLAYER_HUNTER")
return 0 1
:VEHICLE_WEAPON_PLAYER_LASER
push GetHash("VEHICLE_WEAPON_PLAYER_LASER")
return 0 1
:VEHICLE_WEAPON_ENEMY_LASER
push GetHash("VEHICLE_WEAPON_ENEMY_LASER")
return 0 1
:VEHICLE_WEAPON_WATER_CANNON
push GetHash("VEHICLE_WEAPON_WATER_CANNON")
return 0 1
:VEHICLE_WEAPON_TURRET_INSURGENT
push GetHash("VEHICLE_WEAPON_TURRET_INSURGENT")
return 0 1
:VEHICLE_WEAPON_TURRET_TECHNICAL
push GetHash("VEHICLE_WEAPON_TURRET_TECHNICAL")
return 0 1
:VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE
push GetHash("VEHICLE_WEAPON_NOSE_TURRET_VALKYRIE")
return 0 1
:VEHICLE_WEAPON_PLAYER_SAVAGE
push GetHash("VEHICLE_WEAPON_PLAYER_SAVAGE")
return 0 1
//<
//> vehicle meta indexing
:get_veh_meta_index_from_hash(hash)
Function 1 3
//will need updating on dlc
GetFrame1 0
switch [GetHash("ninef") @vehmetaindexing_ninef]:[GetHash("ninef2") @vehmetaindexing_ninef2]:[GetHash("blista") @vehmetaindexing_blista]:[GetHash("asea") @vehmetaindexing_asea]:[GetHash("asea2") @vehmetaindexing_asea2]:[GetHash("boattrailer") @vehmetaindexing_boattrailer]:[GetHash("bus") @vehmetaindexing_bus]:[GetHash("armytanker") @vehmetaindexing_armytanker]:[GetHash("armytrailer") @vehmetaindexing_armytrailer]:[GetHash("armytrailer2") @vehmetaindexing_armytrailer2]:[GetHash("freighttrailer") @vehmetaindexing_freighttrailer]:[GetHash("coach") @vehmetaindexing_coach]:[GetHash("airbus") @vehmetaindexing_airbus]:[GetHash("asterope") @vehmetaindexing_asterope]:[GetHash("airtug") @vehmetaindexing_airtug]:[GetHash("ambulance") @vehmetaindexing_ambulance]:[GetHash("barracks") @vehmetaindexing_barracks]:[GetHash("barracks2") @vehmetaindexing_barracks2]:[GetHash("baller") @vehmetaindexing_baller]:[GetHash("baller2") @vehmetaindexing_baller2]:[GetHash("bjxl") @vehmetaindexing_bjxl]:[GetHash("banshee") @vehmetaindexing_banshee]:[GetHash("benson") @vehmetaindexing_benson]:[GetHash("bfinjection") @vehmetaindexing_bfinjection]:[GetHash("biff") @vehmetaindexing_biff]:[GetHash("blazer") @vehmetaindexing_blazer]:[GetHash("blazer2") @vehmetaindexing_blazer2]:[GetHash("blazer3") @vehmetaindexing_blazer3]:[GetHash("bison") @vehmetaindexing_bison]:[GetHash("bison2") @vehmetaindexing_bison2]:[GetHash("bison3") @vehmetaindexing_bison3]:[GetHash("boxville") @vehmetaindexing_boxville]:[GetHash("boxville2") @vehmetaindexing_boxville2]:[GetHash("boxville3") @vehmetaindexing_boxville3]:[GetHash("bobcatxl") @vehmetaindexing_bobcatxl]:[GetHash("bodhi2") @vehmetaindexing_bodhi2]:[GetHash("buccaneer") @vehmetaindexing_buccaneer]:[GetHash("buffalo") @vehmetaindexing_buffalo]:[GetHash("buffalo2") @vehmetaindexing_buffalo2]:[GetHash("bulldozer") @vehmetaindexing_bulldozer]:[GetHash("bullet") @vehmetaindexing_bullet]:[GetHash("blimp") @vehmetaindexing_blimp]:[GetHash("burrito") @vehmetaindexing_burrito]:[GetHash("burrito2") @vehmetaindexing_burrito2]:[GetHash("burrito3") @vehmetaindexing_burrito3]:[GetHash("burrito4") @vehmetaindexing_burrito4]:[GetHash("burrito5") @vehmetaindexing_burrito5]:[GetHash("cavalcade") @vehmetaindexing_cavalcade]:[GetHash("cavalcade2") @vehmetaindexing_cavalcade2]:[GetHash("policet") @vehmetaindexing_policet]:[GetHash("gburrito") @vehmetaindexing_gburrito]:[GetHash("cablecar") @vehmetaindexing_cablecar]:[GetHash("caddy") @vehmetaindexing_caddy]:[GetHash("caddy2") @vehmetaindexing_caddy2]:[GetHash("camper") @vehmetaindexing_camper]:[GetHash("carbonizzare") @vehmetaindexing_carbonizzare]:[GetHash("cheetah") @vehmetaindexing_cheetah]:[GetHash("comet2") @vehmetaindexing_comet2]:[GetHash("cogcabrio") @vehmetaindexing_cogcabrio]:[GetHash("coquette") @vehmetaindexing_coquette]:[GetHash("cutter") @vehmetaindexing_cutter]:[GetHash("gresley") @vehmetaindexing_gresley]:[GetHash("dilettante") @vehmetaindexing_dilettante]:[GetHash("dilettante2") @vehmetaindexing_dilettante2]:[GetHash("dune") @vehmetaindexing_dune]:[GetHash("dune2") @vehmetaindexing_dune2]:[GetHash("hotknife") @vehmetaindexing_hotknife]:[GetHash("dloader") @vehmetaindexing_dloader]:[GetHash("dubsta") @vehmetaindexing_dubsta]:[GetHash("dubsta2") @vehmetaindexing_dubsta2]:[GetHash("dump") @vehmetaindexing_dump]:[GetHash("rubble") @vehmetaindexing_rubble]:[GetHash("docktug") @vehmetaindexing_docktug]:[GetHash("dominator") @vehmetaindexing_dominator]:[GetHash("emperor") @vehmetaindexing_emperor]:[GetHash("emperor2") @vehmetaindexing_emperor2]:[GetHash("emperor3") @vehmetaindexing_emperor3]:[GetHash("entityxf") @vehmetaindexing_entityxf]:[GetHash("exemplar") @vehmetaindexing_exemplar]:[GetHash("elegy2") @vehmetaindexing_elegy2]:[GetHash("f620") @vehmetaindexing_f620]:[GetHash("fbi") @vehmetaindexing_fbi]:[GetHash("fbi2") @vehmetaindexing_fbi2]:[GetHash("felon") @vehmetaindexing_felon]:[GetHash("felon2") @vehmetaindexing_felon2]:[GetHash("feltzer2") @vehmetaindexing_feltzer2]:[GetHash("firetruk") @vehmetaindexing_firetruk]:[GetHash("flatbed") @vehmetaindexing_flatbed]:[GetHash("forklift") @vehmetaindexing_forklift]:[GetHash("fq2") @vehmetaindexing_fq2]:[GetHash("fusilade") @vehmetaindexing_fusilade]:[GetHash("fugitive") @vehmetaindexing_fugitive]:[GetHash("futo") @vehmetaindexing_futo]:[GetHash("granger") @vehmetaindexing_granger]:[GetHash("gauntlet") @vehmetaindexing_gauntlet]:[GetHash("habanero") @vehmetaindexing_habanero]:[GetHash("hauler") @vehmetaindexing_hauler]:[GetHash("handler") @vehmetaindexing_handler]:[GetHash("infernus") @vehmetaindexing_infernus]:[GetHash("ingot") @vehmetaindexing_ingot]:[GetHash("intruder") @vehmetaindexing_intruder]:[GetHash("issi2") @vehmetaindexing_issi2]:[GetHash("Jackal") @vehmetaindexing_Jackal]:[GetHash("journey") @vehmetaindexing_journey]:[GetHash("jb700") @vehmetaindexing_jb700]:[GetHash("khamelion") @vehmetaindexing_khamelion]:[GetHash("landstalker") @vehmetaindexing_landstalker]:[GetHash("lguard") @vehmetaindexing_lguard]:[GetHash("manana") @vehmetaindexing_manana]:[GetHash("mesa") @vehmetaindexing_mesa]:[GetHash("mesa2") @vehmetaindexing_mesa2]:[GetHash("mesa3") @vehmetaindexing_mesa3]:[GetHash("crusader") @vehmetaindexing_crusader]:[GetHash("minivan") @vehmetaindexing_minivan]:[GetHash("mixer") @vehmetaindexing_mixer]:[GetHash("mixer2") @vehmetaindexing_mixer2]:[GetHash("monroe") @vehmetaindexing_monroe]:[GetHash("mower") @vehmetaindexing_mower]:[GetHash("mule") @vehmetaindexing_mule]:[GetHash("mule2") @vehmetaindexing_mule2]:[GetHash("oracle") @vehmetaindexing_oracle]:[GetHash("oracle2") @vehmetaindexing_oracle2]:[GetHash("packer") @vehmetaindexing_packer]:[GetHash("patriot") @vehmetaindexing_patriot]:[GetHash("pbus") @vehmetaindexing_pbus]:[GetHash("penumbra") @vehmetaindexing_penumbra]:[GetHash("peyote") @vehmetaindexing_peyote]:[GetHash("phantom") @vehmetaindexing_phantom]:[GetHash("phoenix") @vehmetaindexing_phoenix]:[GetHash("picador") @vehmetaindexing_picador]:[GetHash("pounder") @vehmetaindexing_pounder]:[GetHash("police") @vehmetaindexing_police]:[GetHash("police4") @vehmetaindexing_police4]:[GetHash("police2") @vehmetaindexing_police2]:[GetHash("police3") @vehmetaindexing_police3]:[GetHash("policeold1") @vehmetaindexing_policeold1]:[GetHash("policeold2") @vehmetaindexing_policeold2]:[GetHash("pony") @vehmetaindexing_pony]:[GetHash("pony2") @vehmetaindexing_pony2]:[GetHash("prairie") @vehmetaindexing_prairie]:[GetHash("pranger") @vehmetaindexing_pranger]:[GetHash("premier") @vehmetaindexing_premier]:[GetHash("primo") @vehmetaindexing_primo]:[GetHash("proptrailer") @vehmetaindexing_proptrailer]:[GetHash("rancherxl") @vehmetaindexing_rancherxl]:[GetHash("rancherxl2") @vehmetaindexing_rancherxl2]:[GetHash("rapidgt") @vehmetaindexing_rapidgt]:[GetHash("rapidgt2") @vehmetaindexing_rapidgt2]:[GetHash("radi") @vehmetaindexing_radi]:[GetHash("ratloader") @vehmetaindexing_ratloader]:[GetHash("rebel") @vehmetaindexing_rebel]:[GetHash("regina") @vehmetaindexing_regina]:[GetHash("rebel2") @vehmetaindexing_rebel2]:[GetHash("rentalbus") @vehmetaindexing_rentalbus]:[GetHash("ruiner") @vehmetaindexing_ruiner]:[GetHash("rumpo") @vehmetaindexing_rumpo]:[GetHash("rumpo2") @vehmetaindexing_rumpo2]:[GetHash("rhino") @vehmetaindexing_rhino]:[GetHash("riot") @vehmetaindexing_riot]:[GetHash("ripley") @vehmetaindexing_ripley]:[GetHash("rocoto") @vehmetaindexing_rocoto]:[GetHash("romero") @vehmetaindexing_romero]:[GetHash("sabregt") @vehmetaindexing_sabregt]:[GetHash("sadler") @vehmetaindexing_sadler]:[GetHash("sadler2") @vehmetaindexing_sadler2]:[GetHash("sandking") @vehmetaindexing_sandking]:[GetHash("sandking2") @vehmetaindexing_sandking2]:[GetHash("schafter2") @vehmetaindexing_schafter2]:[GetHash("schwarzer") @vehmetaindexing_schwarzer]:[GetHash("scrap") @vehmetaindexing_scrap]:[GetHash("seminole") @vehmetaindexing_seminole]:[GetHash("sentinel") @vehmetaindexing_sentinel]:[GetHash("sentinel2") @vehmetaindexing_sentinel2]:[GetHash("zion") @vehmetaindexing_zion]:[GetHash("zion2") @vehmetaindexing_zion2]:[GetHash("serrano") @vehmetaindexing_serrano]:[GetHash("sheriff") @vehmetaindexing_sheriff]:[GetHash("sheriff2") @vehmetaindexing_sheriff2]:[GetHash("speedo") @vehmetaindexing_speedo]:[GetHash("speedo2") @vehmetaindexing_speedo2]:[GetHash("stanier") @vehmetaindexing_stanier]:[GetHash("stinger") @vehmetaindexing_stinger]:[GetHash("stingergt") @vehmetaindexing_stingergt]:[GetHash("stockade") @vehmetaindexing_stockade]:[GetHash("stockade3") @vehmetaindexing_stockade3]:[GetHash("stratum") @vehmetaindexing_stratum]:[GetHash("sultan") @vehmetaindexing_sultan]:[GetHash("superd") @vehmetaindexing_superd]:[GetHash("surano") @vehmetaindexing_surano]:[GetHash("surfer") @vehmetaindexing_surfer]:[GetHash("surfer2") @vehmetaindexing_surfer2]:[GetHash("surge") @vehmetaindexing_surge]:[GetHash("taco") @vehmetaindexing_taco]:[GetHash("tailgater") @vehmetaindexing_tailgater]:[GetHash("taxi") @vehmetaindexing_taxi]:[GetHash("trash") @vehmetaindexing_trash]:[GetHash("tractor") @vehmetaindexing_tractor]:[GetHash("tractor2") @vehmetaindexing_tractor2]:[GetHash("tractor3") @vehmetaindexing_tractor3]:[GetHash("graintrailer") @vehmetaindexing_graintrailer]:[GetHash("baletrailer") @vehmetaindexing_baletrailer]:[GetHash("tiptruck") @vehmetaindexing_tiptruck]:[GetHash("tiptruck2") @vehmetaindexing_tiptruck2]:[GetHash("tornado") @vehmetaindexing_tornado]:[GetHash("tornado2") @vehmetaindexing_tornado2]:[GetHash("tornado3") @vehmetaindexing_tornado3]:[GetHash("tornado4") @vehmetaindexing_tornado4]:[GetHash("tourbus") @vehmetaindexing_tourbus]:[GetHash("towtruck") @vehmetaindexing_towtruck]:[GetHash("towtruck2") @vehmetaindexing_towtruck2]:[GetHash("utillitruck") @vehmetaindexing_utillitruck]:[GetHash("utillitruck2") @vehmetaindexing_utillitruck2]:[GetHash("utillitruck3") @vehmetaindexing_utillitruck3]:[GetHash("voodoo2") @vehmetaindexing_voodoo2]:[GetHash("washington") @vehmetaindexing_washington]:[GetHash("stretch") @vehmetaindexing_stretch]:[GetHash("youga") @vehmetaindexing_youga]:[GetHash("ztype") @vehmetaindexing_ztype]:[GetHash("sanchez") @vehmetaindexing_sanchez]:[GetHash("sanchez2") @vehmetaindexing_sanchez2]:[GetHash("scorcher") @vehmetaindexing_scorcher]:[GetHash("tribike") @vehmetaindexing_tribike]:[GetHash("tribike2") @vehmetaindexing_tribike2]:[GetHash("tribike3") @vehmetaindexing_tribike3]:[GetHash("fixter") @vehmetaindexing_fixter]:[GetHash("cruiser") @vehmetaindexing_cruiser]:[GetHash("BMX") @vehmetaindexing_BMX]:[GetHash("policeb") @vehmetaindexing_policeb]:[GetHash("akuma") @vehmetaindexing_akuma]:[GetHash("carbonrs") @vehmetaindexing_carbonrs]:[GetHash("bagger") @vehmetaindexing_bagger]:[GetHash("bati") @vehmetaindexing_bati]:[GetHash("bati2") @vehmetaindexing_bati2]:[GetHash("ruffian") @vehmetaindexing_ruffian]:[GetHash("daemon") @vehmetaindexing_daemon]:[GetHash("double") @vehmetaindexing_double]:[GetHash("pcj") @vehmetaindexing_pcj]:[GetHash("vader") @vehmetaindexing_vader]:[GetHash("vigero") @vehmetaindexing_vigero]:[GetHash("faggio2") @vehmetaindexing_faggio2]:[GetHash("hexer") @vehmetaindexing_hexer]:[GetHash("annihilator") @vehmetaindexing_annihilator]:[GetHash("buzzard") @vehmetaindexing_buzzard]:[GetHash("buzzard2") @vehmetaindexing_buzzard2]:[GetHash("cargobob") @vehmetaindexing_cargobob]:[GetHash("cargobob2") @vehmetaindexing_cargobob2]:[GetHash("cargobob3") @vehmetaindexing_cargobob3]:[GetHash("skylift") @vehmetaindexing_skylift]:[GetHash("polmav") @vehmetaindexing_polmav]:[GetHash("maverick") @vehmetaindexing_maverick]:[GetHash("nemesis") @vehmetaindexing_nemesis]:[GetHash("frogger") @vehmetaindexing_frogger]:[GetHash("frogger2") @vehmetaindexing_frogger2]:[GetHash("cuban800") @vehmetaindexing_cuban800]
GetFrame1 0
switch [GetHash("duster") @vehmetaindexing_duster]:[GetHash("stunt") @vehmetaindexing_stunt]:[GetHash("mammatus") @vehmetaindexing_mammatus]:[GetHash("jet") @vehmetaindexing_jet]:[GetHash("shamal") @vehmetaindexing_shamal]:[GetHash("luxor") @vehmetaindexing_luxor]:[GetHash("titan") @vehmetaindexing_titan]:[GetHash("lazer") @vehmetaindexing_lazer]:[GetHash("cargoplane") @vehmetaindexing_cargoplane]:[GetHash("squalo") @vehmetaindexing_squalo]:[GetHash("marquis") @vehmetaindexing_marquis]:[GetHash("dinghy") @vehmetaindexing_dinghy]:[GetHash("dinghy2") @vehmetaindexing_dinghy2]:[GetHash("jetmax") @vehmetaindexing_jetmax]:[GetHash("predator") @vehmetaindexing_predator]:[GetHash("tropic") @vehmetaindexing_tropic]:[GetHash("seashark") @vehmetaindexing_seashark]:[GetHash("seashark2") @vehmetaindexing_seashark2]:[GetHash("submersible") @vehmetaindexing_submersible]:[GetHash("freightcar") @vehmetaindexing_freightcar]:[GetHash("freight") @vehmetaindexing_freight]:[GetHash("freightcont1") @vehmetaindexing_freightcont1]:[GetHash("freightcont2") @vehmetaindexing_freightcont2]:[GetHash("freightgrain") @vehmetaindexing_freightgrain]:[GetHash("tankercar") @vehmetaindexing_tankercar]:[GetHash("metrotrain") @vehmetaindexing_metrotrain]:[GetHash("docktrailer") @vehmetaindexing_docktrailer]:[GetHash("trailers") @vehmetaindexing_trailers]:[GetHash("trailers2") @vehmetaindexing_trailers2]:[GetHash("trailers3") @vehmetaindexing_trailers3]:[GetHash("tvtrailer") @vehmetaindexing_tvtrailer]:[GetHash("raketrailer") @vehmetaindexing_raketrailer]:[GetHash("tanker") @vehmetaindexing_tanker]:[GetHash("trailerlogs") @vehmetaindexing_trailerlogs]:[GetHash("tr2") @vehmetaindexing_tr2]:[GetHash("tr3") @vehmetaindexing_tr3]:[GetHash("tr4") @vehmetaindexing_tr4]:[GetHash("trflat") @vehmetaindexing_trflat]:[GetHash("trailersmall") @vehmetaindexing_trailersmall]:[GetHash("velum") @vehmetaindexing_velum]:[GetHash("adder") @vehmetaindexing_adder]:[GetHash("voltic") @vehmetaindexing_voltic]:[GetHash("vacca") @vehmetaindexing_vacca]:[GetHash("suntrap") @vehmetaindexing_suntrap]
//will need updateing in future
GetFrame1 0
switch [GetHash("bifta") @vehmetaindexing_bifta]:[GetHash("speeder") @vehmetaindexing_speeder]:[GetHash("kalahari") @vehmetaindexing_kalahari]:[GetHash("paradise") @vehmetaindexing_paradise]:[GetHash("btype") @vehmetaindexing_btype]:[GetHash("jester") @vehmetaindexing_jester]:[GetHash("turismor") @vehmetaindexing_turismor]:[GetHash("alpha") @vehmetaindexing_alpha]:[GetHash("vestra") @vehmetaindexing_vestra]:[GetHash("zentorno") @vehmetaindexing_zentorno]:[GetHash("massacro") @vehmetaindexing_massacro]:[GetHash("huntley") @vehmetaindexing_huntley]:[GetHash("thrust") @vehmetaindexing_thrust]:[GetHash("rhapsody") @vehmetaindexing_rhapsody]:[GetHash("warrener") @vehmetaindexing_warrener]:[GetHash("blade") @vehmetaindexing_blade]:[GetHash("glendale") @vehmetaindexing_glendale]:[GetHash("panto") @vehmetaindexing_panto]:[GetHash("dubsta3") @vehmetaindexing_dubsta3]:[GetHash("pigalle") @vehmetaindexing_pigalle]:[GetHash("monster") @vehmetaindexing_monster]:[GetHash("sovereign") @vehmetaindexing_sovereign]:[GetHash("miljet") @vehmetaindexing_miljet]:[GetHash("besra") @vehmetaindexing_besra]:[GetHash("coquette2") @vehmetaindexing_coquette2]:[GetHash("swift") @vehmetaindexing_swift]:[GetHash("innovation") @vehmetaindexing_innovation]:[GetHash("hakuchou") @vehmetaindexing_hakuchou]:[GetHash("furoregt") @vehmetaindexing_furoregt]:[GetHash("jester2") @vehmetaindexing_jester2]:[GetHash("massacro2") @vehmetaindexing_massacro2]:[GetHash("ratloader2") @vehmetaindexing_ratloader2]:[GetHash("slamvan") @vehmetaindexing_slamvan]:[GetHash("mule3") @vehmetaindexing_mule3]:[GetHash("velum2") @vehmetaindexing_velum2]:[GetHash("tanker2") @vehmetaindexing_tanker2]:[GetHash("casco") @vehmetaindexing_casco]:[GetHash("boxville4") @vehmetaindexing_boxville4]:[GetHash("hydra") @vehmetaindexing_hydra]:[GetHash("insurgent") @vehmetaindexing_insurgent]:[GetHash("insurgent2") @vehmetaindexing_insurgent2]:[GetHash("gburrito2") @vehmetaindexing_gburrito2]:[GetHash("technical") @vehmetaindexing_technical]:[GetHash("dinghy3") @vehmetaindexing_dinghy3]:[GetHash("savage") @vehmetaindexing_savage]:[GetHash("enduro") @vehmetaindexing_enduro]:[GetHash("guardian") @vehmetaindexing_guardian]:[GetHash("lectro") @vehmetaindexing_lectro]:[GetHash("kuruma") @vehmetaindexing_kuruma]:[GetHash("kuruma2") @vehmetaindexing_kuruma2]:[GetHash("trash2") @vehmetaindexing_trash2]:[GetHash("barracks3") @vehmetaindexing_barracks3]:[GetHash("valkyrie") @vehmetaindexing_valkyrie]:[GetHash("slamvan2") @vehmetaindexing_slamvan2]:[GetHash("swift2") @vehmetaindexing_swift2]:[GetHash("luxor2") @vehmetaindexing_luxor2]:[GetHash("feltzer3") @vehmetaindexing_feltzer3]:[GetHash("osiris") @vehmetaindexing_osiris]:[GetHash("virgo") @vehmetaindexing_virgo]:[GetHash("windsor") @vehmetaindexing_windsor]:[GetHash("coquette3") @vehmetaindexing_coquette3]:[GetHash("vindicator") @vehmetaindexing_vindicator]:[GetHash("t20") @vehmetaindexing_t20]:[GetHash("brawler") @vehmetaindexing_brawler]:[GetHash("toro") @vehmetaindexing_toro]:[GetHash("chino") @vehmetaindexing_chino]
Push_0
return 1 1
//> original vehicles
:vehmetaindexing_ninef
Push_1
return 1 1
:vehmetaindexing_ninef2
Push_2
return 1 1
:vehmetaindexing_blista
Push_3
return 1 1
:vehmetaindexing_asea
Push_4
return 1 1
:vehmetaindexing_asea2
Push_5
return 1 1
:vehmetaindexing_boattrailer
Push_6
return 1 1
:vehmetaindexing_bus
Push_7
return 1 1
:vehmetaindexing_armytanker
PushB 8
return 1 1
:vehmetaindexing_armytrailer
PushB 9
return 1 1
:vehmetaindexing_armytrailer2
PushB 10
return 1 1
:vehmetaindexing_freighttrailer
PushB 11
return 1 1
:vehmetaindexing_coach
PushB 12
return 1 1
:vehmetaindexing_airbus
PushB 13
return 1 1
:vehmetaindexing_asterope
PushB 14
return 1 1
:vehmetaindexing_airtug
PushB 15
return 1 1
:vehmetaindexing_ambulance
PushB 16
return 1 1
:vehmetaindexing_barracks
PushB 17
return 1 1
:vehmetaindexing_barracks2
PushB 18
return 1 1
:vehmetaindexing_baller
PushB 19
return 1 1
:vehmetaindexing_baller2
PushB 20
return 1 1
:vehmetaindexing_bjxl
PushB 21
return 1 1
:vehmetaindexing_banshee
PushB 22
return 1 1
:vehmetaindexing_benson
PushB 23
return 1 1
:vehmetaindexing_bfinjection
PushB 24
return 1 1
:vehmetaindexing_biff
PushB 25
return 1 1
:vehmetaindexing_blazer
PushB 26
return 1 1
:vehmetaindexing_blazer2
PushB 27
return 1 1
:vehmetaindexing_blazer3
PushB 28
return 1 1
:vehmetaindexing_bison
PushB 29
return 1 1
:vehmetaindexing_bison2
PushB 30
return 1 1
:vehmetaindexing_bison3
PushB 31
return 1 1
:vehmetaindexing_boxville
PushB 32
return 1 1
:vehmetaindexing_boxville2
PushB 33
return 1 1
:vehmetaindexing_boxville3
PushB 34
return 1 1
:vehmetaindexing_bobcatxl
PushB 35
return 1 1
:vehmetaindexing_bodhi2
PushB 36
return 1 1
:vehmetaindexing_buccaneer
PushB 37
return 1 1
:vehmetaindexing_buffalo
PushB 38
return 1 1
:vehmetaindexing_buffalo2
PushB 39
return 1 1
:vehmetaindexing_bulldozer
PushB 40
return 1 1
:vehmetaindexing_bullet
PushB 41
return 1 1
:vehmetaindexing_blimp
PushB 42
return 1 1
:vehmetaindexing_burrito
PushB 43
return 1 1
:vehmetaindexing_burrito2
PushB 44
return 1 1
:vehmetaindexing_burrito3
PushB 45
return 1 1
:vehmetaindexing_burrito4
PushB 46
return 1 1
:vehmetaindexing_burrito5
PushB 47
return 1 1
:vehmetaindexing_cavalcade
PushB 48
return 1 1
:vehmetaindexing_cavalcade2
PushB 49
return 1 1
:vehmetaindexing_policet
PushB 50
return 1 1
:vehmetaindexing_gburrito
PushB 51
return 1 1
:vehmetaindexing_cablecar
PushB 52
return 1 1
:vehmetaindexing_caddy
PushB 53
return 1 1
:vehmetaindexing_caddy2
PushB 54
return 1 1
:vehmetaindexing_camper
PushB 55
return 1 1
:vehmetaindexing_carbonizzare
PushB 56
return 1 1
:vehmetaindexing_cheetah
PushB 57
return 1 1
:vehmetaindexing_comet2
PushB 58
return 1 1
:vehmetaindexing_cogcabrio
PushB 59
return 1 1
:vehmetaindexing_coquette
PushB 60
return 1 1
:vehmetaindexing_cutter
PushB 61
return 1 1
:vehmetaindexing_gresley
PushB 62
return 1 1
:vehmetaindexing_dilettante
PushB 63
return 1 1
:vehmetaindexing_dilettante2
PushB 64
return 1 1
:vehmetaindexing_dune
PushB 65
return 1 1
:vehmetaindexing_dune2
PushB 66
return 1 1
:vehmetaindexing_hotknife
PushB 67
return 1 1
:vehmetaindexing_dloader
PushB 68
return 1 1
:vehmetaindexing_dubsta
PushB 69
return 1 1
:vehmetaindexing_dubsta2
PushB 70
return 1 1
:vehmetaindexing_dump
PushB 71
return 1 1
:vehmetaindexing_rubble
PushB 72
return 1 1
:vehmetaindexing_docktug
PushB 73
return 1 1
:vehmetaindexing_dominator
PushB 74
return 1 1
:vehmetaindexing_emperor
PushB 75
return 1 1
:vehmetaindexing_emperor2
PushB 76
return 1 1
:vehmetaindexing_emperor3
PushB 77
return 1 1
:vehmetaindexing_entityxf
PushB 78
return 1 1
:vehmetaindexing_exemplar
PushB 79
return 1 1
:vehmetaindexing_elegy2
PushB 80
return 1 1
:vehmetaindexing_f620
PushB 81
return 1 1
:vehmetaindexing_fbi
PushB 82
return 1 1
:vehmetaindexing_fbi2
PushB 83
return 1 1
:vehmetaindexing_felon
PushB 84
return 1 1
:vehmetaindexing_felon2
PushB 85
return 1 1
:vehmetaindexing_feltzer2
PushB 86
return 1 1
:vehmetaindexing_firetruk
PushB 87
return 1 1
:vehmetaindexing_flatbed
PushB 88
return 1 1
:vehmetaindexing_forklift
PushB 89
return 1 1
:vehmetaindexing_fq2
PushB 90
return 1 1
:vehmetaindexing_fusilade
PushB 91
return 1 1
:vehmetaindexing_fugitive
PushB 92
return 1 1
:vehmetaindexing_futo
PushB 93
return 1 1
:vehmetaindexing_granger
PushB 94
return 1 1
:vehmetaindexing_gauntlet
PushB 95
return 1 1
:vehmetaindexing_habanero
PushB 96
return 1 1
:vehmetaindexing_hauler
PushB 97
return 1 1
:vehmetaindexing_handler
PushB 98
return 1 1
:vehmetaindexing_infernus
PushB 99
return 1 1
:vehmetaindexing_ingot
PushB 100
return 1 1
:vehmetaindexing_intruder
PushB 101
return 1 1
:vehmetaindexing_issi2
PushB 102
return 1 1
:vehmetaindexing_Jackal
PushB 103
return 1 1
:vehmetaindexing_journey
PushB 104
return 1 1
:vehmetaindexing_jb700
PushB 105
return 1 1
:vehmetaindexing_khamelion
PushB 106
return 1 1
:vehmetaindexing_landstalker
PushB 107
return 1 1
:vehmetaindexing_lguard
PushB 108
return 1 1
:vehmetaindexing_manana
PushB 109
return 1 1
:vehmetaindexing_mesa
PushB 110
return 1 1
:vehmetaindexing_mesa2
PushB 111
return 1 1
:vehmetaindexing_mesa3
PushB 112
return 1 1
:vehmetaindexing_crusader
PushB 113
return 1 1
:vehmetaindexing_minivan
PushB 114
return 1 1
:vehmetaindexing_mixer
PushB 115
return 1 1
:vehmetaindexing_mixer2
PushB 116
return 1 1
:vehmetaindexing_monroe
PushB 117
return 1 1
:vehmetaindexing_mower
PushB 118
return 1 1
:vehmetaindexing_mule
PushB 119
return 1 1
:vehmetaindexing_mule2
PushB 120
return 1 1
:vehmetaindexing_oracle
PushB 121
return 1 1
:vehmetaindexing_oracle2
PushB 122
return 1 1
:vehmetaindexing_packer
PushB 123
return 1 1
:vehmetaindexing_patriot
PushB 124
return 1 1
:vehmetaindexing_pbus
PushB 125
return 1 1
:vehmetaindexing_penumbra
PushB 126
return 1 1
:vehmetaindexing_peyote
PushB 127
return 1 1
:vehmetaindexing_phantom
PushB 128
return 1 1
:vehmetaindexing_phoenix
PushB 129
return 1 1
:vehmetaindexing_picador
PushB 130
return 1 1
:vehmetaindexing_pounder
PushB 131
return 1 1
:vehmetaindexing_police
PushB 132
return 1 1
:vehmetaindexing_police4
PushB 133
return 1 1
:vehmetaindexing_police2
PushB 134
return 1 1
:vehmetaindexing_police3
PushB 135
return 1 1
:vehmetaindexing_policeold1
PushB 136
return 1 1
:vehmetaindexing_policeold2
PushB 137
return 1 1
:vehmetaindexing_pony
PushB 138
return 1 1
:vehmetaindexing_pony2
PushB 139
return 1 1
:vehmetaindexing_prairie
PushB 140
return 1 1
:vehmetaindexing_pranger
PushB 141
return 1 1
:vehmetaindexing_premier
PushB 142
return 1 1
:vehmetaindexing_primo
PushB 143
return 1 1
:vehmetaindexing_proptrailer
PushB 144
return 1 1
:vehmetaindexing_rancherxl
PushB 145
return 1 1
:vehmetaindexing_rancherxl2
PushB 146
return 1 1
:vehmetaindexing_rapidgt
PushB 147
return 1 1
:vehmetaindexing_rapidgt2
PushB 148
return 1 1
:vehmetaindexing_radi
PushB 149
return 1 1
:vehmetaindexing_ratloader
PushB 150
return 1 1
:vehmetaindexing_rebel
PushB 151
return 1 1
:vehmetaindexing_regina
PushB 152
return 1 1
:vehmetaindexing_rebel2
PushB 153
return 1 1
:vehmetaindexing_rentalbus
PushB 154
return 1 1
:vehmetaindexing_ruiner
PushB 155
return 1 1
:vehmetaindexing_rumpo
PushB 156
return 1 1
:vehmetaindexing_rumpo2
PushB 157
return 1 1
:vehmetaindexing_rhino
PushB 158
return 1 1
:vehmetaindexing_riot
PushB 159
return 1 1
:vehmetaindexing_ripley
PushB 160
return 1 1
:vehmetaindexing_rocoto
PushB 161
return 1 1
:vehmetaindexing_romero
PushB 162
return 1 1
:vehmetaindexing_sabregt
PushB 163
return 1 1
:vehmetaindexing_sadler
PushB 164
return 1 1
:vehmetaindexing_sadler2
PushB 165
return 1 1
:vehmetaindexing_sandking
PushB 166
return 1 1
:vehmetaindexing_sandking2
PushB 167
return 1 1
:vehmetaindexing_schafter2
PushB 168
return 1 1
:vehmetaindexing_schwarzer
PushB 169
return 1 1
:vehmetaindexing_scrap
PushB 170
return 1 1
:vehmetaindexing_seminole
PushB 171
return 1 1
:vehmetaindexing_sentinel
PushB 172
return 1 1
:vehmetaindexing_sentinel2
PushB 173
return 1 1
:vehmetaindexing_zion
PushB 174
return 1 1
:vehmetaindexing_zion2
PushB 175
return 1 1
:vehmetaindexing_serrano
PushB 176
return 1 1
:vehmetaindexing_sheriff
PushB 177
return 1 1
:vehmetaindexing_sheriff2
PushB 178
return 1 1
:vehmetaindexing_speedo
PushB 179
return 1 1
:vehmetaindexing_speedo2
PushB 180
return 1 1
:vehmetaindexing_stanier
PushB 181
return 1 1
:vehmetaindexing_stinger
PushB 182
return 1 1
:vehmetaindexing_stingergt
PushB 183
return 1 1
:vehmetaindexing_stockade
PushB 184
return 1 1
:vehmetaindexing_stockade3
PushB 185
return 1 1
:vehmetaindexing_stratum
PushB 186
return 1 1
:vehmetaindexing_sultan
PushB 187
return 1 1
:vehmetaindexing_superd
PushB 188
return 1 1
:vehmetaindexing_surano
PushB 189
return 1 1
:vehmetaindexing_surfer
PushB 190
return 1 1
:vehmetaindexing_surfer2
PushB 191
return 1 1
:vehmetaindexing_surge
PushB 192
return 1 1
:vehmetaindexing_taco
PushB 193
return 1 1
:vehmetaindexing_tailgater
PushB 194
return 1 1
:vehmetaindexing_taxi
PushB 195
return 1 1
:vehmetaindexing_trash
PushB 196
return 1 1
:vehmetaindexing_tractor
PushB 197
return 1 1
:vehmetaindexing_tractor2
PushB 198
return 1 1
:vehmetaindexing_tractor3
PushB 199
return 1 1
:vehmetaindexing_graintrailer
PushB 200
return 1 1
:vehmetaindexing_baletrailer
PushB 201
return 1 1
:vehmetaindexing_tiptruck
PushB 202
return 1 1
:vehmetaindexing_tiptruck2
PushB 203
return 1 1
:vehmetaindexing_tornado
PushB 204
return 1 1
:vehmetaindexing_tornado2
PushB 205
return 1 1
:vehmetaindexing_tornado3
PushB 206
return 1 1
:vehmetaindexing_tornado4
PushB 207
return 1 1
:vehmetaindexing_tourbus
PushB 208
return 1 1
:vehmetaindexing_towtruck
PushB 209
return 1 1
:vehmetaindexing_towtruck2
PushB 210
return 1 1
:vehmetaindexing_utillitruck
PushB 211
return 1 1
:vehmetaindexing_utillitruck2
PushB 212
return 1 1
:vehmetaindexing_utillitruck3
PushB 213
return 1 1
:vehmetaindexing_voodoo2
PushB 214
return 1 1
:vehmetaindexing_washington
PushB 215
return 1 1
:vehmetaindexing_stretch
PushB 216
return 1 1
:vehmetaindexing_youga
PushB 217
return 1 1
:vehmetaindexing_ztype
PushB 218
return 1 1
:vehmetaindexing_sanchez
PushB 219
return 1 1
:vehmetaindexing_sanchez2
PushB 220
return 1 1
:vehmetaindexing_scorcher
PushB 221
return 1 1
:vehmetaindexing_tribike
PushB 222
return 1 1
:vehmetaindexing_tribike2
PushB 223
return 1 1
:vehmetaindexing_tribike3
PushB 224
return 1 1
:vehmetaindexing_fixter
PushB 225
return 1 1
:vehmetaindexing_cruiser
PushB 226
return 1 1
:vehmetaindexing_BMX
PushB 227
return 1 1
:vehmetaindexing_policeb
PushB 228
return 1 1
:vehmetaindexing_akuma
PushB 229
return 1 1
:vehmetaindexing_carbonrs
PushB 230
return 1 1
:vehmetaindexing_bagger
PushB 231
return 1 1
:vehmetaindexing_bati
PushB 232
return 1 1
:vehmetaindexing_bati2
PushB 233
return 1 1
:vehmetaindexing_ruffian
PushB 234
return 1 1
:vehmetaindexing_daemon
PushB 235
return 1 1
:vehmetaindexing_double
PushB 236
return 1 1
:vehmetaindexing_pcj
PushB 237
return 1 1
:vehmetaindexing_vader
PushB 238
return 1 1
:vehmetaindexing_vigero
PushB 239
return 1 1
:vehmetaindexing_faggio2
PushB 240
return 1 1
:vehmetaindexing_hexer
PushB 241
return 1 1
:vehmetaindexing_annihilator
PushB 242
return 1 1
:vehmetaindexing_buzzard
PushB 243
return 1 1
:vehmetaindexing_buzzard2
PushB 244
return 1 1
:vehmetaindexing_cargobob
PushB 245
return 1 1
:vehmetaindexing_cargobob2
PushB 246
return 1 1
:vehmetaindexing_cargobob3
PushB 247
return 1 1
:vehmetaindexing_skylift
PushB 248
return 1 1
:vehmetaindexing_polmav
PushB 249
return 1 1
:vehmetaindexing_maverick
PushB 250
return 1 1
:vehmetaindexing_nemesis
PushB 251
return 1 1
:vehmetaindexing_frogger
PushB 252
return 1 1
:vehmetaindexing_frogger2
PushB 253
return 1 1
:vehmetaindexing_cuban800
PushB 254
return 1 1
:vehmetaindexing_duster
PushB 255
return 1 1
:vehmetaindexing_stunt
pushs 256
return 1 1
:vehmetaindexing_mammatus
pushs 257
return 1 1
:vehmetaindexing_jet
pushs 258
return 1 1
:vehmetaindexing_shamal
pushs 259
return 1 1
:vehmetaindexing_luxor
pushs 260
return 1 1
:vehmetaindexing_titan
pushs 261
return 1 1
:vehmetaindexing_lazer
pushs 262
return 1 1
:vehmetaindexing_cargoplane
pushs 263
return 1 1
:vehmetaindexing_squalo
pushs 264
return 1 1
:vehmetaindexing_marquis
pushs 265
return 1 1
:vehmetaindexing_dinghy
pushs 266
return 1 1
:vehmetaindexing_dinghy2
pushs 267
return 1 1
:vehmetaindexing_jetmax
pushs 268
return 1 1
:vehmetaindexing_predator
pushs 269
return 1 1
:vehmetaindexing_tropic
pushs 270
return 1 1
:vehmetaindexing_seashark
pushs 271
return 1 1
:vehmetaindexing_seashark2
pushs 272
return 1 1
:vehmetaindexing_submersible
pushs 273
return 1 1
:vehmetaindexing_freightcar
pushs 274
return 1 1
:vehmetaindexing_freight
pushs 275
return 1 1
:vehmetaindexing_freightcont1
pushs 276
return 1 1
:vehmetaindexing_freightcont2
pushs 277
return 1 1
:vehmetaindexing_freightgrain
pushs 278
return 1 1
:vehmetaindexing_tankercar
pushs 279
return 1 1
:vehmetaindexing_metrotrain
pushs 280
return 1 1
:vehmetaindexing_docktrailer
pushs 281
return 1 1
:vehmetaindexing_trailers
pushs 282
return 1 1
:vehmetaindexing_trailers2
pushs 283
return 1 1
:vehmetaindexing_trailers3
pushs 284
return 1 1
:vehmetaindexing_tvtrailer
pushs 285
return 1 1
:vehmetaindexing_raketrailer
pushs 286
return 1 1
:vehmetaindexing_tanker
pushs 287
return 1 1
:vehmetaindexing_trailerlogs
pushs 288
return 1 1
:vehmetaindexing_tr2
pushs 289
return 1 1
:vehmetaindexing_tr3
pushs 290
return 1 1
:vehmetaindexing_tr4
pushs 291
return 1 1
:vehmetaindexing_trflat
pushs 292
return 1 1
:vehmetaindexing_trailersmall
pushs 293
return 1 1
:vehmetaindexing_velum
pushs 294
return 1 1
:vehmetaindexing_adder
pushs 295
return 1 1
:vehmetaindexing_voltic
pushs 296
return 1 1
:vehmetaindexing_vacca
pushs 297
return 1 1
:vehmetaindexing_suntrap
pushs 298
return 1 1
//<
//> dlc vehicles
:vehmetaindexing_bifta
Push_1
return 1 1
:vehmetaindexing_speeder
Push_2
return 1 1
:vehmetaindexing_kalahari
Push_3
return 1 1
:vehmetaindexing_paradise
Push_4
return 1 1
:vehmetaindexing_btype
Push_5
return 1 1
:vehmetaindexing_jester
Push_6
return 1 1
:vehmetaindexing_turismor
Push_7
return 1 1
:vehmetaindexing_alpha
PushB 8
return 1 1
:vehmetaindexing_vestra
PushB 9
return 1 1
:vehmetaindexing_zentorno
PushB 10
return 1 1
:vehmetaindexing_massacro
PushB 11
return 1 1
:vehmetaindexing_huntley
PushB 12
return 1 1
:vehmetaindexing_thrust
PushB 13
return 1 1
:vehmetaindexing_rhapsody
PushB 14
return 1 1
:vehmetaindexing_warrener
PushB 15
return 1 1
:vehmetaindexing_blade
PushB 16
return 1 1
:vehmetaindexing_glendale
PushB 17
return 1 1
:vehmetaindexing_panto
PushB 18
return 1 1
:vehmetaindexing_dubsta3
PushB 19
return 1 1
:vehmetaindexing_pigalle
PushB 20
return 1 1
:vehmetaindexing_monster
PushB 21
return 1 1
:vehmetaindexing_sovereign
PushB 22
return 1 1
:vehmetaindexing_miljet
PushB 23
return 1 1
:vehmetaindexing_besra
PushB 24
return 1 1
:vehmetaindexing_coquette2
PushB 25
return 1 1
:vehmetaindexing_swift
PushB 26
return 1 1
:vehmetaindexing_innovation
PushB 27
return 1 1
:vehmetaindexing_hakuchou
PushB 28
return 1 1
:vehmetaindexing_furoregt
PushB 29
return 1 1
:vehmetaindexing_jester2
PushB 30
return 1 1
:vehmetaindexing_massacro2
PushB 31
return 1 1
:vehmetaindexing_ratloader2
PushB 32
return 1 1
:vehmetaindexing_slamvan
PushB 33
return 1 1
:vehmetaindexing_mule3
PushB 34
return 1 1
:vehmetaindexing_velum2
PushB 35
return 1 1
:vehmetaindexing_tanker2
PushB 36
return 1 1
:vehmetaindexing_casco
PushB 37
return 1 1
:vehmetaindexing_boxville4
PushB 38
return 1 1
:vehmetaindexing_hydra
PushB 39
return 1 1
:vehmetaindexing_insurgent
PushB 40
return 1 1
:vehmetaindexing_insurgent2
PushB 41
return 1 1
:vehmetaindexing_gburrito2
PushB 42
return 1 1
:vehmetaindexing_technical
PushB 43
return 1 1
:vehmetaindexing_dinghy3
PushB 44
return 1 1
:vehmetaindexing_savage
PushB 45
return 1 1
:vehmetaindexing_enduro
PushB 46
return 1 1
:vehmetaindexing_guardian
PushB 47
return 1 1
:vehmetaindexing_lectro
PushB 48
return 1 1
:vehmetaindexing_kuruma
PushB 49
return 1 1
:vehmetaindexing_kuruma2
PushB 50
return 1 1
:vehmetaindexing_trash2
PushB 51
return 1 1
:vehmetaindexing_barracks3
PushB 52
return 1 1
:vehmetaindexing_valkyrie
PushB 53
return 1 1
:vehmetaindexing_slamvan2
PushB 54
return 1 1
:vehmetaindexing_swift2
pushb 55
return 1 1
:vehmetaindexing_luxor2
pushb 56
return 1 1
:vehmetaindexing_feltzer3
pushb 57
return 1 1
:vehmetaindexing_osiris
pushb 58
return 1 1
:vehmetaindexing_virgo
pushb 59
return 1 1
:vehmetaindexing_windsor
pushb 60
return 1 1
:vehmetaindexing_coquette3
pushb 61
return 1 1
:vehmetaindexing_vindicator
pushb 62
return 1 1
:vehmetaindexing_t20
pushb 63
return 1 1
:vehmetaindexing_brawler
pushb 64
return 1 1
:vehmetaindexing_toro
pushb 65
return 1 1
:vehmetaindexing_chino
pushb 66
return 1 1
//<
//<
//> MetaDlcVehiclesAddressSearch
:MetaDlcVehiclesAddressSearch
Function 0 7
//might need updateing in future
SetFrameName 2 Addr
SetFrameName 3 Length
SetFrameName 4 NewAddr
SetFrameName 5 i
SetFrameName 6 MetaDlcVehiclesEndAddress
GetStatic1 MetaDlcVehiclesAddress
jumpfalse @StaticDlcMetaInvalid
GetStatic1 MetaDlcVehiclesAddress
add2 352
pget
push 0x42494654//BIFT
jumpne @StaticDlcMetaInvalid
GetStatic1 MetaDlcVehiclesAddress
return 0 1
:StaticDlcMetaInvalid
push 0x839E6BCC//meta main start address xex pointer value (usually C8000010) untested if false positive
pget
SetFrame1 Addr
getFrame1 Addr
add1 4
pget
setframe1 Length
:DlcMetaSearchLoop
Getframe1 Length
Pushi24 146000
JumpNe @DlcMetaSearchLoop_LengthNeContinue
GetFrame1 Addr
add1 16//header
pushs 29820//address of bifta (dlc vehicle 1) relative to meta address
add
dup
SetFrame1 MetaDlcVehiclesEndAddress
add2 352
pget
push 0x42494654//BIFT
jumpne @DlcMetaSearchLoop_LengthNeContinue
GetFrame1 MetaDlcVehiclesEndAddress
dup
SetStatic1 MetaDlcVehiclesAddress
return 0 1
:DlcMetaSearchLoop_LengthNeContinue
Getframe1 i
pushs 10000
jumpgt @EndDlcMetaSearchLoop
getframe1 Addr
add1 16//header
getframe1 Length
add
Setframe1 NewAddr
GetFrame1 NewAddr
Add1 8//return pointer
pget
Getframe1 Addr
JumpNE @EndDlcMetaSearchLoop
Getframe1 NewAddr
SetFrame1 Addr
GetFrame1 Addr
Add1 4
pget
Setframe1 Length
GetFrame1 i
add1 1
SetFrame1 i
jump @DlcMetaSearchLoop
:EndDlcMetaSearchLoop
pushstring "~r~Error:~s~ Could not find dlc vehicles.meta start address."
pushs 5000
call @print(string text,int ms)
Push_0
dup
SetStatic1 MetaDlcVehiclesAddress
return 0 1
//<
//> is_vehicle_model_dlc_model
:is_vehicle_model_dlc_model(hash)
Function 1 4
Push_0
SetFrame1 3
:is_vehicle_model_dlc_modelloop
GetFrame1 3
CallNative get_num_dlc_vehicles 0 1
JumpGE @enddlcvehicleloop
GetFrame1 3
CallNative get_dlc_vehicle_model 1 1
GetFrame1 0
jumpeq @exevehicletypechangerisdlcveh
GetFrame1 3
Add1 1
SetFrame1 3
Jump @is_vehicle_model_dlc_modelloop
:exevehicletypechangerisdlcveh
Push_1
return 1 1
:enddlcvehicleloop
Push_0
return 1 1
//<
//> is_this_model_a_bike_from_model
:is_this_model_a_bike_from_model(hash)
Function 1 3
//will need updateing in future
GetFrame1 0
switch [GetHash("sanchez") @is_this_model_a_bike_from_model_true]:[GetHash("sanchez2") @is_this_model_a_bike_from_model_true]:[GetHash("policeb") @is_this_model_a_bike_from_model_true]:[GetHash("akuma") @is_this_model_a_bike_from_model_true]:[GetHash("carbonrs") @is_this_model_a_bike_from_model_true]:[GetHash("bagger") @is_this_model_a_bike_from_model_true]:[GetHash("bati") @is_this_model_a_bike_from_model_true]:[GetHash("bati2") @is_this_model_a_bike_from_model_true]:[GetHash("ruffian") @is_this_model_a_bike_from_model_true]:[GetHash("daemon") @is_this_model_a_bike_from_model_true]:[GetHash("double") @is_this_model_a_bike_from_model_true]:[GetHash("pcj") @is_this_model_a_bike_from_model_true]:[GetHash("vader") @is_this_model_a_bike_from_model_true]:[GetHash("faggio2") @is_this_model_a_bike_from_model_true]:[GetHash("hexer") @is_this_model_a_bike_from_model_true]:[GetHash("nemesis") @is_this_model_a_bike_from_model_true]:[GetHash("innovation") @is_this_model_a_bike_from_model_true]:[GetHash("hakuchou") @is_this_model_a_bike_from_model_true]:[GetHash("sovereign") @is_this_model_a_bike_from_model_true]:[GetHash("enduro") @is_this_model_a_bike_from_model_true]:[GetHash("lectro") @is_this_model_a_bike_from_model_true]
Push_0
return 1 1
:is_this_model_a_bike_from_model_true
Push_1
return 1 1
//<
//> is_this_model_a_bicycle_from_model
:is_this_model_a_bicycle_from_model(hash)
Function 1 3
//will need updateing in future
GetFrame1 0
switch [GetHash("scorcher") @is_this_model_a_bike_from_model_true]:[GetHash("tribike") @is_this_model_a_bike_from_model_true]:[GetHash("tribike2") @is_this_model_a_bike_from_model_true]:[GetHash("tribike3") @is_this_model_a_bike_from_model_true]:[GetHash("fixter") @is_this_model_a_bike_from_model_true]:[GetHash("cruiser") @is_this_model_a_bike_from_model_true]:[GetHash("BMX") @is_this_model_a_bike_from_model_true]
Push_0
return 1 1
//<
//> create group
:is_my_group_valid_if_not_create_one
Function 0 3
callnative player_id 0 1
callnative get_player_group 1 1
dup
SetFrame1 2
callnative does_group_exist 1 1
not
jumpfalse @skpcgroup
Push_0
CallNative create_group 1 1
SetFrame1 2
CallNative player_ped_id 0 1
GetFrame1 2
CallNative set_ped_as_group_leader 2 0
GetFrame1 2
Push_2
CallNative set_group_formation 2 0
GetFrame1 2
PushF_1
PushF 0.9
PushF_3
callnative set_group_formation_spacing 4 0
pushstring "group created"
pushs 5000
call @print(string text,int ms)
:skpcgroup
return 0 0
//<
//> spawn bodyguard no wait
:spawn_bodyguard_no_wait(pedhash,primaryweaponhash,secondaryweaponhash,jumptype)
Function 4 7
GetFrame1 0
CallNative has_model_loaded 1 1
jumpfalse @request_spawn_bodyguard
Push_3
GetFrameP1 0
tostack
call @spawn_bodyguard(pedhash,primaryweaponhash,secondaryweaponhash)
SetStatic1 26//saved hash and entity for model loading
jump @spawn_bodyguard_no_wait
:request_spawn_bodyguard
call @is_menu_loading
not
jumpfalse @spawn_bodyguard_no_wait
GetFrame1 0
SetStatic1 26//saved hash and entity for model loading
Push_0
SetStatic1 9//load loop inc
Push_2
GetFrameP1 1
tostack
Push_2
GetStaticP1 35//load loop extra parrams
fromstack
GetFrame1 3//jumptype
SetStatic1 28//saved jumptype for model loading
Push_6//bodyguards
SetStatic1 27//type for model loading
:spawn_bodyguard_no_wait
return 4 0
//<
//> spawn bodyguard
:spawn_bodyguard(pedhash,primaryweaponhash,secondaryweaponhash)
Function 3 5
call @is_my_group_valid_if_not_create_one
GetFrame1 0
call @spawn_ped(int modelhash)
SetFrame1 6
GetFrame1 6
CallNative player_ped_id 0 1
PushF 1.0
call @get_coord_in_front(int entity,float range)
Push_0
Push_0
Push_0
Push_1
CallNative set_entity_coords 8 0
GetFrame1 6
callnative player_ped_id 0 1
callnative get_ped_group_index 1 1
CallNative set_ped_as_group_member 2 0
GetFrame1 6
Push_1
callnative set_ped_never_leaves_group 2 0
GetFrame1 6
callnative player_ped_id 0 1
callnative get_ped_group_index 1 1
Push_1
callnative unk_0xD0D8BDBC 3 0
GetFrame1 6
Push_1
Push_1
callnative set_entity_as_mission_entity 3 0
GetFrame1 6
Push_1
callnative set_entity_invincible 2 0
GetFrame1 6
push GetHash("PLAYER")
callnative set_ped_relationship_group_hash 2 0
//> ped config
GetFrame1 6
Push_0
callnative set_blocking_of_non_temporary_events 2 0
GetFrame1 6
Push_0
callnative set_ped_can_play_ambient_anims 2 0
GetFrame1 6
Push_0
callnative set_ped_can_play_ambient_base_anims 2 0
//> weapons
GetFrame1 2
CallNative is_weapon_valid 1 1
GetFrame1 1
CallNative is_weapon_valid 1 1
and
jumpfalse @skipbodyguardgiveweap
GetFrame1 2
CallNative is_weapon_valid 1 1
jumpfalse @skipbodyguardsecondary
GetFrame1 6
GetFrame1 2
Push_1
Push_1
Push_1
callnative give_weapon_to_ped 5 0
GetFrame1 6
Push_1
GetFrame1 2
CallNative set_ped_infinite_ammo 3 0
:skipbodyguardsecondary
GetFrame1 1
CallNative is_weapon_valid 1 1
jumpfalse @skipbodyguardprimary
GetFrame1 6
GetFrame1 1
Push_1
Push_1
Push_1
callnative give_weapon_to_ped 5 0
GetFrame1 6
Push_1
GetFrame1 1
CallNative set_ped_infinite_ammo 3 0
:skipbodyguardprimary
GetFrame1 6
Push_1
CallNative set_ped_infinite_ammo_clip 2 0
:skipbodyguardgiveweap
//<
GetFrame1 6
Push_5
Push_1
callnative set_ped_combat_attributes 3 0
GetFrame1 6
Push_0
Push_0
callnative set_ped_combat_attributes 3 0
GetFrame1 6
Push_0
Push_1
callnative set_ped_combat_attributes 3 0
GetFrame1 6
Push_2
Push_1
callnative set_ped_combat_attributes 3 0
GetFrame1 6
PushB 46
Push_1
callnative set_ped_combat_attributes 3 0
GetFrame1 6
PushF 100
callnative set_ped_hearing_range 2 0
GetFrame1 6
PushF 100
callnative set_ped_seeing_range 2 0
GetFrame1 6
pushs 512
Push_1
callnative set_ped_flee_attributes 3 0
GetFrame1 6
Push_0
callnative set_ped_suffers_critical_hits 2 0
GetFrame1 6
PushB 200
callnative set_entity_lod_dist 2 0
GetFrame1 6
Push_0
Push_0
callnative set_entity_is_target_priority 3 0
GetFrame1 6
Push_0
callnative unk_0x7DA12905 2 0
GetFrame1 6
Push_0
callnative set_ped_can_be_targetted 2 0
GetFrame1 6
Push_0
Push_0
callnative set_entity_is_target_priority 3 0
GetFrame1 6
Push_1
callnative set_ped_can_peek_in_cover 2 0
GetFrame1 6
Push_0
callnative set_ped_can_cower_in_cover 2 0
GetFrame1 6
Push_1
callnative set_ped_path_can_use_ladders 2 0
GetFrame1 6
Push_1
callnative set_ped_path_can_use_climbovers 2 0
GetFrame1 6
pushs 1000
callnative set_ped_shoot_rate 2 0
GetFrame1 6
push GetHash("FIRING_PATTERN_FULL_AUTO")
callnative set_ped_firing_pattern 2 0
GetFrame1 6
PushB 100
callnative set_ped_accuracy 2 0
GetFrame1 6
Push_1
callnative set_ped_can_be_knocked_off_vehicle 2 0
GetFrame1 6
pushb 32//PED_FLAG_CAN_FLY_THRU_WINDSCREEN
push_0
callnative set_ped_config_flag 3 0
GetFrame1 6
Push_1
CallNative set_ped_path_may_enter_water 2 0
GetFrame1 6
Push_0
CallNative set_ped_path_avoid_fire 2 0
GetFrame1 6
callnative player_ped_id 0 1
PushF_0
PushF_0
PushF_0
PushF 10
Push_0
callnative set_ped_defensive_sphere_attached_to_ped 7 0
push GetHash("MP_F_Freemode_01")
GetFrame1 0
cmpeq
push GetHash("MP_M_Freemode_01")
GetFrame1 0
cmpeq
or
GetFrame1 0
push GetHash("player_zero")
cmpeq
GetFrame1 0
push GetHash("player_one")
cmpeq
or
or
GetFrame1 0
push GetHash("player_two")
cmpeq
or
not
jumpfalse @bguardnocomp
GetFrame1 6
CallNative set_ped_random_props 1 0
GetFrame1 6
Push_0
CallNative set_ped_random_component_variation 2 0
//<
:bguardnocomp
GetFrame1 6
return 3 1
//<
//> exe_favorites
:exe_favorites
Function 0 2
GetStatic1 5//cursor index
Switch [1 @exe_favorites_animals]:[2 @exe_favorites_item2]:[3 @exe_favorites_item3]:[4 @exe_favorites_item4]:[5 @exe_favorites_item5]:[6 @exe_favorites_item6]:[7 @exe_favorites_item7]:[8 @exe_favorites_item8]:[9 @exe_favorites_item9]:[10 @exe_favorites_item10]:[11 @exe_favorites_item11]:[12 @exe_favorites_item12]:[13 @exe_favorites_item13]:[14 @exe_favorites_item14]:[15 @exe_favorites_item15]:[16 @exe_favorites_item16]:[17 @exe_favorites_item17]:[18 @exe_favorites_item18]:[19 @exe_favorites_item19]:[20 @exe_favorites_item20]:[21 @exe_favorites_item21]:[22 @exe_favorites_item22]:[23 @exe_favorites_item23]:[24 @exe_favorites_item24]:[25 @exe_favorites_item25]:[26 @exe_favorites_item26]:[27 @exe_favorites_item27]:[28 @exe_favorites_item28]:[29 @exe_favorites_item29]:[30 @exe_favorites_item30]:[31 @exe_favorites_item31]:[32 @exe_favorites_item32]:[33 @exe_favorites_item33]:[34 @exe_favorites_item34]:[35 @exe_favorites_item35]:[36 @exe_favorites_item36]:[37 @exe_favorites_item37]
Push_0
return 0 1
:exe_favorites_animals
call @advance_menu_level
Push_0
return 0 1
:exe_favorites_item2
push GetHash("A_F_Y_Topless_01")
return 0 1
:exe_favorites_item3
push GetHash("IG_Orleans")//yeti
return 0 1
:exe_favorites_item4
push GetHash("U_M_M_Jesus_01")
return 0 1
:exe_favorites_item5
push GetHash("U_M_Y_Zombie_01")
return 0 1
:exe_favorites_item6
push GetHash("U_M_Y_RSRanger_01")//Space Ranger
return 0 1
:exe_favorites_item7
push GetHash("A_M_O_ACult_01")//naked guy
return 0 1
:exe_favorites_item8
push GetHash("S_M_M_MovSpace_01")//Astronaut
return 0 1
:exe_favorites_item9
push GetHash("S_M_M_MovAlien_01")
return 0 1
:exe_favorites_item10
push GetHash("MP_G_M_Pros_01")
return 0 1
:exe_favorites_item11
push GetHash("S_M_Y_Swat_01")
return 0 1
:exe_favorites_item12
push GetHash("u_m_y_staggrm_01")
return 0 1
:exe_favorites_item13
push GetHash("S_M_M_StrPerf_01")
return 0 1
:exe_favorites_item14
push GetHash("S_M_Y_Mime")
return 0 1
:exe_favorites_item15
push GetHash("U_M_Y_BabyD")
return 0 1
:exe_favorites_item16
push GetHash("U_M_Y_ImpoRage")
return 0 1
:exe_favorites_item17
push GetHash("U_M_Y_Pogo_01")
return 0 1
:exe_favorites_item18
push GetHash("CSB_PornDudes")
return 0 1
:exe_favorites_item19
push GetHash("S_M_Y_Clown_01")
return 0 1
:exe_favorites_item20
push GetHash("A_F_M_FatCult_01")
return 0 1
:exe_favorites_item21
push GetHash("U_M_M_Griff_01")
return 0 1
:exe_favorites_item22
push GetHash("U_M_Y_Mani")
return 0 1
:exe_favorites_item23
push GetHash("S_M_M_MovPrem_01")
return 0 1
:exe_favorites_item24
push GetHash("U_M_Y_Justin")
return 0 1
:exe_favorites_item25
push GetHash("U_F_Y_PoppyMich")
return 0 1
:exe_favorites_item26
push GetHash("U_M_Y_SBike")
return 0 1
:exe_favorites_item27
push GetHash("A_M_Y_MotoX_01")
return 0 1
:exe_favorites_item28
push GetHash("IG_Wade")
return 0 1
:exe_favorites_item29
push GetHash("IG_Wade")
return 0 1
:exe_favorites_item30
push GetHash("S_M_Y_Marine_02")
return 0 1
:exe_favorites_item31
push GetHash("MP_M_Niko_01")
Jump @make_inv_model_vis
:exe_favorites_item32
push GetHash("MP_M_Claude_01")
Jump @make_inv_model_vis
:exe_favorites_item33
push GetHash("MP_F_Misty_01")
Jump @make_inv_model_vis
:exe_favorites_item34
push GetHash("MP_M_Marston_01")
Jump @make_inv_model_vis
:exe_favorites_item35
push GetHash("A_M_Y_BreakDance_01")
return 0 1
:exe_favorites_item36
push GetHash("S_M_Y_BlackOps_01")
return 0 1
:exe_favorites_item37
push GetHash("CSB_Ramp_hipster")
return 0 1
:make_inv_model_vis
pushstring "You must change the texture variation to invisable and back for online players to see this model."
pushs 8000
call @print(string text,int ms)
return 0 1
//<
//> exe_animals_favorites
:exe_animals_favorites
Function 0 2
GetStatic1 5//cursor index
Switch [1 @exe_animals_favorites_item1]:[2 @exe_animals_favorites_item2]:[3 @exe_animals_favorites_item3]:[4 @exe_animals_favorites_item4]:[5 @exe_animals_favorites_item5]:[6 @exe_animals_favorites_item6]:[7 @exe_animals_favorites_item7]:[8 @exe_animals_favorites_item8]:[9 @exe_animals_favorites_item9]:[10 @exe_animals_favorites_item10]:[11 @exe_animals_favorites_item11]
Push_0
return 0 1
:exe_animals_favorites_item1
push GetHash("A_C_Chimp")
return 0 1
:exe_animals_favorites_item2
push GetHash("A_C_Rhesus")
return 0 1
:exe_animals_favorites_item3
push GetHash("A_C_Boar")
return 0 1
:exe_animals_favorites_item4
push GetHash("A_C_MtLion")
return 0 1
:exe_animals_favorites_item5
push GetHash("A_C_Pig")
return 0 1
:exe_animals_favorites_item6
push GetHash("A_C_Coyote")
return 0 1
:exe_animals_favorites_item7
push GetHash("A_C_Chop")
return 0 1
:exe_animals_favorites_item8
push GetHash("A_C_Husky")
return 0 1
:exe_animals_favorites_item9
push GetHash("A_C_Retriever")
return 0 1
:exe_animals_favorites_item10
push GetHash("A_C_Rottweiler")
return 0 1
:exe_animals_favorites_item11
push GetHash("A_C_shepherd")
return 0 1
//<
//> get_random_primary
:get_random_primary
Function 0 2
Push_0
PushB 24
callnative get_random_int_in_range 2 1
switch [0 @getrandomprimary_WEAPON_SMG]:[1 @getrandomprimary_WEAPON_ASSAULTSMG]:[2 @getrandomprimary_WEAPON_ASSAULTRIFLE]:[3 @getrandomprimary_WEAPON_CARBINERIFLE]:[4 @getrandomprimary_WEAPON_ADVANCEDRIFLE]:[5 @getrandomprimary_WEAPON_MG]:[6 @getrandomprimary_WEAPON_COMBATMG]:[7 @getrandomprimary_WEAPON_PUMPSHOTGUN]:[8 @getrandomprimary_WEAPON_SAWNOFFSHOTGUN]:[9 @getrandomprimary_WEAPON_ASSAULTSHOTGUN]:[10 @getrandomprimary_WEAPON_BULLPUPSHOTGUN]:[11 @getrandomprimary_WEAPON_SNIPERRIFLE]:[12 @getrandomprimary_WEAPON_HEAVYSNIPER]:[13 @getrandomprimary_WEAPON_MINIGUN]:[14 @getrandomprimary_WEAPON_GUSENBERG]:[15 @getrandomprimary_WEAPON_SPECIALCARBINE]:[16 @getrandomprimary_WEAPON_BULLPUPRIFLE]:[17 @getrandomprimary_WEAPON_MUSKET]:[18 @getrandomprimary_WEAPON_HEAVYSHOTGUN]:[19 @getrandomprimary_WEAPON_MARKSMANRIFLE]:[20 @getrandomprimary_WEAPON_HOMINGLAUNCHER]:[21 @getrandomprimary_WEAPON_FIREWORK]:[22 @getrandomprimary_WEAPON_RPG]:[23 @getrandomprimary_WEAPON_STINGER]:[24 @getrandomprimary_WEAPON_GRENADELAUNCHER]
push GetHash("WEAPON_CARBINERIFLE")
return 0 1
:getrandomprimary_WEAPON_SMG
push GetHash("WEAPON_SMG")
return 0 1
:getrandomprimary_WEAPON_ASSAULTSMG
push GetHash("WEAPON_ASSAULTSMG")
return 0 1
:getrandomprimary_WEAPON_ASSAULTRIFLE
push GetHash("WEAPON_ASSAULTRIFLE")
return 0 1
:getrandomprimary_WEAPON_CARBINERIFLE
push GetHash("WEAPON_CARBINERIFLE")
return 0 1
:getrandomprimary_WEAPON_ADVANCEDRIFLE
push GetHash("WEAPON_ADVANCEDRIFLE")
return 0 1
:getrandomprimary_WEAPON_MG
push GetHash("WEAPON_MG")
return 0 1
:getrandomprimary_WEAPON_COMBATMG
push GetHash("WEAPON_COMBATMG")
return 0 1
:getrandomprimary_WEAPON_PUMPSHOTGUN
push GetHash("WEAPON_PUMPSHOTGUN")
return 0 1
:getrandomprimary_WEAPON_SAWNOFFSHOTGUN
push GetHash("WEAPON_SAWNOFFSHOTGUN")
return 0 1
:getrandomprimary_WEAPON_ASSAULTSHOTGUN
push GetHash("WEAPON_ASSAULTSHOTGUN")
return 0 1
:getrandomprimary_WEAPON_BULLPUPSHOTGUN
push GetHash("WEAPON_BULLPUPSHOTGUN")
return 0 1
:getrandomprimary_WEAPON_SNIPERRIFLE
push GetHash("WEAPON_SNIPERRIFLE")
return 0 1
:getrandomprimary_WEAPON_HEAVYSNIPER
push GetHash("WEAPON_HEAVYSNIPER")
return 0 1
:getrandomprimary_WEAPON_MINIGUN
push GetHash("WEAPON_MINIGUN")
return 0 1
:getrandomprimary_WEAPON_GUSENBERG
push GetHash("WEAPON_GUSENBERG")
return 0 1
:getrandomprimary_WEAPON_SPECIALCARBINE
push GetHash("WEAPON_SPECIALCARBINE")
return 0 1
:getrandomprimary_WEAPON_BULLPUPRIFLE
push GetHash("WEAPON_BULLPUPRIFLE")
return 0 1
:getrandomprimary_WEAPON_MUSKET
push GetHash("WEAPON_MUSKET")
return 0 1
:getrandomprimary_WEAPON_HEAVYSHOTGUN
push GetHash("WEAPON_HEAVYSHOTGUN")
return 0 1
:getrandomprimary_WEAPON_MARKSMANRIFLE
push GetHash("WEAPON_MARKSMANRIFLE")
return 0 1
:getrandomprimary_WEAPON_HOMINGLAUNCHER
push GetHash("WEAPON_HOMINGLAUNCHER")
return 0 1
:getrandomprimary_WEAPON_FIREWORK
push GetHash("WEAPON_FIREWORK")
return 0 1
:getrandomprimary_WEAPON_RPG
push GetHash("WEAPON_RPG")
return 0 1
:getrandomprimary_WEAPON_STINGER
push GetHash("WEAPON_STINGER")
return 0 1
:getrandomprimary_WEAPON_GRENADELAUNCHER
push GetHash("WEAPON_GRENADELAUNCHER")
return 0 1
//<
//> get_random_secondary
:get_random_secondary
Function 0 2
Push_0
PushB 8
callnative get_random_int_in_range 2 1
Switch [0 @getrandomsecondary_WEAPON_PISTOL]:[1 @getrandomsecondary_WEAPON_COMBATPISTOL]:[2 @getrandomsecondary_WEAPON_APPISTOL]:[3 @getrandomsecondary_WEAPON_PISTOL50]:[4 @getrandomsecondary_WEAPON_MICROSMG]:[5 @getrandomsecondary_WEAPON_STUNGUN]:[6 @getrandomsecondary_WEAPON_HEAVYPISTOL]:[7 @getrandomsecondary_WEAPON_SNSPISTOL]:[8 @getrandomsecondary_WEAPON_VINTAGEPISTOL]
push GetHash("WEAPON_MICROSMG")
return 0 1
:getrandomsecondary_WEAPON_PISTOL
push GetHash("WEAPON_PISTOL")
return 0 1
:getrandomsecondary_WEAPON_COMBATPISTOL
push GetHash("WEAPON_COMBATPISTOL")
return 0 1
:getrandomsecondary_WEAPON_APPISTOL
push GetHash("WEAPON_APPISTOL")
return 0 1
:getrandomsecondary_WEAPON_PISTOL50
push GetHash("WEAPON_PISTOL50")
return 0 1
:getrandomsecondary_WEAPON_MICROSMG
push GetHash("WEAPON_MICROSMG")
return 0 1
:getrandomsecondary_WEAPON_STUNGUN
push GetHash("WEAPON_STUNGUN")
return 0 1
:getrandomsecondary_WEAPON_HEAVYPISTOL
push GetHash("WEAPON_HEAVYPISTOL")
return 0 1
:getrandomsecondary_WEAPON_SNSPISTOL
push GetHash("WEAPON_SNSPISTOL")
return 0 1
:getrandomsecondary_WEAPON_VINTAGEPISTOL
push GetHash("WEAPON_VINTAGEPISTOL")
return 0 1
//<
//> advance meuu level
:advance_menu_level
Function 0 2
GetStatic1 5//cursor index
GetStatic1 7//menu level
call @*level_to_last_sel
pset
GetStatic1 14//item count++ start index for scroll (item count++ starts 0 but cursor index is +1)
GetStatic1 7//menu level
call @*level_to_last_start_index
pset
GetStatic1 7//menu level
add1 1
SetStatic1 7//menu level
Push_0
Call @updatemenutext(istoggle)
return 0 0
//<
//> set_nightvision
:set_nightvision(bool)
Function 1 3
GetFrame1 0
CallNative set_nightvision 1 0
GetFrame1 0
Jumpfalse @turnnvisionoff
Push_-1
PushString "THERMAL_VISION_GOGGLES_ON_MASTER"
Push_0
CallNative play_sound_frontend 3 0
CallNative network_is_in_session 0 1
jumpfalse @endnightvisionoffline
CallNative player_id 0 1
GetGlobalP3 1661359
GetArrayP1 199
GetImmP1 198//find THERMAL_VISION_GOGGLES_ON_MASTER in am_heist_int
Push_0
CallNative set_bit 2 0
jump @endnightvision
:turnnvisionoff
Push_-1
PushString "THERMAL_VISION_GOGGLES_OFF_MASTER"
Push_0
CallNative play_sound_frontend 3 0
CallNative network_is_in_session 0 1
jumpfalse @endnightvisionoffline
CallNative player_id 0 1
GetGlobalP3 1661359
GetArrayP1 199
GetImmP1 198//find THERMAL_VISION_GOGGLES_ON_MASTER in am_heist_int
Push_0
CallNative clear_bit 2 0
:endnightvision
call @get_player_number
pushstring "HAS_DEACTIVATE_NIGHTVISION"
call @string strcat(string source,string toadd)
GetHash
GetFrame1 0//bool
not
Push_1
CallNative stat_set_bool 3 1
drop
:endnightvisionoffline
return 1 0
//<
//> get_ubyte_in_byte_array
:get_ubyte_in_byte_array(int*,byteindex)
Function 2 4
//byteindex starts at 0
GetFrame1 0
GetFrame1 1
add
pget
PushB 24
CallNative shift_right 2 1
dup
Push_0
jumpge @end_get_ubyte_from_int
pushs 256//convert int8 to uint8
add
:end_get_ubyte_from_int
return 2 1
//<
//> set_byte_in_byte_array
:set_byte_in_byte_array(byte*,byteindex,bytetoset)
Function 3 5
//byteindex starts at 0
GetFrame1 0
GetFrame1 1
add
SetFrame1 6//byte thats being set
PushB 0
SetFrame1 5
:setbitloopbyte
GetFrame1 5
PushB 7//0-7 loop for is bit set on bytetoset (big endian)
jumpgt @endsetbitloopbyte
GetFrame1 2//byte to set
GetFrame1 5//inc
CallNative is_bit_set 2 1
jumpfalse @clearbitinbyte
GetFrame1 6//byte thats being set
GetFrame1 5
PushB 24
add
CallNative set_bit 2 0
jump @incbitinbyte
:clearbitinbyte
GetFrame1 6//byte thats being set
GetFrame1 5
PushB 24
add
CallNative clear_bit 2 0
:incbitinbyte
GetFrame1 5
add1 1
SetFrame1 5
jump @setbitloopbyte
:endsetbitloopbyte
return 3 0
//<
//> draw color pallet
:draw_color_pallet_to_get_color_index(char* header,int startcolorindex,bool ret_0index_1argb,int colortable)
Function 4 200
GetFrame1 1//startcolorindex
SetFrame1 6//color index ++
Push_0
SetFrame1 9//up counter
Push_0
SetFrame1 11//down counter
Push_0
SetFrame1 12//left counter
Push_0
SetFrame1 13//right counter
PushB 161
SetFrame1 10//color count
GetFrame1 3
Push_1
jumpeq @alloccolortable2
//> alloc color table 1 (carcols)
push 0xFF080808
push 0xFF0F0F0F
push 0xFF1C1E21
push 0xFF292C2E
push 0xFF5A5E66
push 0xFF777C87
push 0xFF515459
push 0xFF323B47
push 0xFF333333
push 0xFF1F2226
push 0xFF23292E
push 0xFF121110
push 0xFF050505
push 0xFF121212
push 0xFF2F3233
push 0xFF080808
push 0xFF121212
push 0xFF202224
push 0xFF575961
push 0xFF23292E
push 0xFF323B47
push 0xFF0F1012
push 0xFF212121
push 0xFF5B5D5E
push 0xFF888A99
push 0xFF697187
push 0xFF3B4654
push 0xFF690000
push 0xFF8A0B00
push 0xFF6B0000
push 0xFF611009
push 0xFF4A0A0A
push 0xFF470E0E
push 0xFF380C00
push 0xFF26030B
push 0xFF630012
push 0xFF802800
push 0xFF6E4F2D
push 0xFFBD4800
push 0xFF780000
push 0xFF360000
push 0xFFAB3F00
push 0xFFDE7E00
push 0xFF520000
push 0xFF8C0404
push 0xFF4A1000
push 0xFF592525
push 0xFF754231
push 0xFF210804
push 0xFF001207
push 0xFF001A0B
push 0xFF00211E
push 0xFF1F261E
push 0xFF003805
push 0xFF0B4145
push 0xFF418503
push 0xFF0F1F15
push 0xFF023613
push 0xFF162419
push 0xFF2A3625
push 0xFF455C56
push 0xFF000D14
push 0xFF001029
push 0xFF1C2F4F
push 0xFF001B57
push 0xFF3B4E78
push 0xFF272D3B
push 0xFF95B2DB
push 0xFF3E627A
push 0xFF1C3140
pushb 70
GetFrameP1 15
FromStack
push 0xFF0055C4
push 0xFF1A182E
push 0xFF161629
push 0xFF0E316D
push 0xFF395A83
push 0xFF09142E
push 0xFF0F1021
push 0xFF152A52
push 0xFF324654
push 0xFF152563
push 0xFF223BA1
push 0xFF1F1FA1
push 0xFF030E2E
push 0xFF0F1E73
push 0xFF001C32
push 0xFF2A3754
push 0xFF303C5E
push 0xFF3B6796
push 0xFFF5890F
push 0xFFD9A600
push 0xFF4A341B
push 0xFFA2A827
push 0xFF568F00
push 0xFF57514B
push 0xFF291B06
push 0xFF262117
push 0xFF120D07
push 0xFF332111
push 0xFF3D3023
push 0xFF5E5343
push 0xFF37382B
push 0xFF221918
push 0xFF575036
push 0xFF241309
push 0xFF3B1700
push 0xFF6E6246
push 0xFF998D73
push 0xFFCFC0A5
push 0xFF1F1709
push 0xFF3D311D
push 0xFF665847
push 0xFFF0F0F0
push 0xFFB3B9C9
push 0xFF615F55
push 0xFF241E1A
push 0xFF171413
push 0xFF3B372F
push 0xFF3B4045
push 0xFF1A1E21
push 0xFF5E646B
push 0xFF000000
push 0xFFB0B0B0
push 0xFF999999
push 0xFFB56519
push 0xFFC45C33
push 0xFF47783C
push 0xFFBA8425
push 0xFF2A77A1
push 0xFF243022
push 0xFF6B5F54
push 0xFFC96E34
push 0xFFD9D9D9
push 0xFFF0F0F0
push 0xFF3F4228
push 0xFFFFFFFF
push 0xFFB01259
push 0xFFF69799
push 0xFF8F2F55
push 0xFFC26610
push 0xFF69BD45
pushb 70
GetFrameP1 85
FromStack
push 0xFF00AEEF
push 0xFF000108
push 0xFF050008
push 0xFF080000
push 0xFF565751
push 0xFF320642
push 0xFF00080F
push 0xFF080808
push 0xFF320642
push 0xFF050008
push 0xFF6B0B00
push 0xFF121710
push 0xFF323325
push 0xFF3B352D
push 0xFF706656
push 0xFF2B302B
push 0xFF414347
push 0xFF6690B5
push 0xFF47391B
push 0xFF47391B
push 0xFFFFD859
pushb 21
GetFrameP1 155
FromStack
//<
jump @endcoloralloc
:alloccolortable2
//> alloc color table 2 (rgb table)
push 0xFFFFFFFF
push 0xFFD4D4D4
push 0xFFAAAAAA
push 0xFF7F7F7F
push 0xFF555555
push 0xFF2A2A2A
push 0xFF000000
push 0xFFFFBFBF
push 0xFFFF7F7F
push 0xFFFF3F3F
push 0xFFFF0000
push 0xFFBF0000
push 0xFF7F0000
push 0xFF3F0000
push 0xFFFFD0BF
push 0xFFFFA27F
push 0xFFFF733F
push 0xFFFF4500
push 0xFFBF3400
push 0xFF7F2200
push 0xFF3F1100
push 0xFFFFE1BF
push 0xFFFFC47F
push 0xFFFFA73F
push 0xFFFF8A00
push 0xFFBF6800
push 0xFF7F4500
push 0xFF3F2200
push 0xFFFFF3BF
push 0xFFFFE77F
push 0xFFFFDB3F
push 0xFFFFD000
push 0xFFBF9C00
push 0xFF7F6800
push 0xFF3F3400
push 0xFFF9FFBF
push 0xFFF3FF7F
push 0xFFEEFF3F
push 0xFFE8FF00
push 0xFFAEBF00
push 0xFF747F00
push 0xFF3A3F00
push 0xFFE8FFBF
push 0xFFD1FF7F
push 0xFFBAFF3F
push 0xFFA3FF00
push 0xFF7ABF00
push 0xFF517F00
push 0xFF283F00
push 0xFFD6FFBF
push 0xFFAEFF7F
push 0xFF86FF3F
push 0xFF5DFF00
push 0xFF46BF00
push 0xFF2E7F00
push 0xFF173F00
push 0xFFC5FFBF
push 0xFF8BFF7F
push 0xFF52FF3F
push 0xFF18FF00
push 0xFF12BF00
push 0xFF0C7F00
push 0xFF063F00
push 0xFFBFFFCA
push 0xFF7FFF95
push 0xFF3FFF61
push 0xFF00FF2C
push 0xFF00BF21
push 0xFF007F16
push 0xFF003F0B
pushb 70
GetFrameP1 15
FromStack
push 0xFFBFFFDB
push 0xFF7FFFB8
push 0xFF3FFF95
push 0xFF00FF72
push 0xFF00BF55
push 0xFF007F39
push 0xFF003F1C
push 0xFFBFFFED
push 0xFF7FFFDB
push 0xFF3FFFC9
push 0xFF00FFB7
push 0xFF00BF89
push 0xFF007F5B
push 0xFF003F2D
push 0xFFBFFFFE
push 0xFF7FFFFD
push 0xFF3FFFFD
push 0xFF00FFFC
push 0xFF00BFBD
push 0xFF007F7E
push 0xFF003F3F
push 0xFFBFEEFF
push 0xFF7FDDFF
push 0xFF3FCCFF
push 0xFF00BBFF
push 0xFF008CBF
push 0xFF005D7F
push 0xFF002E3F
push 0xFFBFDCFF
push 0xFF7FBAFF
push 0xFF3F98FF
push 0xFF0076FF
push 0xFF0058BF
push 0xFF003B7F
push 0xFF001D3F
push 0xFFBFCBFF
push 0xFF7F98FF
push 0xFF3F64FF
push 0xFF0031FF
push 0xFF0024BF
push 0xFF00187F
push 0xFF000C3F
push 0xFFC4BFFF
push 0xFF897FFF
push 0xFF4E3FFF
push 0xFF1400FF
push 0xFF0F00BF
push 0xFF0A007F
push 0xFF05003F
push 0xFFD5BFFF
push 0xFFAC7FFF
push 0xFF823FFF
push 0xFF5900FF
push 0xFF4300BF
push 0xFF2C007F
push 0xFF16003F
push 0xFFE6BFFF
push 0xFFCE7FFF
push 0xFFB63FFF
push 0xFF9E00FF
push 0xFF7700BF
push 0xFF4F007F
push 0xFF27003F
push 0xFFF8BFFF
push 0xFFF17FFF
push 0xFFEB3FFF
push 0xFFE400FF
push 0xFFAB00BF
push 0xFF72007F
push 0xFF39003F
pushb 70
GetFrameP1 85
FromStack
push 0xFFFFBFF4
push 0xFFFF7FE9
push 0xFFFF3FDE
push 0xFFFF00D4
push 0xFFBF009F
push 0xFF7F006A
push 0xFF3F0035
push 0xFFFFBFE2
push 0xFFFF7FC6
push 0xFFFF3FAA
push 0xFFFF008E
push 0xFFBF006B
push 0xFF7F0047
push 0xFF3F0023
push 0xFFFFBFD1
push 0xFFFF7FA4
push 0xFFFF3F76
push 0xFFFF0049
push 0xFFBF0037
push 0xFF7F0024
push 0xFF3F0012
pushb 21
GetFrameP1 155
FromStack
//<
:endcoloralloc
GetFrame1 1//startcolorindex
GetFrame1 10//color count
cmplt
GetFrame1 1//startcolorindex
Push_0
cmpge
and
not
jumpfalse @color_pallet_start_draw
//interpret startcolorindex as rgb index
Push_0
SetFrame1 14//inc
:reloop_colors_to_find_index
GetFrame1 14//inc
GetFrame1 10//color count
Push_1
sub
jumpgt @error_reloop_colors_to_find_index
GetFrame1 1//startcolorindex
GetFrameP1 15
GetFrame1 14//inc
GetImmP
pget
jumpeq @end_reloop_colors_to_find_index
GetFrame1 14//inc
add1 1
SetFrame1 14//inc
jump @reloop_colors_to_find_index
:end_reloop_colors_to_find_index
GetFrame1 14//inc
SetFrame1 6//color index ++
jump @color_pallet_start_draw
:error_reloop_colors_to_find_index
Push_0
SetFrame1 6//color index ++
jump @color_pallet_start_draw
:reloop_color_pallet
Push_0
callnative wait 1 0
CallNative is_pause_menu_active 0 1
jumpfalse @con_reloop_color_pallet
jump @reloop_color_pallet
:con_reloop_color_pallet
call @looped_options
call @disable_game_controls_this_frame
//> menu controls
//> up
Push_2
push GetEnum("INPUT_SCRIPT_PAD_UP")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_UP")
CallNative is_disabled_control_pressed 2 1
dup
GetFrameP1 9//up counter
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
JumpFalse @skp_color_pallet_goup
Push_-1
PushString "NAV_UP_DOWN"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetFrame1 6//color index ++
Push_7
sub
SetFrame1 6//color index ++
GetFrame1 6//color index ++
Push_0
jumpge @skp_color_pallet_goup
GetFrame1 6//color index ++
GetFrame1 10//color count
add
SetFrame1 6//color index ++
:skp_color_pallet_goup
//<
//> down
Push_2
push GetEnum("INPUT_SCRIPT_PAD_DOWN")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_DOWN")
CallNative is_disabled_control_pressed 2 1
dup
GetFrameP1 11//down counter
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
JumpFalse @skp_color_pallet_godown
Push_-1
PushString "NAV_UP_DOWN"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetFrame1 6//color index ++
add1 7
SetFrame1 6//color index ++
GetFrame1 6//color index ++
GetFrame1 10//color count
Push_1
sub
jumple @skp_color_pallet_godown
GetFrame1 6//color index ++
GetFrame1 10//color count
sub
SetFrame1 6//color index ++
:skp_color_pallet_godown
//<
//> right
Push_2
push GetEnum("INPUT_SCRIPT_PAD_RIGHT")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_RIGHT")
CallNative is_disabled_control_pressed 2 1
dup
GetFrameP1 13//right counter
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
JumpFalse @skp_color_pallet_goright
Push_-1
PushString "NAV_LEFT_RIGHT"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetFrame1 6//color index ++
add1 1
SetFrame1 6//color index ++
GetFrame1 6//color index ++
GetFrame1 10//color count
jumpne @skp_color_pallet_goright
Push_0
SetFrame1 6//color index ++
:skp_color_pallet_goright
//<
//> left
Push_2
push GetEnum("INPUT_SCRIPT_PAD_LEFT")
CallNative is_disabled_control_just_pressed 2 1
Push_2
push GetEnum("INPUT_SCRIPT_PAD_LEFT")
CallNative is_disabled_control_pressed 2 1
dup
GetFrameP1 12//left counter
call @fastscroll(ispressed,var*)
call @advanced_scroll_fast(holdcounter)
and
or
JumpFalse @skp_color_pallet_goleft
Push_-1
PushString "NAV_LEFT_RIGHT"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetFrame1 6//color index ++
Push_1
sub
SetFrame1 6//color index ++
GetFrame1 6//color index ++
Push_-1
jumpne @skp_color_pallet_goleft
GetFrame1 10//color count
Push_1
sub
SetFrame1 6//color index ++
:skp_color_pallet_goleft
//<
Push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
JumpFalse @skp_color_pallet_return
Push_-1
PushString "SELECT"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
GetFrame1 2//ret_0index_1argb
jumpfalse @retindex
//> is color valid
GetFrame1 6//color index ++
Push_0
cmpge
GetFrame1 6//color index ++
GetFrame1 10//color count
cmplt
and
jumpfalse @color_pallet_return_null
//<
GetFrameP1 15
GetFrame1 6//color index ++
GetImmP
pget
return 4 1
:retindex
GetFrame1 6//color index ++
return 4 1
:skp_color_pallet_return
Push_2
push GetEnum("INPUT_FRONTEND_CANCEL")
CallNative is_disabled_control_just_pressed 2 1
JumpFalse @skp_color_pallet_return_null
Push_-1
PushString "BACK"
PushString "HUD_FRONTEND_DEFAULT_SOUNDSET"
CallNative play_sound_frontend 3 0
:color_pallet_return_null
push -2
return 4 1
:skp_color_pallet_return_null
//<
:color_pallet_start_draw
call @start_drawing_relative_to_screen_right
//> draw background and header
GetStatic1 93
PushF 0.115//x-position
fadd
//y-position
PushF 29.5//max item count
PushF 1.0//header
fsub
PushF 0.025//item size
fmult
PushF 0.16//add half item to make menu look nice on the bottom
fadd//gets last items location
PushF 0.16//menu start index
fadd
PushF 2.0
fdiv//get median
PushF 0.25000//x size
//y size
PushF 29.5//max item count
PushF 0.05
fmult
PushF 2.0
fdiv
PushF 0.08
fadd
GetStaticP1 240
Push_3//background r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_4//background g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_5//background b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 180
CallNative draw_rect 8 0
GetStatic1 93
PushF 0.115//x-position
fadd
PushF 0.1350//y
PushF 0.2500//w
PushF 0.0510//h
GetStaticP1 240
Push_3//background r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_4//background g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_5//background b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 120//a
CallNative draw_rect 8 0//header rect
Push GetEnum("SignPainter-HouseScript")
PushF_1
PushF 0.62
Push_1
Push_0
Push_0
Push_0
GetStaticP1 240
PushB 12//header txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 13//header txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 14//header txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetFrame1 0
GetStatic1 93
PushF 0.115
fadd
PushF 0.1150000
Push_0
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
//<
GetStatic1 93//x pos (0.75)
PushF 0.0187//account for mid draw pos on rect
fadd
SetFrame1 7//xpos ++
PushF 0.1600000//y pos
PushF 0.0188//half of size to account for mid draw pos on rect
fadd
PushF 0.006//account for selected index being bigger
fadd
SetFrame1 8//ypos ++
Push_0
SetFrame1 14//inc
:reloopcolors
GetFrame1 14//inc
GetFrame1 10//color count
Push_1
sub
jumpgt @end_draw_color_pallet
//> draw selected color
GetFrame1 6//color index ++
GetFrame1 14//inc
jumpne @skp_draw_selected_color_pallet
GetFrame1 7//xpos ++
GetFrame1 8//ypos ++
PushF 0.0342//x size
PushF 0.0342//y size
GetStaticP1 240
Push_6//scroll bar r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_7//scroll bar g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 8//scroll bar b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
CallNative draw_rect 8 0
:skp_draw_selected_color_pallet
//<
//> draw color
GetFrame1 7//xpos ++
GetFrame1 8//ypos ++
PushF 0.0282//x size
PushF 0.0282//y size
GetFrameP1 15
GetFrame1 14//inc
mult1 4
add1 1//r
call @get_ubyte_in_byte_array(int*,byteindex)
GetFrameP1 15
GetFrame1 14//inc
mult1 4
add1 2//g
call @get_ubyte_in_byte_array(int*,byteindex)
GetFrameP1 15
GetFrame1 14//inc
mult1 4
add1 3//b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
CallNative draw_rect 8 0
//<
GetFrame1 7//xpos ++
PushF 0.0320
fadd
SetFrame1 7//xpos ++
GetFrame1 14//inc
add1 1
SetFrame1 14//inc
GetFrame1 14//inc
Push_7
mod
Push_0
jumpne @reloopcolors
GetStatic1 93//x pos
PushF 0.0187//account for mid draw pos on rect
fadd
SetFrame1 7//xpos ++
GetFrame1 8//ypos ++
PushF 0.0320
fadd
SetFrame1 8//ypos ++
jump @reloopcolors
:end_draw_color_pallet
CallNative _end_relative_draw 0 0
jump @reloop_color_pallet
return 4 0
//<
//> set_menu_number_to_precision_level
:set_menu_number_to_precision_level
Function 0 2
call @get_menu_number
Switch [-4 @leastPrecision]:[-3 @evenevenlessPrecision]:[-2 @evenlessPrecision]:[-1 @lessPrecision]:[0 @noPrecision]:[1 @lowPrecision]:[2 @mediumPrecision]:[3 @highPrecision]:[4 @veryhighPrecision]
Return 2 0//endexecute
:leastPrecision
PushF 10000
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to least. (10000)"
jump @printPrecision
:evenevenlessPrecision
PushF 1000
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to lesser. (1000)"
jump @printPrecision
:evenlessPrecision
PushF 100
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to less. (100)"
jump @printPrecision
:lessPrecision
PushF 10
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to little. (10)"
jump @printPrecision
:noPrecision
PushF_1
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level cleared."
jump @printPrecision
:lowPrecision
PushF 0.1
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to low. (0.1)"
jump @printPrecision
:mediumPrecision
PushF 0.01
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to medium. (0.01)"
jump @printPrecision
:highPrecision
PushF 0.001
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to high. (0.001)"
jump @printPrecision
:veryhighPrecision
PushF 0.0001
SetStatic1 88//Precision Level 1,0.1,0.01,0.001,0.0001
pushstring "Precision level set to very high. (0.0001)"
:printPrecision
pushs 3000
call @print(string text,int ms)
return 0 0
//<
//> update player in playerlist
:update_player_in_playerlist(int inc,bool issel)
Function 2 5
GetStatic1 7//menu level
Push_2
jumpne @make_player_explode_player_check
GetStatic1 4//last selected of item level zero
Push_1
jumpne @make_player_explode_player_check
GetStatic1 2//last selected of item level one
Push_1
jumpne @make_player_explode_player_check
PushB 15
SetFrame1 4//num of reg players
jump @start_dynamic_player_list
//> make player explode player check
:make_player_explode_player_check
GetFrame1 0
Push_0//skip first option in make player explode player
jumpeq @endseldynplist
GetStatic1 7//menu level
Push_5
jumpne @endseldynplist
GetStatic1 4//last selected of item level zero
Push_1//player options
jumpne @endseldynplist
GetStatic1 2//last selected of item level one
Push_1//online players
jumpne @endseldynplist
GetStatic1 12//last selected of item level two
Push_1//online player
jumpne @endseldynplist
GetStatic1 34//last selected of item level three
Push_1//online player options
jumpne @endseldynplist
GetStatic1 38//last selected of item level four
PushB 11//make player explode player
jumpne @endseldynplist
PushB 16
SetFrame1 4//num of reg players
//<
:start_dynamic_player_list
GetFrame1 0//inc
GetFrame1 4//num of reg players
jumpgt @addinvalitcstv
:someoneintvslot
GetFrame1 0
GetFrame1 4
PushB 15
sub
sub
CallNative get_player_name 1 1
dup
pushstring "**Invalid**"
CallNative are_strings_equal 2 1
jumpfalse @validplayerforupdate
drop
pushstring "**Empty**"
GetFrame1 0//inc
add1 1
GetStaticP2 379//array for drawing menu text
SetArray1 1//gets array
jump @endseldynplist
:validplayerforupdate
GetFrame1 0//inc
add1 1
GetStaticP2 379//array for drawing menu text
SetArray1 1//gets array
//> get host
CallNative network_is_game_in_progress 0 1
not
jumpfalse @get_host_online
GetFrame1 0
GetFrame1 4
PushB 15
sub
sub
callnative player_id 0 1
jumpne @is_player_talking
:drawhosticon
pushstring "commonmenu"
pushstring "mp_hostcrown"
GetStatic1 93//x//0.75
PushF 0.203//pos of host sprite
fadd
PushF 0.1600000
GetFrame1 0
itof
PushF 0.025
fmult
fadd//emulate base y++
PushF 0.018
fadd
pushstring "commonmenu"
pushstring "mp_hostcrown"
call @getsizefromtexture(txddict,txdname)
PushF_0
PushF 0.005
PushF 0.005
PushF_0
vsub
drop
PushF_0//rot
GetFrame1 1//issel
jumpfalse @hostplayernotsel
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
jump @hostplayersel
:hostplayernotsel
GetStaticP1 240
Push_0//txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_1//txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_2//txt b
call @get_ubyte_in_byte_array(int*,byteindex)
:hostplayersel
PushB 255//a
callnative draw_sprite 11 0
jump @is_player_talking
:get_host_online
PushString "Freemode"
Push_-1
Push_0
CallNative network_get_host_of_script 3 1
GetFrame1 0
GetFrame1 4
PushB 15
sub
sub
jumpeq @drawhosticon
//<
//> is player talking
:is_player_talking
GetFrame1 0
GetFrame1 4
PushB 15
sub
sub
callnative network_player_has_headset 1 1
jumpfalse @endseldynplist
GetFrame1 0
GetFrame1 4
PushB 15
sub
sub
CallNative network_is_player_talking 1 1
SetFrame1 5
GetFrame1 0
GetFrame1 4
PushB 15
sub
sub
callnative player_id 0 1
jumpne @notmytalkingplayer
callnative network_has_headset 0 1
jumpfalse @endseldynplist
CallNative network_is_local_talking 0 1
SetFrame1 5
:notmytalkingplayer
pushstring "mpleaderboard"
GetFrame1 5
jumpfalse @playernottalking1
pushstring "leaderboard_audio_3"
jump @playeristalking1
:playernottalking1
pushstring "leaderboard_audio_inactive"
:playeristalking1
GetStatic1 93//x//0.75
PushF 0.223//pos of talking sprite
fadd
PushF 0.1600000
GetFrame1 0
itof
PushF 0.025
fmult
fadd//emulate base y++
PushF 0.018
fadd
pushstring "mpleaderboard"
GetFrame1 5
jumpfalse @playernottalking2
pushstring "leaderboard_audio_3"
jump @playeristalking2
:playernottalking2
pushstring "leaderboard_audio_inactive"
:playeristalking2
call @getsizefromtexture(txddict,txdname)
PushF_0
PushF 0.005
PushF 0.005
PushF_0
vsub
drop
PushF_0//rot
GetFrame1 1//issel
jumpfalse @talkingplayernotsel
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
jump @talkingplayersel
:talkingplayernotsel
GetStaticP1 240
Push_0//txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_1//txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_2//txt b
call @get_ubyte_in_byte_array(int*,byteindex)
:talkingplayersel
PushB 255//a
callnative draw_sprite 11 0
//<
jump @endseldynplist
:addinvalitcstv
GetFrame1 0//inc
GetFrame1 4
PushB 15
sub
sub
CallNative get_player_name 1 1
pushstring "**Invalid**"
CallNative are_strings_equal 2 1
jumpfalse @someoneintvslot
pushstring "**Empty** (SCTV Slot)"
GetFrame1 0//inc
add1 1
GetStaticP2 379//array for drawing menu text
SetArray1 1//gets array
:endseldynplist
return 2 0
//<
//> start_drawing_relative_to_screen
:start_drawing_relative_to_screen_right
Function 0 5
PushB2 76 84
CallNative _set_screen_draw_position 2 0
callnative get_safe_zone_size 0 1
PushF_1
fsub
PushF -0.05
PushF_0
PushF_0
CallNative _start_draw_position 4 0
return 0 0
:start_drawing_relative_to_screen_left
Function 0 5
PushB2 76 84
CallNative _set_screen_draw_position 2 0
PushF -0.05//x left
callnative get_safe_zone_size 0 1
PushF_1
fsub
PushF_0
PushF_0
CallNative _start_draw_position 4 0
return 0 0
//<
//> parse_enums
:parse_enums(index,basey,issel)
Function 3 8
GetFrame1 0//item count++
add1 1
GetStaticP2 511//array for drawing incremented number
GetArray1 1//gets number
SetFrame1 5
GetStaticP1 232//enum menu vals
GetFrame1 0
add1 1
call @get_ubyte_in_byte_array(int*,byteindex)
switch [1 @cardoors]:[2 @needforspeedenum]:[3 @draw_speed_enum]:[4 @small_medium_large_enum]:[5 @small_large_enum]:[6 @Projectile_Gun_enum]:[7 @Explosive_Bullets_enum]:[8 @dev_tshirts]:[9 @wheel_type_enum]:[10 @Licence_Plate_Textures_enum]:[11 @gas_mask]:[12 @Trevor's_Ski_Mask]:[13 @tug_boat_enum]:[14 @horns_enum]:[15 @cash_drop_enum]:[16 @modelflags_enum]:[17 @handlingflags_enum]:[18 @damageflags_enum]:[19 @aihandling_enum]
jump @parsenull
//> car doors
:cardoors
GetFrame1 5
switch [0 @cardoors0]:[1 @cardoors1]:[2 @cardoors2]:[3 @cardoors3]:[4 @cardoors4]:[5 @cardoors5]
jump @parsenull
:cardoors0
pushstring "Driver"
jump @endparse
:cardoors1
pushstring "Passenger"
jump @endparse
:cardoors2
pushstring "Left Rear"
jump @endparse
:cardoors3
pushstring "Right Rear"
jump @endparse
:cardoors4
pushstring "Hood"
jump @endparse
:cardoors5
pushstring "Trunk"
jump @endparse
//<
//> need for speed
:needforspeedenum
GetFrame1 5
switch [1 @nfs1]:[2 @nfs2]
jump @parsenull
:nfs1
pushstring "Ground"
jump @endparse
:nfs2
pushstring "Air"
jump @endparse
//<
//> draw speed
:draw_speed_enum
GetFrame1 5
switch [1 @speed_mph]:[2 @speed_kmh]
jump @parsenull
:speed_mph
pushstring "Imperial"
jump @endparse
:speed_kmh
pushstring "Metric"
jump @endparse
//<
//> small_medium_large_enum
:small_medium_large_enum
GetFrame1 5
switch [1 @enum_small]:[2 @enum_medium]:[3 @enum_large]
jump @parsenull
:enum_small
pushstring "Small"
jump @endparse
:enum_medium
pushstring "Medium"
jump @endparse
:enum_large
pushstring "Large"
jump @endparse
//<
//> small_large_enum
:small_large_enum
GetFrame1 5
switch [1 @enum_small1]:[2 @enum_large1]
jump @parsenull
:enum_small1
pushstring "Small"
jump @endparse
:enum_large1
pushstring "Large"
jump @endparse
//<
//> Projectile_Gun
:Projectile_Gun_enum
GetFrame1 5
switch [1 @projectile_rpg]:[2 @projectile_stinger]:[3 @projectile_firework]:[4 @projectile_grenadelauncher]:[5 @projectile_grenade]:[6 @projectile_stickybomb]:[7 @projectile_smokegrenade]:[8 @projectile_molotov]:[9 @projectile_flare]:[10 @projectile_hominglauncher]:[11 @projectile_proxmine]:[12 @projectile_snowball]:[13 @projectile_flaregun]
jump @parsenull
:projectile_rpg
pushstring "Rpg"
jump @endparse
:projectile_stinger
pushstring "Stinger"
jump @endparse
:projectile_firework
pushstring "Firework Launcher"
jump @endparse
:projectile_grenadelauncher
pushstring "Grenade Launcher"
jump @endparse
:projectile_grenade
pushstring "Grenade"
jump @endparse
:projectile_stickybomb
pushstring "Sticky Bomb"
jump @endparse
:projectile_smokegrenade
pushstring "Smoke Grenade"
jump @endparse
:projectile_molotov
pushstring "Molotov"
jump @endparse
:projectile_flare
pushstring "Flare"
jump @endparse
:projectile_hominglauncher
pushstring "Homing Launcher"
jump @endparse
:projectile_proxmine
pushstring "Proxmine"
jump @endparse
:projectile_snowball
pushstring "Snowball"
jump @endparse
:projectile_flaregun
pushstring "Flare Gun"
jump @endparse
//<
//> Explosive_Bullets_enum
:Explosive_Bullets_enum
GetFrame1 5
switch [0 @exp0]:[1 @exp1]:[2 @exp2]:[3 @exp3]:[4 @exp4]:[5 @exp5]:[6 @exp6]:[7 @exp7]:[8 @exp8]:[9 @exp9]:[10 @exp10]:[11 @exp11]:[12 @exp12]:[13 @exp13]:[14 @exp14]:[15 @exp15]:[16 @exp16]:[17 @exp17]:[18 @exp18]:[19 @exp19]:[20 @exp20]:[21 @exp21]:[22 @exp22]:[23 @exp23]:[24 @exp24]:[25 @exp25]:[26 @exp26]:[27 @exp27]:[28 @exp28]:[29 @exp29]:[30 @exp30]:[31 @exp31]:[32 @exp32]:[33 @exp33]:[34 @exp34]:[35 @exp35]:[36 @exp36]:[37 @exp37]:[38 @exp38]
jump @parsenull
:exp0
pushstring "Grenade"
jump @endparse
:exp1
pushstring "Grenade L"
jump @endparse
:exp2
pushstring "Sticky Bomb"
jump @endparse
:exp3
pushstring "Molotov"
jump @endparse
:exp4
pushstring "Rocket"
jump @endparse
:exp5
pushstring "Tankshell"
jump @endparse
:exp6
pushstring "Hi Octane"
jump @endparse
:exp7
pushstring "Car"
jump @endparse
:exp8
pushstring "Plane"
jump @endparse
:exp9
pushstring "Petrol Pump"
jump @endparse
:exp10
pushstring "Bike"
jump @endparse
:exp11
pushstring "Steam"
jump @endparse
:exp12
pushstring "Flame"
jump @endparse
:exp13
pushstring "Water Hydrant"
jump @endparse
:exp14
pushstring "Gas Canister 1"
jump @endparse
:exp15
pushstring "Boat"
jump @endparse
:exp16
pushstring "Ship Destroy"
jump @endparse
:exp17
pushstring "Truck"
jump @endparse
:exp18
pushstring "Bullet"
jump @endparse
:exp19
pushstring "Smoke GL"
jump @endparse
:exp20
pushstring "Smoke G"
jump @endparse
:exp21
pushstring "BZ Gas"
jump @endparse
:exp22
pushstring "Flare"
jump @endparse
:exp23
pushstring "Gas Canister 2"
jump @endparse
:exp24
pushstring "Extinguisher"
jump @endparse
:exp25
pushstring "Program AR"
jump @endparse
:exp26
pushstring "Train"
jump @endparse
:exp27
pushstring "Barrel"
jump @endparse
:exp28
pushstring "Propane"
jump @endparse
:exp29
pushstring "Blimp"
jump @endparse
:exp30
pushstring "Flame Explode"
jump @endparse
:exp31
pushstring "Tanker"
jump @endparse
:exp32
pushstring "Plane Rocket"
jump @endparse
:exp33
pushstring "Vehicle Bullet"
jump @endparse
:exp34
pushstring "Gas Tank"
jump @endparse
:exp35
pushstring "Firework"
jump @endparse
:exp36
pushstring "Snowball"
jump @endparse
:exp37
pushstring "Proxmine"
jump @endparse
:exp38
pushstring "Valkyrie"
jump @endparse
//<
//> dev_tshirts
:dev_tshirts
GetFrame1 5
switch [1 @r*white]:[2 @r*black]:[3 @r*grey]
jump @parsenull
:r*white
pushstring "White"
jump @endparse
:r*black
pushstring "Black"
jump @endparse
:r*grey
pushstring "Grey"
jump @endparse
//<
//> wheel_type_enum
:wheel_type_enum
GetFrame1 5
switch [0 @wheel_type_sport]:[1 @wheel_type_muscle]:[2 @wheel_type_lowrider]:[3 @wheel_type_suv]:[4 @wheel_type_offroad]:[5 @wheel_type_tuner]:[6 @wheel_type_bike]:[7 @wheel_type_hiend]
jump @parsenull
:wheel_type_sport
pushstring "Sport"
jump @endparse
:wheel_type_muscle
pushstring "Muscle"
jump @endparse
:wheel_type_lowrider
pushstring "Lowrider"
jump @endparse
:wheel_type_suv
pushstring "SUV"
jump @endparse
:wheel_type_offroad
pushstring "Offroad"
jump @endparse
:wheel_type_tuner
pushstring "Tuner"
jump @endparse
:wheel_type_bike
pushstring "Bike"
jump @endparse
:wheel_type_hiend
pushstring "High-End"
jump @endparse
//<
//> Licence_Plate_Textures_enum
:Licence_Plate_Textures_enum
GetFrame1 5
switch [0 @Licence_Plate_Textures_white1]:[1 @Licence_Plate_Textures_black]:[2 @Licence_Plate_Textures_blue]:[3 @Licence_Plate_Textures_white2]:[4 @Licence_Plate_Textures_exempt]:[5 @Licence_Plate_Textures_yankton]
jump @parsenull
:Licence_Plate_Textures_white1
pushstring "White 1"
jump @endparse
:Licence_Plate_Textures_black
pushstring "Black"
jump @endparse
:Licence_Plate_Textures_blue
pushstring "Blue"
jump @endparse
:Licence_Plate_Textures_white2
pushstring "White 2"
jump @endparse
:Licence_Plate_Textures_exempt
pushstring "SA Exempt"
jump @endparse
:Licence_Plate_Textures_yankton
pushstring "Yankton"
jump @endparse
//<
//> gas mask
:gas_mask
GetFrame1 5
switch [1 @gas_mask_1]:[2 @gas_mask_2]
jump @parsenull
:gas_mask_1
pushstring "New"
jump @endparse
:gas_mask_2
pushstring "Old"
jump @endparse
//<
//> Trevor's_Ski_Mask
:Trevor's_Ski_Mask
GetFrame1 5
switch [1 @Trevor's_Ski_Mask1]:[2 @Trevor's_Ski_Mask2]
jump @parsenull
:Trevor's_Ski_Mask1
pushstring "Mask"
jump @endparse
:Trevor's_Ski_Mask2
pushstring "Goggles"
jump @endparse
//<
//> tug_boat_enum
:tug_boat_enum
GetFrame1 5
switch [1 @tug_boat_1]:[2 @tug_boat_2]
jump @parsenull
:tug_boat_1
pushstring "Sea"
jump @endparse
:tug_boat_2
pushstring "Land"
jump @endparse
//<
//> horns_enum
:horns_enum
GetFrame1 5
switch [0 @horns_0]:[1 @horns_1]:[2 @horns_2]:[3 @horns_3]:[4 @horns_4]:[5 @horns_5]:[6 @horns_6]:[7 @horns_7]:[8 @horns_8]:[9 @horns_9]:[10 @horns_10]:[11 @horns_11]:[12 @horns_12]:[13 @horns_13]:[14 @horns_14]:[15 @horns_15]:[16 @horns_16]:[17 @horns_17]:[18 @horns_18]:[19 @horns_19]:[20 @horns_20]:[21 @horns_21]:[22 @horns_22]:[23 @horns_23]:[24 @horns_24]:[25 @horns_25]:[26 @horns_26]:[27 @horns_27]:[28 @horns_28]:[29 @horns_29]:[30 @horns_30]:[31 @horns_31]:[32 @horns_32]:[33 @horns_33]:[34 @horns_34]:[35 @horns_35]:[36 @horns_36]:[37 @horns_37]
jump @parsenull
:horns_0
pushstring "Stock"
jump @endparse
:horns_1
pushstring "Truck"
jump @endparse
:horns_2
pushstring "Cop"
jump @endparse
:horns_3
pushstring "Clown"
jump @endparse
:horns_4
pushstring "Musical 1"
jump @endparse
:horns_5
pushstring "Musical 2"
jump @endparse
:horns_6
pushstring "Musical 3"
jump @endparse
:horns_7
pushstring "Musical 4"
jump @endparse
:horns_8
pushstring "Musical 5"
jump @endparse
:horns_9
pushstring "Classical 1"
jump @endparse
:horns_10
pushstring "Classical 2"
jump @endparse
:horns_11
pushstring "Classical 3"
jump @endparse
:horns_12
pushstring "Classical 4"
jump @endparse
:horns_13
pushstring "Classical 5"
jump @endparse
:horns_14
pushstring "Classical 6"
jump @endparse
:horns_15
pushstring "Classical 7"
jump @endparse
:horns_16
pushstring "Scale - Do"
jump @endparse
:horns_17
pushstring "Scale - Re"
jump @endparse
:horns_18
pushstring "Scale - Mi"
jump @endparse
:horns_19
pushstring "Scale - Fa"
jump @endparse
:horns_20
pushstring "Scale - Sol"
jump @endparse
:horns_21
pushstring "Scale - La"
jump @endparse
:horns_22
pushstring "Scale - Ti"
jump @endparse
:horns_23
pushstring "Scale - Do (high)"
jump @endparse
:horns_24
pushstring "Jazz 1"
jump @endparse
:horns_25
pushstring "Jazz 2"
jump @endparse
:horns_26
pushstring "Jazz 3"
jump @endparse
:horns_27
pushstring "Jazz Loop"
jump @endparse
:horns_28
pushstring "Star Spangled Banner 1"
jump @endparse
:horns_29
pushstring "Star Spangled Banner 2"
jump @endparse
:horns_30
pushstring "Star Spangled Banner 3"
jump @endparse
:horns_31
pushstring "Star Spangled Banner 4"
jump @endparse
:horns_32
pushstring "Classical Loop 1"
jump @endparse
:horns_33
pushstring "Classical 8"
jump @endparse
:horns_34
pushstring "Classical Loop 2"
jump @endparse
:horns_35
pushstring "Classical Loop 1 Part 1"
jump @endparse
:horns_36
pushstring "Classical 8 Part 1"
jump @endparse
:horns_37
pushstring "Classical Loop 2 Part 1"
jump @endparse
//<
//> cash_drop_enum
:cash_drop_enum
GetFrame1 5
switch [0 @cash_drop_0]:[1 @cash_drop_1]
jump @parsenull
:cash_drop_0
pushstring "2000"
jump @endparse
:cash_drop_1
pushstring "40000"
jump @endparse
//<
//> model flags
:modelflags_enum
getstatic1 208
switch [0 @modelflags_digit0]:[1 @modelflags_digit1]:[2 @modelflags_digit2]:[3 @modelflags_digit3]:[4 @modelflags_digit4]:[5 @modelflags_digit5]:[6 @modelflags_digit6]:[7 @modelflags_digit7]
jump @parsenull
:modelflags_digit0
GetFrame1 5
switch [1 @modelflags_digit0_option0]:[2 @modelflags_digit0_option1]:[3 @modelflags_digit0_option2]:[4 @modelflags_digit0_option3]:[5 @modelflags_digit0_option4]
jump @parsenull
:modelflags_digit0_option0
pushstring "Is Van"
jump @endparse
:modelflags_digit0_option1
pushstring "Is Bus"
jump @endparse
:modelflags_digit0_option2
pushstring "Is Low"
jump @endparse
:modelflags_digit0_option3
pushstring "Is Big"
jump @endparse
:modelflags_digit0_option4
pushstring "UNK"
jump @endparse
:modelflags_digit1
GetFrame1 5
switch [1 @modelflags_digit1_option0]:[2 @modelflags_digit1_option1]:[3 @modelflags_digit1_option2]:[4 @modelflags_digit1_option3]:[5 @modelflags_digit1_option4]
jump @parsenull
:modelflags_digit1_option0
pushstring "ABS STD"
jump @endparse
:modelflags_digit1_option1
pushstring "ABS Option"
jump @endparse
:modelflags_digit1_option2
pushstring "ABS ALT STD"
jump @endparse
:modelflags_digit1_option3
pushstring "ABS ALT Option"
jump @endparse
:modelflags_digit1_option4
pushstring "UNK"
jump @endparse
:modelflags_digit2
GetFrame1 5
switch [1 @modelflags_digit2_option0]:[2 @modelflags_digit2_option1]:[3 @modelflags_digit2_option2]:[4 @modelflags_digit2_option3]:[5 @modelflags_digit2_option4]
jump @parsenull
:modelflags_digit2_option0
pushstring "No Doors"
jump @endparse
:modelflags_digit2_option1
pushstring "Tandem Seats"
jump @endparse
:modelflags_digit2_option2
pushstring "Sit In Boat"
jump @endparse
:modelflags_digit2_option3
pushstring "Has Tracks"
jump @endparse
:modelflags_digit2_option4
pushstring "UNK"
jump @endparse
:modelflags_digit3
GetFrame1 5
switch [1 @modelflags_digit3_option0]:[2 @modelflags_digit3_option1]:[3 @modelflags_digit3_option2]:[4 @modelflags_digit3_option3]:[5 @modelflags_digit3_option4]
jump @parsenull
:modelflags_digit3_option0
pushstring "No Exhaust"
jump @endparse
:modelflags_digit3_option1
pushstring "Double Exhaust"
jump @endparse
:modelflags_digit3_option2
pushstring "No Look Behind"
jump @endparse
:modelflags_digit3_option3
pushstring "Can Enter If No Door"
jump @endparse
:modelflags_digit3_option4
pushstring "UNK"
jump @endparse
:modelflags_digit4
GetFrame1 5
switch [1 @modelflags_digit4_option0]:[2 @modelflags_digit4_option1]:[3 @modelflags_digit4_option2]:[4 @modelflags_digit4_option3]:[5 @modelflags_digit4_option4]
jump @parsenull
:modelflags_digit4_option0
pushstring "Axle Front Torsion"
jump @endparse
:modelflags_digit4_option1
pushstring "Axle Front SOLID"
jump @endparse
:modelflags_digit4_option2
pushstring "Axle Front MacPherson"
jump @endparse
:modelflags_digit4_option3
pushstring "Attach Ped To Bodyshell"
jump @endparse
:modelflags_digit4_option4
pushstring "UNK"
jump @endparse
:modelflags_digit5
GetFrame1 5
switch [1 @modelflags_digit5_option0]:[2 @modelflags_digit5_option1]:[3 @modelflags_digit5_option2]:[4 @modelflags_digit5_option3]:[5 @modelflags_digit5_option4]
jump @parsenull
:modelflags_digit5_option0
pushstring "Axle Rear Torsion"
jump @endparse
:modelflags_digit5_option1
pushstring "Axle Rear Solid"
jump @endparse
:modelflags_digit5_option2
pushstring "Axle Rear MacPherson"
jump @endparse
:modelflags_digit5_option3
pushstring "Dont Force GRND Clearance"
jump @endparse
:modelflags_digit5_option4
pushstring "UNK"
jump @endparse
:modelflags_digit6
GetFrame1 5
switch [1 @modelflags_digit6_option0]:[2 @modelflags_digit6_option1]:[3 @modelflags_digit6_option2]:[4 @modelflags_digit6_option3]:[5 @modelflags_digit6_option4]
jump @parsenull
:modelflags_digit6_option0
pushstring "Dont Render Steer"
jump @endparse
:modelflags_digit6_option1
pushstring "No Wheel Burst"
jump @endparse
:modelflags_digit6_option2
pushstring "Indestructible"
jump @endparse
:modelflags_digit6_option3
pushstring "Double Front Wheels"
jump @endparse
:modelflags_digit6_option4
pushstring "UNK"
jump @endparse
:modelflags_digit7
GetFrame1 5
switch [1 @modelflags_digit7_option0]:[2 @modelflags_digit7_option1]:[3 @modelflags_digit7_option2]:[4 @modelflags_digit7_option3]:[5 @modelflags_digit7_option4]
jump @parsenull
:modelflags_digit7_option0
pushstring "RC"
jump @endparse
:modelflags_digit7_option1
pushstring "Double Rear Wheels"
jump @endparse
:modelflags_digit7_option2
pushstring "MF No Wheel Break"
jump @endparse
:modelflags_digit7_option3
pushstring "Is Hatchback"
jump @endparse
:modelflags_digit7_option4
pushstring "UNK"
jump @endparse
//<
//> handling flags
:handlingflags_enum
getstatic1 209
switch [0 @handlingflags_digit0]:[1 @handlingflags_digit1]:[2 @handlingflags_digit2]:[3 @handlingflags_digit3]:[4 @handlingflags_digit4]:[5 @handlingflags_digit5]:[6 @handlingflags_digit6]:[7 @handlingflags_digit7]
jump @parsenull
:handlingflags_digit0
GetFrame1 5
switch [1 @handlingflags_digit0_option0]:[2 @handlingflags_digit0_option1]:[3 @handlingflags_digit0_option2]:[4 @handlingflags_digit0_option3]:[5 @handlingflags_digit0_option4]
jump @parsenull
:handlingflags_digit0_option0
pushstring "Smooth Compresn"
jump @endparse
:handlingflags_digit0_option1
pushstring "Reduced Mod Mass"
jump @endparse
:handlingflags_digit0_option2
pushstring "N/A"
jump @endparse
:handlingflags_digit0_option3
pushstring "N/A"
jump @endparse
:handlingflags_digit0_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit1
GetFrame1 5
switch [1 @handlingflags_digit1_option0]:[2 @handlingflags_digit1_option1]:[3 @handlingflags_digit1_option2]:[4 @handlingflags_digit1_option3]:[5 @handlingflags_digit1_option4]
jump @parsenull
:handlingflags_digit1_option0
pushstring "No Handbrake"
jump @endparse
:handlingflags_digit1_option1
pushstring "Steer Rearwheels"
jump @endparse
:handlingflags_digit1_option2
pushstring "HB Rearwheel Steer"
jump @endparse
:handlingflags_digit1_option3
pushstring "Steer All Wheels"
jump @endparse
:handlingflags_digit1_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit2
GetFrame1 5
switch [1 @handlingflags_digit2_option0]:[2 @handlingflags_digit2_option1]:[3 @handlingflags_digit2_option2]:[4 @handlingflags_digit2_option3]:[5 @handlingflags_digit2_option4]
jump @parsenull
:handlingflags_digit2_option0
pushstring "Freewheel No Gas"
jump @endparse
:handlingflags_digit2_option1
pushstring "No Reverse"
jump @endparse
:handlingflags_digit2_option2
pushstring "N/A"
jump @endparse
:handlingflags_digit2_option3
pushstring "Steer No Wheels"
jump @endparse
:handlingflags_digit2_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit3
GetFrame1 5
switch [1 @handlingflags_digit3_option0]:[2 @handlingflags_digit3_option1]:[3 @handlingflags_digit3_option2]:[4 @handlingflags_digit3_option3]:[5 @handlingflags_digit3_option4]
jump @parsenull
:handlingflags_digit3_option0
pushstring "CVT"
jump @endparse
:handlingflags_digit3_option1
pushstring "ALT Wheel Bounds"//ALT_EXT_WHEEL_BOUNDS_BEH
jump @endparse
:handlingflags_digit3_option2
pushstring "Dont Raise Bounds At SPD"//DONT_RAISE_BOUNDS_AT_SPEED
jump @endparse
:handlingflags_digit3_option3
pushstring "N/A"
jump @endparse
:handlingflags_digit3_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit4
GetFrame1 5
switch [1 @handlingflags_digit4_option0]:[2 @handlingflags_digit4_option1]:[3 @handlingflags_digit4_option2]:[4 @handlingflags_digit4_option3]:[5 @handlingflags_digit4_option4]
jump @parsenull
:handlingflags_digit4_option0
pushstring "Less Snow Sink"
jump @endparse
:handlingflags_digit4_option1
pushstring "Tyres Can Clip"
jump @endparse
:handlingflags_digit4_option2
pushstring "N/A"
jump @endparse
:handlingflags_digit4_option3
pushstring "N/A"
jump @endparse
:handlingflags_digit4_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit5
GetFrame1 5
switch [1 @handlingflags_digit5_option0]:[2 @handlingflags_digit5_option1]:[3 @handlingflags_digit5_option2]:[4 @handlingflags_digit5_option3]:[5 @handlingflags_digit5_option4]
jump @parsenull
:handlingflags_digit5_option0
pushstring "Offroad Ability"
jump @endparse
:handlingflags_digit5_option1
pushstring "Offroad Ability2"
jump @endparse
:handlingflags_digit5_option2
pushstring "Tyres Raise IMP THR"//HF_TYRES_RAISE_SIDE_IMPACT_THRESHOLD
jump @endparse
:handlingflags_digit5_option3
pushstring "N/A"
jump @endparse
:handlingflags_digit5_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit6
GetFrame1 5
switch [1 @handlingflags_digit6_option0]:[2 @handlingflags_digit6_option1]:[3 @handlingflags_digit6_option2]:[4 @handlingflags_digit6_option3]:[5 @handlingflags_digit6_option4]
jump @parsenull
:handlingflags_digit6_option0
pushstring "Enable Lean"
jump @endparse
:handlingflags_digit6_option1
pushstring "N/A"
jump @endparse
:handlingflags_digit6_option2
pushstring "Heavy Armour"
jump @endparse
:handlingflags_digit6_option3
pushstring "Armoured"
jump @endparse
:handlingflags_digit6_option4
pushstring "UNK"
jump @endparse
:handlingflags_digit7
GetFrame1 5
switch [1 @handlingflags_digit7_option0]:[2 @handlingflags_digit7_option1]:[3 @handlingflags_digit7_option2]:[4 @handlingflags_digit7_option3]:[5 @handlingflags_digit7_option4]
jump @parsenull
:handlingflags_digit7_option0
pushstring "Self Righting In Water"
jump @endparse
:handlingflags_digit7_option1
pushstring "IMPR Righting Force"
jump @endparse
:handlingflags_digit7_option2
pushstring "N/A"
jump @endparse
:handlingflags_digit7_option3
pushstring "N/A"
jump @endparse
:handlingflags_digit7_option4
pushstring "UNK"
jump @endparse
//<
//> door damage flags
:damageflags_enum
getstatic1 210
switch [0 @damageflags_digit0]:[1 @damageflags_digit1]:[2 @damageflags_na_digits]:[3 @damageflags_na_digits]:[4 @damageflags_na_digits]:[5 @damageflags_na_digits]:[6 @damageflags_na_digits]:[7 @damageflags_na_digits]
jump @parsenull
:damageflags_digit0
GetFrame1 5
switch [1 @damageflags_digit0_option0]:[2 @damageflags_digit0_option1]:[3 @damageflags_digit0_option2]:[4 @damageflags_digit0_option3]
jump @parsenull
:damageflags_digit0_option0
pushstring "Front Left"
jump @endparse
:damageflags_digit0_option1
pushstring "Back Left"
jump @endparse
:damageflags_digit0_option2
pushstring "Front Right"
jump @endparse
:damageflags_digit0_option3
pushstring "Back Right"
jump @endparse
:damageflags_digit1
GetFrame1 5
switch [1 @damageflags_digit1_option0]:[2 @damageflags_digit1_option1]:[3 @damageflags_digit1_option2]:[4 @damageflags_digit1_option3]
jump @parsenull
:damageflags_digit1_option0
pushstring "Bonnet"
jump @endparse
:damageflags_digit1_option1
pushstring "Boot"
jump @endparse
:damageflags_digit1_option2
pushstring "N/A"
jump @endparse
:damageflags_digit1_option3
pushstring "N/A"
jump @endparse
:damageflags_na_digits
GetFrame1 5
switch [1 @damageflags_na_digits_option]:[2 @damageflags_na_digits_option]:[3 @damageflags_na_digits_option]:[4 @damageflags_na_digits_option]
jump @parsenull
:damageflags_na_digits_option
pushstring "N/A"
jump @endparse
//<
//> ai handling
:aihandling_enum
GetFrame1 5
switch [0 @aihandling_0]:[1 @aihandling_1]:[2 @aihandling_2]:[3 @aihandling_3]
jump @parsenull
:aihandling_0
pushstring "Sports Car"
jump @endparse
:aihandling_1
pushstring "Average"
jump @endparse
:aihandling_2
pushstring "Crap"
jump @endparse
:aihandling_3
pushstring "Truck"
jump @endparse
//<
//> end parse
:parsenull
pushstring "NULL"
:endparse
SetFrame1 5
GetFrame1 2//issel
jumpfalse @enumnotselected
//> draw left arrow
pushstring "CommonMenu"
pushstring "arrowleft"
GetStatic1 93//x//0.75
PushF 0.224//text start pos
fadd
GetFrame1 5
Push GetEnum("Chalet-LondonNineteenSixty")
PushF 0.35
call @get_width_of_string(string str,int font,float scale)
fsub
PushF 0.003//arrow spacing
fsub
GetFrame1 1//base y ++
PushF 0.018
fadd
pushstring "CommonMenu"
pushstring "arrowleft"
call @getsizefromtexture(txddict,txdname)
PushF_0//rot
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255//a
callnative draw_sprite 11 0
//<
call @menu_set_up_selected_num
//GetFrame1 5
//Push GetEnum("Chalet-LondonNineteenSixty")
//PushF 0.45
//call @get_width_of_string(string str,int font,float scale)
//
//GetStatic1 96//item count++
//add1 1
//GetStaticP2 379//array for drawing menu text
//GetArray1 1//gets array
//Push GetEnum("Chalet-LondonNineteenSixty")
//PushF 0.45
//call @get_width_of_string(string str,int font,float scale)
//PushF 0.224//text start pos
//fsub
//fcmpgt
PushF_1//no change
PushF 0.35
CallNative set_text_scale 2 0
GetFrame1 5
PushF_0//right justify no need for x
GetFrame1 1//base y ++
PushF 0.005
fadd
Push_0
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
return 3 0
:enumnotselected
call @menu_set_up_unselected_num
PushF_1//no change
PushF 0.35
CallNative set_text_scale 2 0
GetFrame1 5
PushF_0//right justify no need for x
GetFrame1 1//base y ++
PushF 0.005
fadd
Push_0
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
return 3 0
//<
//<
//> menu setup
:menu_set_up_unselected_num
Function 0 5
Push GetEnum("Chalet-LondonNineteenSixty")
GetStatic1 93//x//0.75
PushF 0.239//gets right of menu
fadd//0.989
PushF 0.015//sub to get number pos from right of menu
fsub
PushF 0.45
Push_0
Push_1
Push_0
Push_0
GetStaticP1 240
Push_0//txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_1//txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
Push_2//txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
return 0 0
:menu_set_up_selected_num
Function 0 2
Push GetEnum("Chalet-LondonNineteenSixty")
GetStatic1 93//x//0.75
PushF 0.239//gets right of menu
fadd//0.989
PushF 0.015//sub to get number pos from right of menu
fsub
PushF 0.45
Push_0
Push_1
Push_0
Push_0
GetStaticP1 240
PushB 9//sel txt r
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 10//sel txt g
call @get_ubyte_in_byte_array(int*,byteindex)
GetStaticP1 240
PushB 11//sel txt b
call @get_ubyte_in_byte_array(int*,byteindex)
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
return 0 0
//<
//> execute_load_loop
:execute_load_loop
Function 0 5
GetStatic1 27//type for model loading
SetFrame1 2
Push_0
SetStatic1 27//type for model loading
GetStatic1 28//saved jumptype for model loading
SetFrame1 3
GetStatic1 28//saved jumptype for model loading
jumpfalse @end_execute_load_loop
//> drive on water
GetStatic1 28//saved jumptype for model loading
PushB 19//object drive on water special
jumpne @not_save_object_for_drive_on_water
GetStatic1 26//saved hash and entity for model loading
SetStatic1 89//saved object for drive on water
jump @end_execute_load_loop
:not_save_object_for_drive_on_water
//<
//> online player options
GetFrame1 2//type for model loading
Push_4//online object spawn
cmpeq
GetFrame1 2//type for model loading
PushB 11//play online anim
cmpeq
or
GetFrame1 2//type for model loading
PushB 12//request control of entity
cmpeq
or
jumpfalse @not_online_execute
Push_0
Push_0
Push_0
GetStatic1 28//saved jumptype for model loading
call @online_player_options(submenu,islooped,is_exe_on_dpad,onlinejumptype)
jump @end_execute_load_loop
:not_online_execute
//<
Push_1
GetStatic1 28//saved jumptype for model loading
call @execute(isrightexe,jumptype)
:end_execute_load_loop
GetStatic1 28//saved jumptype for model loading
GetFrame1 3
cmpeq
not
jumpfalse @null_execute_load_loop_vars
return 0 0
:null_execute_load_loop_vars
Push_0
SetStatic1 28//saved jumptype for model loading
return 0 0
//<
//> is_menu_loading
:is_menu_loading
Function 0 2
GetStatic1 27//type for model loading
jumpfalse @menunotloading
PushString "Menu is loading. Please wait."
pushs 3000
call @print(string text,int ms)
Push_1
return 0 1
:menunotloading
Push_0
return 0 1
//<
//> execute_load_loop_allplayers
:execute_load_loop_allplayers
Function 0 3
GetStatic1 28//saved jumptype for model loading
jumpfalse @end_execute_load_loop_ap
GetStatic1 10//player loop index
SetFrame1 2//saved index
GetStatic1 35//model load loop extra parrams
SetStatic1 10//player loop index
Push_0
Push_1
Push_0
GetStatic1 28//saved jumptype for model loading
call @online_player_options(submenu,islooped,is_exe_on_dpad,onlinejumptype)
GetFrame1 2//saved index
SetStatic1 10//player loop index
:end_execute_load_loop_ap
return 0 0
//<
//> vcmpeq
:vcmpeq
Function 6 8
GetFrame1 0
GetFrame1 3
cmpeq
GetFrame1 1
GetFrame1 4
cmpeq
and
GetFrame1 2
GetFrame1 5
cmpeq
and
return 6 1
//<
//> vfcmpeq
:vfcmpeq
Function 6 8
GetFrame1 0
GetFrame1 3
fcmpeq
GetFrame1 1
GetFrame1 4
fcmpeq
and
GetFrame1 2
GetFrame1 5
fcmpeq
and
return 6 1
//<
//> draw neon
:draw_neon(x,y,z)
Function 3 5
Push_3
GetFrameP1 0
tostack
Push_0
Push_0
PushB 255
PushF_3//intensity
PushF 0.5//range
callnative draw_light_with_range 8 0
return 3 0
//<
//> menu drawing error
:menuerror
Function 0 2
Push_1
SetStatic1 6//item count
pushstring "Error"
SetStatic2 380//header
PushString "Drawing Error"
call @add_item(string item)
Return 0 0
//<
//> GetEntityAddress
:GetEntityAddress
Function 1 9
push 0x83DDDCD0//tu27
pget//xex address
dup
setframe1 3//xexDeref
add1 4
pget
setframe1 4//xexDerefTable
getframe1 0//handle
Pushb 8
CallNative shift_right 2 1
setframe1 5//handleShift
getframe1 4//xexDerefTable
getframe1 5//handleShift
add
pget
PushB 24
CallNative shift_right 2 1
setframe1 6//byteCheck
getframe1 6//bytecheck
getframe1 0//handle
pushb 255
and
jumpne @endentityaddr
getframe1 3//xexderef
pushb 28
add
pget
push_0
jumpne @derefTableAdd1C
push_0
setframe1 7//r10
jump @skipderefTableAdd1C
:derefTableAdd1C
getframe1 3//xexderef
pushb 32
add
pget
setframe1 7//r10
getframe1 5//handleshift
getframe1 7//r10
jumplt @skipderefTableAdd1C
push_1
setframe1 7//r10
getframe1 5//handleshift
getframe1 3//xexderef
pushb 8
add
pget
jumplt @skipderefTableAdd1C
push_0
setframe1 7//r10
:skipderefTableAdd1C
getframe1 7//r10
pushb 255
and
setframe1 7//r10
getframe1 7//r10
jumpfalse @r10ne0
getframe1 5//handleshift
getframe1 3//xexderef
pushb 32//0x20
add
pget
sub//r10SubfHandleShift
push_2
callnative shift_left 2 1
getframe1 3//xexderef
pushb 28//1c
add
pget//xexDerefAdd1C
add
pget
Add1 4
pGet
return 1 1
:r10ne0
getframe1 3//xexderef
pget
getframe1 5//handleshift
getframe1 3//xexderef
pushb 12//0xc
add
pget
mult
add
add1 4
pGet
return 1 1
:endentityaddr
push_0
Return 1 1
//<
//> breakpoints
:break_num
function 1 7
getframe1 0
getframep1 3
itos 16
getframep1 3
call @break
return 1 0
:break
function 1 20//(string* brname)
pushstring "~y~Break:~s~ Breakpoint '"
getframep1 3
strcopy 64
getframe1 0
getframep1 3
stradd 64
pushstring "' was hit."
getframep1 3
stradd 64
:breakloop
push_0
callnative wait 1 0
getframep1 3
pushstring "Do you want to continue?~n~~g~A~s~-Continue"
pushs 10
call @print_two(string text1,string text2,int ms)
push_2
push GetEnum("INPUT_FRONTEND_ACCEPT")
CallNative is_disabled_control_just_pressed 2 1
JumpFalse @breakloop
return 1 0
//<
//> float_to_string
:float_to_string(float num,int precision_level)
Function 2 18
getframe1 0
ftoi
setframe1 4//leftnum
pushstring ""
GetStaticP1 245
strcopy 64
getframe1 4//leftnum
GetStaticP1 245
itos 64
pushstring "."
GetStaticP1 245
stradd 64
getframe1 0
getframe1 4//leftnum
itof
fsub//remainder
callnative absf 1 1
pushf 10
getframe1 1//precision
itof
callnative pow 2 1
fmult
ftoi
setframe1 5//rem
getframe1 5//rem
GetframeP1 8//rem str
itos 32
getframe1 1//precision
GetframeP1 8//rem str
callnative get_length_of_literal_string 1 1
sub
dup
setframe1 7//rem length
push_0
jumple @end_ftos
push_0
setframe1 6//inc
:reloop_addpadding_ftos
getframe1 6//inc
getframe1 7//rem length
jumpge @end_ftos
pushstring "0"
GetStaticP1 245
stradd 64
getframe1 6
add1 1
setframe1 6
jump @reloop_addpadding_ftos
:end_ftos
GetframeP1 8//rem str
GetStaticP1 245
stradd 64
GetStaticP1 245
return 2 1
//<
//> float_to_string2
:float_to_string2(float num,int precision_level)
Function 2 18
getframe1 0
ftoi
setframe1 4//leftnum
pushstring ""
GetStaticP2 262
strcopy 64
getframe1 4//leftnum
GetStaticP2 262
itos 64
pushstring "."
GetStaticP2 262
stradd 64
getframe1 0
getframe1 4//leftnum
itof
fsub//remainder
callnative absf 1 1
pushf 10
getframe1 1//precision
itof
callnative pow 2 1
fmult
ftoi
setframe1 5//rem
getframe1 5//rem
GetframeP1 8//rem str
itos 32
getframe1 1//precision
GetframeP1 8//rem str
callnative get_length_of_literal_string 1 1
sub
dup
setframe1 7//rem length
push_0
jumple @end_ftos2
push_0
setframe1 6//inc
:reloop_addpadding_ftos2
getframe1 6//inc
getframe1 7//rem length
jumpge @end_ftos2
pushstring "0"
GetStaticP2 262
stradd 64
getframe1 6
add1 1
setframe1 6
jump @reloop_addpadding_ftos2
:end_ftos2
GetframeP1 8//rem str
GetStaticP2 262
stradd 64
GetStaticP2 262
return 2 1
//<
//> int to hex
:int_to_hex
Function 1 3
pushstring "0x"
getstaticp2 262
strcopy 64
push_0
setframe1 3
:Loop
getframe1 3
pushb 8
jumpge @loopend
getframe1 0
pushb 28
getframe1 3
mult1 4
sub
CallNative shift_right 2 1
pushb 15
And
Call @hex_index
getstaticp2 262
StrAdd 64
:loopcontinue
getframe1 3
add1 1
setframe1 3
jump @Loop
:loopend
getstaticp2 262
Return 1 1
:hex_index
Function 1 3
getframe1 0
switch [0 @char0]:[1 @char1]:[2 @char2]:[3 @char3]:[4 @char4]:[5 @char5]:[6 @char6]:[7 @char7]:[8 @char8]:[9 @char9]:[10 @chara]:[11 @charb]:[12 @charc]:[13 @chard]:[14 @chare]:[15 @charf]
Jump @charerror
:char0
pushstring "0"
Return 1 1
:char1
pushstring "1"
Return 1 1
:char2
pushstring "2"
Return 1 1
:char3
pushstring "3"
Return 1 1
:char4
pushstring "4"
Return 1 1
:char5
pushstring "5"
Return 1 1
:char6
pushstring "6"
Return 1 1
:char7
pushstring "7"
Return 1 1
:char8
pushstring "8"
Return 1 1
:char9
pushstring "9"
Return 1 1
:chara
pushstring "A"
Return 1 1
:charb
pushstring "B"
Return 1 1
:charc
pushstring "C"
Return 1 1
:chard
pushstring "D"
Return 1 1
:chare
pushstring "E"
Return 1 1
:charf
pushstring "F"
Return 1 1
:charerror
pushstring ""
Return 1 1
//<
//> get info text x axis
:get_info_text_x_axis
function 1 3
//mph 0,fps 1,xyzh 2,forge 3
pushf 0.2150
setframe1 3//x
GetStatic1 21
Push_6//mph/kmh bool
CallNative is_bit_set 2 1
GetStatic1 24
Push_5//fps bool
CallNative is_bit_set 2 1
or
jumpfalse @get_info_text_x_axis_1
getframe1 0
push_0
cmpeq
getframe1 0
push_1
cmpeq
or
not
jumpfalse @get_info_text_x_axis_net
getframe1 3
pushf 0.0680
fadd
setframe1 3
:get_info_text_x_axis_1
GetStatic1 24
Push_2//xyzh bool
CallNative is_bit_set 2 1
jumpfalse @get_info_text_x_axis_net
getframe1 0
push_2
jumpeq @get_info_text_x_axis_net
getframe1 3
pushf 0.0800
fadd
setframe1 3
:get_info_text_x_axis_net
CallNative network_is_in_session 0 1
jumpfalse @end_get_info_text_x_axis
GetGlobalP3 2387574//unk_0x08EB83D2 in freemode
getImm2 300//is map big
jumpfalse @end_get_info_text_x_axis
getframe1 3
pushf 0.0700
fadd
setframe1 3
:end_get_info_text_x_axis
getframe1 3
return 1 1
//<
//> draw_player_money_above_player
:draw_player_money_above_player(player)
function 1 5
GetFrame1 0
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
CallNative player_ped_id 0 1
Push_1
CallNative get_entity_coords 2 3
CallNative vdist 6 1
dup
setframe1 3
pushf 20.0
fcmpgt
not
jumpfalse @end_draw_player_money_above_player
getframe1 3
pushf 0.015
fmult
pushf_-1
fmult
pushf 0.6
fadd
setframe1 3
//0.6 max
//0.3 min
GetFrame1 0
CallNative get_player_ped 1 1
Push_1
CallNative get_entity_coords 2 3
pushf 1.5
fadd
getframep1 4//non static func var
getframep1 5//non static func var
callnative _world_to_screen 5 1
jumpfalse @end_draw_player_money_above_player
Push GetEnum("Chalet-LondonNineteenSixty")
Pushf_1
getframe1 3
Push_1
Push_0
Push_0
Push_1
pushb 102
pushb 152
pushb 104
PushB 255
Call @set_up_draw(int font,float wrap,float scale,bool center,bool right_justify,bool drop_shadow,bool outline,int r,int g,int b,int a)
GetFrame1 0
GetGlobalP3 1581767
GetArrayP2 306
GetImmP1 178
GetImm1 3//search set_multiplayer_hud_cash (player_id function) in freemode
pushstring "$18446744073709551615"
add1 1
itos 21
pushstring "$18446744073709551615"
getframe1 4//non static func var
getframe1 5//non static func var
push_0
Call @display_text(string_text,float_x,float_y,bool IsGtxText)
:end_draw_player_money_above_player
return 1 0
//<
//> get player struct
:get_player_struct(player)
Function 1 3
//tu27
//Get addresses by looking at GET_PLAYER_NAME in XEX
push 0x83C86854
pget
pushb 24
callnative shift_right 2 1
jumpfalse @call_player_ptr_sp
getframe1 0//player
call @get_player_ptr(player)
jumpfalse @player_ptr_sp
getframe1 0//player
call @get_player_ptr(player)
add1 120
return 1 1
:player_ptr_sp
getframe1 0//player
jumpfalse @call_player_ptr_sp
push_0
return 1 1
:call_player_ptr_sp
call @get_player_ptr_sp
return 1 1
:get_player_ptr(player)
function 1 3
//tu27
getframe1 0
pushb 255
and
dup
setframe1 3//pid
pushb 18
jumpge @end_error_get_player_struct
push 0x8397770C
pget//ptr0x35116834_DEREF
getframe1 3//pid
add1 51
push_2
callnative shift_left 2 1//gets fixed ID
add
pget
return 1 1
:end_error_get_player_struct
push_0
return 1 1
:get_player_ptr_sp
function 0 3
//tu27
push 0x83AAC7E4
pget//_0x83AAC7E4_DEREF
add1 4
pget//plus4
dup
jumpfalse @end_error_get_player_struct_drop
add2 3024
pget//player ptr 2
return 0 1
:end_error_get_player_struct_drop
drop
push_0
return 0 1
//<
//> load_texture_no_wait
:load_texture_no_wait(dict)
Function 1 3
GetFrame1 0
CallNative has_streamed_texture_dict_loaded 1 1
not
JumpFalse @keeptexturesloaded
GetFrame1 0
Push_0
CallNative request_streamed_texture_dict 2 0
:keeptexturesloaded
return 1 0
//<
//> load_gxt_no_wait
:load_gxt_no_wait(dict,slot)
Function 2 4
GetFrame1 0
getframe1 1
CallNative has_this_additional_text_loaded 2 1
not
JumpFalse @keepgxtloaded
GetFrame1 0
getframe1 1
CallNative request_additional_text 2 0
:keepgxtloaded
return 2 0
//<
//> play audio
:play_audio(name)
Function 1 3
getframe1 0
push_0
call @play_audio_at_index(name,index)
return 1 0
//<
//> load stream
:load_stream(stream)
function 1 10
callnative is_stream_playing 0 1
jumpfalse @nostreamtostopl
callnative stop_stream 0 0
:nostreamtostopl
push_0
setframe1 6
:load_stream_loop
getframe1 6
pushb 60
jumpgt @end_load_stream_loop
push_0
callnative wait 1 0
getframe1 6
add1 1
setframe1 6
getframe1 0
push_0
callnative load_stream 2 1
jumpfalse @load_stream_loop
push_1
return 1 1
:end_load_stream_loop
push_0
return 1 1
//<
//> play audio at index
:play_audio_at_index(name,index)
Function 2 4
getframe1 1
setstatic1 73//big song start index as song id
push_0
callnative register_script_with_audio 1 0
callnative is_stream_playing 0 1
jumpfalse @nostreamtostopi
callnative stop_stream 0 0
:nostreamtostopi
getframe1 0
GetStaticP2 315//256 char text array
strcopy 64
getframe1 1
SetStatic1 35//load loop extra parrams
PushB 15//load stream
SetStatic1 27//type for model loading
return 2 0
//<
//> get radio station song from index
:get_radio_station_song_from_index(stationid,selid)
function 2 33
getframe1 0
push_2
sub
switch [0 @id_Los_Santos_Rock_Radio]:[1 @id_Non-Stop-Pop_FM]:[2 @id_Radio_Los_Santos]:[3 @id_Channel_X]:[4 @id_West_Coast_Talk_Radio]:[5 @id_Rebel_Radio]:[6 @id_Soulwax_FM]:[7 @id_East_Los_FM]:[8 @id_West_Coast_Classics]:[9 @id_Blue_Ark]:[10 @id_Worldwide_FM]:[11 @id_FlyLo_FM]:[12 @id_The_Lowdown_91.1]:[13 @id_The_Lab]:[14 @id_Radio_Mirror_Park]:[15 @id_Space_103.2]:[16 @id_Vinewood_Boulevard_Radio]:[17 @id_Blaine_County_Radio]
pushstring "NULL"
return 2 1
:id_Los_Santos_Rock_Radio
pushstring "HOLLYWOOD_NIGHTS"
pushstring "NIGHT_MOVES"
pushstring "BIG_LOG"
pushstring "IF_YOU_LEAVE_ME_NOW"
pushstring "LONELY_IS_THE_NIGHT"
pushstring "PHOTOGRAPH"
pushstring "SATURDAY_NIGHTS_ALRIGHT"
pushstring "THE_BREAKUP_SONG"
pushstring "WHAT_A_FOOL_BELIEVES"
pushstring "RADIO_GA_GA"
pushstring "BAKER_STREET"
pushstring "I_WOULDNT_WANT_TO_BE"
pushstring "ALL_THE_THINGS_SHE_SAID"
pushstring "DIRTY_WHITE_BOY"
pushstring "HIGHER_LOVE"
pushstring "IM_FREE"
pushstring "TOO_LATE_FOR_GOODBYES"
pushstring "I_CANT_WAIT"
pushstring "I_DONT_CARE_ANYMORE"
pushstring "OGDENS_NUT_GONE_FLAKE"
pushstring "HEARTBEAT"
pushstring "ROCKIN_ME"
pushstring "RAIN"
Pushb 23
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Non-Stop-Pop_FM
pushstring "GIMME_MORE"
pushstring "GLAMOROUS"
pushstring "WITH_EVERY_HEARTBEAT"
pushstring "ADULT_EDUCATION"
pushstring "WEST_END_GIRLS"
pushstring "SCANDALOUS"
pushstring "EVERYTHING_SHE_WANTS"
pushstring "ONLY_GIRL_IN_THE_WORLD"
pushstring "PURE_SHORES"
pushstring "RYTHM_OF_THE_NIGHT"
pushstring "WORK"
pushstring "DONT_WANNA_FALL_IN_LOVE"
pushstring "MUSIC_SOUNDS_BETTER_WITH_YOU"
pushstring "LADY_HEAR_ME_TONIGHT"
pushstring "ONE_THING"
pushstring "ANTHEM"
Pushb 16
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Radio_Los_Santos
pushstring "HOOD_GONE_LOVE_IT"
pushstring "HOW_IT_WAS"
pushstring "ALI_BOMAYE"
pushstring "SLOW_DOWN"
pushstring "STILL_LIVIN"
pushstring "ILLUMINATE"
pushstring "LIFE_OF_A_MACK"
pushstring "R_CALI"
pushstring "ADHD"
pushstring "BASSHEADS"
pushstring "IM_A_REAL_ONE"
pushstring "SAY_THAT_THEN"
pushstring "SMOKIN_AND_RIDIN"
pushstring "TOO_HOOD"
pushstring "HOLD_UP"
Pushb 15
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Channel_X
pushstring "THE_MOUTH_DONT_STOP"
pushstring "MY_WAR"
pushstring "BLOWN_AWAY"
pushstring "LEXICON_DEVIL"
pushstring "ROCK_HOUSE"
pushstring "SILENT_MAJORITY"
pushstring "LIFE_OF_CRIME"
pushstring "AMOEBA"
pushstring "PERVERT"
pushstring "BORED_OF_YOU"
pushstring "WHATS_NEXT"
pushstring "SUBLIMINAL"
Pushb 12
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_West_Coast_Talk_Radio
pushstring "MONO_CHAKRA_ATTACK_PART_1"
pushstring "MONO_FERNANDO_SHOW_1"
pushstring "MONO_CHATTERSPHERE"
Push_3
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Rebel_Radio
pushstring "ARE_YOU_SURE_HANK"
pushstring "GET_OUTTA_MY_CAR"
pushstring "IF_WANT_TO_GET_HEAVEN"
pushstring "CANT_HARDLY_STAND"
pushstring "I_AINT_LIVING_LONG_LIKE_THIS"
pushstring "IT_WONT_BE_LONG_HATING_YOU"
pushstring "WHISKEY_RIVER"
pushstring "THE_GENERAL_LEE"
pushstring "YOU_TOOK_ALL_THE_RAMBLIN_OUT"
pushstring "CONVOY"
pushstring "IT_DONT_HURT_ANYMORE"
Pushb 11
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Soulwax_FM
pushstring "SOULWAX_FM_FINAL_MIX_32K"
pushi24 18500//Stock
pushi24 160000//Fatal Error
pushi24 29200//Let's Beam Him Up
pushi24 373000//Mingi
pushi24 532000//The Strange Art (Inflagranti Remix)
pushi24 623000//El Sucu Tucu
pushi24 845000//Naive Response
pushi24 965000//Gabriel
pushi24 1181000//Body Music
pushi24 1291000//Lazer Beams
pushi24 1394000//Tryouts
pushi24 1478000//Nothing But Pleasure
pushi24 1795000//Arp #1
pushi24 1836000//Synrise
pushi24 2037000//Mr. Croissant Taker
pushi24 2141000//Plush (Jacques Lu Cont Remix)
pushi24 2233500//Shockwave (Gesaffelstein Remix)
pushi24 2334500//After You
Pushb 19
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_East_Los_FM
pushstring "MEX_FINAL_MIX_32"
pushi24 9750//El Cocaino
pushi24 187400//Es-Toy
pushi24 274000//Criminal Sound (El Hijo De La Cumbia Remix)
pushi24 367500//Radio Capital
pushi24 522500//Autos, Moda y Rock and Roll
pushi24 640000//El Tatuado
pushi24 842000//Se Me Perdió La Cadenita
pushi24 992500//Fiebre de Jack
pushi24 1232000//Pachuco
pushi24 1403500//El Sonidito
pushi24 1577300//Fresco
pushi24 1793000//Maldito
pushi24 1976000//Tengo El Don
pushi24 2123300//La Granja
pushi24 2353000//El Rey Y Yo
Pushb 16
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_West_Coast_Classics
pushstring "STILL_D_R_E"
pushstring "STRAIGHT_UP_MENACE"
pushstring "WHAT_WOULD_YOU_DO"
pushstring "YOU_KNOW_HOW_WE_DO"
pushstring "MIND_PLAYING_TRICKS"
pushstring "AMBITIONZ_AZ_A_RIDAH"
pushstring "APPETITE_FOR_DESTRUCTION"
pushstring "C_WALK"
pushstring "GANGSTA_GANGSTA"
pushstring "THE_NEXT_EPISODE"
pushstring "WHAT_YOU_WANNA_DO"
pushstring "LATE_NIGHT_HYPE"
pushstring "NOTHIN_BUT_THE_CAVI_HIT"
pushstring "SO_YOU_WANT_TO_BE_A_GANGSTER"
pushstring "DOLLAZ_AND_SENSE"
pushstring "LIKE_A_PIANO"
pushstring "GIN_AND_JUICE"
Pushb 17
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Blue_Ark
pushstring "DISCO_DEVIL"
pushstring "I_AM_A_MADMAN"
pushstring "CHAPTER3"
pushstring "CRAZY_GIRL"
pushstring "NIGHT_NURSE"
pushstring "NOBODY_MOVE_GET_HURT"
pushstring "SONS_OF_SLAVES"
pushstring "MONEY_IN_MY_POCKET"
pushstring "KINGSTON_BE_WISE"
pushstring "PSYCHO"
pushstring "WE_NEVER_FEAR_DEM"
pushstring "GUN_SHOT_A_FIRE"
pushstring "GRUMBLIN_DUB"
pushstring "ODD_RAS"
Pushb 14
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Worldwide_FM
pushstring "G_P_FINAL_MASTER_PART_ONE"
pushstring "G_P_FINAL_MASTER_PART_TWO"
push_0//Mirror Maru 158000
pushi24 174000//Cold Air 304000
pushi24 311000//The Place 518000
pushi24 519000//Beginning 767000
pushi24 784000//Ghost 988000
pushi24 990500//Forest Funk 1127000
pushi24 1128000//Throw Down 1320000
pushi24 1328000//You And The Music 1598000
pushi24 1617000//Thousand Finger Man 1816000
pushi24 1825000//Harm in Change 1945000
pushi24 1946000//Breaking 2160000
pushi24 2160900//Waveforms 2332000
push_0//Nissim 172000
pushi24 192000//Harpoon Land 354000
pushi24 358000//Brand New Revolution 532000
pushi24 551000//Live Your Life (MELO-X MOTHERLAND GOD MIX) 710000
pushi24 726000//Lovery (Slow Cuban Vibe Mix) 980000
pushi24 999000//1759 (Outro) 1221000
pushi24 1221000//Forgotten Notes end
Pushb 21
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_FlyLo_FM
pushstring "FLYLO_32K"
push_0//Getting There 150000
pushi24 151000//Crystals 227000
pushi24 229000//Crosswerved 260000
pushi24 292500//Be Spin 360000
pushi24 366800//See Thru To U 400000
pushi24 417000//The Diddler 485000
pushi24 523000//Computer Face 566000
pushi24 574800//100hm 650000
pushi24 659000//The Kill 812000
pushi24 843500//Garbage 1033000
pushi24 1039300//Elevators (Me & You) 1190000
pushi24 1190000//Evil Grin 1291000
pushi24 1355000//Catapult Man 1385000
pushi24 1409000//Encoded Flow 1473000
pushi24 1487000//She Died There 1626000
pushi24 1627000//It's Wack 1741500
pushi24 1808800//Oh Sheit It's X 1964000
pushi24 1964800//Stonecutters 2050000
pushi24 2050000//23 2252000
pushi24 2254000//Stalker Ha 2348000
pushi24 2377000//Windowlicker end
Pushb 22
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_The_Lowdown_91.1
pushstring "DO_IT_TIL_YOURE_SATISFIED"
pushstring "O_O_H_CHILD"
pushstring "READY_OR_NOT"
pushstring "SMILING_FACES"
pushstring "VIVA_TIRADO"
pushstring "CALIFORNIA_SOUL"
pushstring "I_GET_LIFTED"
pushstring "THE_CISCO_KID"
pushstring "CRUISIN"
pushstring "HERCULES"
pushstring "RUBBER_BAND"
pushstring "ASHLEYS_ROACHCLIP"
Pushb 12
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_The_Lab
pushstring "LAB_P1"
pushstring "LAB_P2"
pushi24 15700//Play It Cool 215000
pushi24 267000//Trouble 470000
pushi24 535000//Speedline Miracle Masterpiece 757000
pushi24 788500//Welcome To Los Santos 1010000
pushi24 1043500//K.Y.S.A. 1300000
pushi24 1396000//Fast Life 1590000
pushi24 1622000//20's 50's 100's 1878000
pushi24 1958000//Lock & Load end
pushi24 52000//Born Bad 252000
pushi24 289000//California 514000
pushi24 531000//Leave 701000
pushi24 738000//Fetti 971000
pushi24 1022300//Wanderer 1257000
Pushb 15
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Radio_Mirror_Park
pushstring "BOOGIE_IN_ZERO_GRAVITY"
pushstring "SHINE_A_LIGHT"
pushstring "SOMETIMES"
pushstring "DO_YOU_BELIEVE"
pushstring "LITTLE_WHITE_LIE"
pushstring "SHOOTING_HOLES"
pushstring "LUCKY_BOY"
pushstring "DARK_MATTER"
pushstring "FEEL_THE_SAME"
pushstring "FROM_NOWHERE"
pushstring "HEART_IN_THE_PIPES"
pushstring "JASMINE"
pushstring "SO_MANY_DETAILS"
pushstring "DONT_COME_CLOSE"
pushstring "PSYCHIC_CITY"
pushstring "HIGH_PRESSURE"
pushstring "OLD_LOVE"
pushstring "SLEEPWALKING"
pushstring "THE_SET_UP"
pushstring "CHANGE_OF_COAST"
pushstring "COLOURS"
pushstring "NOWHERE_TO_GO"
Pushb 22
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Space_103.2
pushstring "IM_IN_LOVE"
pushstring "CUTIE_PIE"
pushstring "GIVE_IT_TO_ME_BABY"
pushstring "SKELETONS"
pushstring "HEARTBREAKER"
pushstring "ID_RATHER_BE_WITH_YOU"
pushstring "TONIGHT"
pushstring "YOURE_THE_ONE_FOR_ME"
pushstring "FUNKASIZE_YOU"
pushstring "HEART_BEAT"
pushstring "PARTY_ALL_THE_TIME"
pushstring "CANT_HOLD_BACK"
pushstring "HABOGLABOTRIBIN"
Pushb 13
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Vinewood_Boulevard_Radio
pushstring "COCAINE"
pushstring "CRAWLING_AFTER_YOU"
pushstring "FIRE_DOESNT_BURN_ITSELF"
pushstring "SLEEPWALKER"
pushstring "THIS_MYSTIC_DECADE"
pushstring "CALIFORNIA_GIRLS"
pushstring "NINE_IS_GOD"
pushstring "BLACK_GREASE"
pushstring "DIDDY_WAH_DIDDY"
pushstring "HYSTERIA"
pushstring "THE_DREAM"
pushstring "WET_BLANKET"
Pushb 12
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:id_Blaine_County_Radio
pushstring "MONO_BCR_COMMUNITY_HOUR"
pushstring "MONO_BEYOND_INSEMINATION"
pushstring "MONO_BLESS_YOUR_HEART"
Push_3
Getframep1 4
FromStack
jump @end_get_radio_station_song_from_index
:end_get_radio_station_song_from_index
Getframep1 4
getframe1 1
push_1
sub
GetImmP
pget
return 2 1
//<
//> mflags to enum
:flags_to_enum
Function 1 3
getframe1 0
switch [1 @flags_to_enum0]:[2 @flags_to_enum1]:[4 @flags_to_enum2]:[8 @flags_to_enum3]:[10 @flags_to_enum4]
push_0
return 1 1
:flags_to_enum0
push_1
return 1 1
:flags_to_enum1
push_2
return 1 1
:flags_to_enum2
push_3
return 1 1
:flags_to_enum3
push_4
return 1 1
:flags_to_enum4
push_5
return 1 1
//<
//> hflags to enum
:hflags_to_enum
Function 1 3
getframe1 0
switch [1 @hflags_to_enum0]:[2 @hflags_to_enum1]:[4 @hflags_to_enum2]:[8 @hflags_to_enum3]:[12 @hflags_to_enum4]
push_0
return 1 1
:hflags_to_enum0
push_1
return 1 1
:hflags_to_enum1
push_2
return 1 1
:hflags_to_enum2
push_3
return 1 1
:hflags_to_enum3
push_4
return 1 1
:hflags_to_enum4
push_5
return 1 1
//<
//> dflags to enum
:dflags_to_enum
Function 1 3
getframe1 0
switch [1 @dflags_to_enum0]:[2 @dflags_to_enum1]:[4 @dflags_to_enum2]:[5 @dflags_to_enum3]
push_0
return 1 1
:dflags_to_enum0
push_1
return 1 1
:dflags_to_enum1
push_2
return 1 1
:dflags_to_enum2
push_3
return 1 1
:dflags_to_enum3
push_4
return 1 1
//<
//> enum to mflags
:enum_to_mflags
Function 1 3
getframe1 0
switch [1 @enum_to_mflags1]:[2 @enum_to_mflags2]:[3 @enum_to_mflags4]:[4 @enum_to_mflags8]:[5 @enum_to_mflags10]
push_0
return 1 1
:enum_to_mflags1
push_1
return 1 1
:enum_to_mflags2
push_2
return 1 1
:enum_to_mflags4
push_4
return 1 1
:enum_to_mflags8
pushb 8
return 1 1
:enum_to_mflags10
pushb 10
return 1 1
//<
//> enum to hflags
:enum_to_hflags
Function 1 3
getframe1 0
switch [1 @enum_to_hflags1]:[2 @enum_to_hflags2]:[3 @enum_to_hflags4]:[4 @enum_to_hflags8]:[5 @enum_to_hflags12]
push_0
return 1 1
:enum_to_hflags1
push_1
return 1 1
:enum_to_hflags2
push_2
return 1 1
:enum_to_hflags4
push_4
return 1 1
:enum_to_hflags8
pushb 8
return 1 1
:enum_to_hflags12
pushb 12
return 1 1
//<
//> enum to dflags
:enum_to_dflags
Function 1 3
getframe1 0
switch [1 @enum_to_dflags1]:[2 @enum_to_dflags2]:[3 @enum_to_dflags4]:[4 @enum_to_dflags5]
push_0
return 1 1
:enum_to_dflags1
push_1
return 1 1
:enum_to_dflags2
push_2
return 1 1
:enum_to_dflags4
push_4
return 1 1
:enum_to_dflags5
push_5
return 1 1
//<
//> index to aihandling
:index_to_aihandling
Function 1 3
getframe1 0
switch [0 @aihandlingenumindex0]:[1 @aihandlingenumindex1]:[2 @aihandlingenumindex2]:[3 @aihandlingenumindex3]
push_0
return 1 1
:aihandlingenumindex0
push 0xA4A256CF//SPORTS_CAR
return 1 1
:aihandlingenumindex1
push 0xBE32B83A//AVERAGE
return 1 1
:aihandlingenumindex2
push 0x856B2468//CRAP
return 1 1
:aihandlingenumindex3
push 0x428100C5//TRUCK
return 1 1
//<
//> aihandling to index
:aihandling_to_index
Function 1 3
getframe1 0
switch [0xA4A256CF @aihandlingindex0]:[0xBE32B83A @aihandlingindex1]:[0x856B2468 @aihandlingindex2]:[0x428100C5 @aihandlingindex3]
push_0
return 1 1
:aihandlingindex0
push_0//SPORTS_CAR
return 1 1
:aihandlingindex1
push_1//AVERAGE
return 1 1
:aihandlingindex2
push_2//CRAP
return 1 1
:aihandlingindex3
push_3//TRUCK
return 1 1
//<
//> memcopy bits
:memcopy_bits(int sourcebits,indexstart,indexend,int* destbits,deststart)
function 5 10
getframe1 1//source index start
setframe1 10//inc
:memcopybitsloop
getframe1 10//inc
getframe1 2//source index end
jumpge @endmemcopybitsloop
getframe1 3//dest bits pointer
getframe1 4//dest start
getframe1 10//inc
getframe1 1//source index start
sub
add
getframe1 0//source bits
getframe1 10//inc
CallNative is_bit_set 2 1
call @set_bit_inline(var*,bit,bool set)
getframe1 10
add1 1
setframe1 10
jump @memcopybitsloop
:endmemcopybitsloop
return 5 0
//<
//> flag index to bit index
:index_to_bits
function 1 3
getframe1 0
switch [0 @index_to_bits0]:[1 @index_to_bits1]:[2 @index_to_bits2]:[3 @index_to_bits3]:[4 @index_to_bits4]:[5 @index_to_bits5]:[6 @index_to_bits6]:[7 @index_to_bits7]
push_0
return 1 1
:index_to_bits0
pushb 28
return 1 1
:index_to_bits1
pushb 24
return 1 1
:index_to_bits2
pushb 20
return 1 1
:index_to_bits3
pushb 16
return 1 1
:index_to_bits4
pushb 12
return 1 1
:index_to_bits5
pushb 8
return 1 1
:index_to_bits6
push_4
return 1 1
:index_to_bits7
push_0
return 1 1
//<
//> mod negitive
:mod_negitive
function 2 3
getframe1 0
getframe1 1
mod
setframe1 4
getframe1 4
push_0
jumpge @ret_mod_negitive
getframe1 4
getframe1 1
add
setframe1 4
:ret_mod_negitive
getframe1 4
return 2 1
//<
//> GetGlobalPtrIndex
:GetGlobalIndex(global,*out_global)
function 2 3
getframe1 0
pushb 18
callnative shift_right 2 1//GetGlobalPageIndex
mult1 4
push 0x83DDD930//tu27 globals
add
pget
dup
setframe1 4//page pointer
pushstring "~r~Error:~s~ Global Does not exist."
pushs 5000
call @bool printfalse(bool to_print,string text,int ms)
jumpfalse @end_GetGlobalIndex
getframe1 0
push 0x0003FFFF
and
Push_2
CallNative shift_left 2 1
getFrame1 4
Add
getframe1 1
pset
push_1
return 2 1
:end_GetGlobalIndex
push_0
return 2 1
//<
//> degrees to radians
:degToRad
function 0 2
pushf 3.14159265359
pushf 180
fdiv
return 0 1
//<
//> radians to degrees
:radToDeg
function 0 2
pushf 180
pushf 3.14159265359
fdiv
return 0 1
//<
//> Euler to Quaternion
:Euler_to_Quaternion
function 3 12
//needs to be radians
//0 yaw/x
//1 pitch/y
//2 roll/z
//5 cosYawOver2
//6 sinYawOver2
//7 cosPitchOver2
//8 sinPitchOver2
//9 cosRollOver2
//10 sinRollOver2
//11 x
//12 y
//13 z
//14 w
getframe1 0//yaw
pushf 0.5
fmult
dup
CallNative cos 1 1
setframe1 5//cosYawOver2
CallNative sin 1 1
SetFrame1 6//sinYawOver2
getframe1 1//pitch
pushf 0.5
fmult
dup
CallNative cos 1 1
setframe1 7//cosPitchOver2
CallNative sin 1 1
SetFrame1 8//sinPitchOver2
getframe1 0//roll
pushf 0.5
fmult
dup
CallNative cos 1 1
setframe1 9//cosRollOver2
CallNative sin 1 1
SetFrame1 10//sinRollOver2
getframe1 5//cosYawOver2
getframe1 7//cosPitchOver2
fmult
getframe1 9//cosRollOver2
fmult
getframe1 6//sinYawOver2
getFrame1 8//sinPitchOver2
fmult
getFrame1 10//sinRollOver2
fmult
fadd
setframe1 11//x
getframe1 5//cosYawOver2
getframe1 7//cosPitchOver2
fmult
getFrame1 10//sinRollOver2
fmult
getframe1 6//sinYawOver2
getFrame1 8//sinPitchOver2
fmult
getframe1 9//cosRollOver2
fmult
fsub
setframe1 12//y
getframe1 5//cosYawOver2
getFrame1 8//sinPitchOver2
fmult
getframe1 9//cosRollOver2
fmult
getframe1 6//sinYawOver2
getframe1 7//cosPitchOver2
fmult
getFrame1 10//sinRollOver2
fmult
fadd
setframe1 13//z
getframe1 6//sinYawOver2
getframe1 7//cosPitchOver2
fmult
getframe1 9//cosRollOver2
fmult
getframe1 5//cosYawOver2
getFrame1 8//sinPitchOver2
fmult
getFrame1 10//sinRollOver2
fmult
fsub
setframe1 14//w
getframe1 11//x
getframe1 12//y
getframe1 13//z
getframe1 14//w
return 3 4
//<
//> rotation_look_at_point
:rotation_look_at_point(x,y,z,rx,ry,rz)
function 6 2
getframe1 1//y
getframe1 2//z
callnative atan2 2 1
//rotx
getframe1 0//x
getframe1 3//rx
callnative cos 1 1
fmult
getframe1 2//z
callnative atan2 2 1
//roty
getframe1 3//rx
callnative cos 1 1
getframe1 3//rx
callnative sin 1 1
getframe1 2//ry
callnative sin 1 1
fmult
callnative atan2 2 1
//rotz
return 6 3
//<
//> pixel functions
//> putpixel
:putpixel
Function 3 5
//0 x1
//1 y1
//2 color
getframe1 0//x1
getframe1 1//y1
call @get_coords_from_pixel
call @get_pixel_width_and_hight
getframep1 2//color
push_0//r
call @get_ubyte_in_byte_array(int*,byteindex)
getframep1 2//color
push_1//g
call @get_ubyte_in_byte_array(int*,byteindex)
getframep1 2//color
push_2//b
call @get_ubyte_in_byte_array(int*,byteindex)
getframep1 2//color
push_3//a
call @get_ubyte_in_byte_array(int*,byteindex)
CallNative draw_rect 8 0//header rect
return 3 0
//<
//> get_pixel_width_and_hight
:get_pixel_width_and_hight
function 0 4
//2 sx
//3 sy
GetFrameP1 2//sx
GetFrameP1 3//sy
CallNative get_screen_resolution 2 0
pushf_1
getframe1 2//sx
itof
fdiv//width
pushf_1
getframe1 3//sy
itof
fdiv//height
return 0 2
//<
//> get_pixel_from_coords
:get_pixel_from_coords
function 2 6
//0 x
//1 y
//4 sx
//5 sy
GetFrameP1 4//sx
GetFrameP1 5//sy
CallNative get_screen_resolution 2 0
getframe1 4//sx
itof
getframe1 0//x
fmult
callnative floor 1 1
getframe1 5//sy
itof
getframe1 1//y
fmult
callnative floor 1 1
return 2 2
//<
//> get_coords_from_pixel
:get_coords_from_pixel
function 2 6
//0 x
//1 y
//4 sx
//5 sy
GetFrameP1 4//sx
GetFrameP1 5//sy
CallNative get_screen_resolution 2 0
pushf_1
getframe1 4//sx
fdiv
getframe1 0//x
fmult
pushf_1
getframe1 5//sy
fdiv
getframe1 1//y
fmult
return 2 2
//<
//<
//> draw line
:draw_line
function 5 12
//0 x1 float
//1 y1 float
//2 x2 float
//3 y2 float
//4 color rgba byte array
//7 delta_x
//8 delta_y
//9 ix
//10 iy
//11 error
getframe1 0//x1
getframe1 1//y1
call @get_pixel_from_coords
push_2
getframep1 0//x1
fromstack
getframe1 2//x2
getframe1 3//y2
call @get_pixel_from_coords
push_2
getframep1 2//x2
fromstack
getframe1 2//x2
getframe1 0//x1
sub
setframe1 7//delta x
getframe1 7//delta x
push_0
cmpgt
getframe1 7//delta x
push_0
cmplt
sub
setframe1 9//ix
getframe1 7//delta x
callnative absi 1 1
push_1
callnative shift_left 2 1
setframe1 7//delta x
getframe1 3//x2
getframe1 1//x1
sub
setframe1 8//delta y
getframe1 8//delta y
push_0
cmpgt
getframe1 8//delta y
push_0
cmplt
sub
setframe1 10//iy
getframe1 8//delta y
callnative absi 1 1
push_1
callnative shift_left 2 1
setframe1 8//delta y
getframe1 0//x1
getframe1 1//y1
getframe1 4//color
call @putpixel
getframe1 7//delta x
getframe1 8//delta y
cmpge
jumpfalse @delta_x>=delta_y_else
getframe1 8//delta y
getframe1 7//delta x
push_1
callnative shift_right 2 1
sub
setframe1 11//error
:while(x1!=x2)
getframe1 0//x1
getframe1 2//x2
cmpne
jumpfalse @end_while(x1!=x2)
getframe1 11//error
push_0
cmpge
getframe1 11//error
getframe1 9//ix
push_0
cmpgt
or
and
jumpfalse @x_else_do_nothing
getframe1 11//error
getframe1 7//delta x
sub
setframe1 11//error
getframe1 1//y1
getframe1 10//iy
add
setframe1 1//y1
:x_else_do_nothing
getframe1 11//error
getframe1 8//delta y
add
setframe1 11//error
getframe1 0//x1
getframe1 9//ix
add
setframe1 0//x1
getframe1 0//x1
getframe1 1//y1
getframe1 4//color
call @putpixel
jump @while(x1!=x2)
:end_while(x1!=x2)
return 5 0
:delta_x>=delta_y_else
getframe1 7//delta x
getframe1 8//delta y
push_1
callnative shift_right 2 1
sub
setframe1 11//error
:while(y1!=y2)
getframe1 1//y1
getframe1 3//y2
cmpne
jumpfalse @end_while(y1!=y2)
getframe1 11//error
push_0
cmpge
getframe1 11//error
getframe1 10//iy
push_0
cmpgt
or
and
jumpfalse @y_else_do_nothing
getframe1 11//error
getframe1 8//delta y
sub
setframe1 11//error
getframe1 0//x1
getframe1 9//ix
add
setframe1 0//x1
:y_else_do_nothing
getframe1 11//error
getframe1 7//delta x
add
setframe1 11//error
getframe1 1//y1
getframe1 10//iy
add
setframe1 1//y1
getframe1 0//x1
getframe1 1//y1
getframe1 4//color
call @putpixel
jump @while(y1!=y2)
:end_while(y1!=y2)
return 5 0
//<
//> load_scaleform(string scaleform)
:load_scaleform
function 1 4
setframename 0 Scaleform_STR
setframename 3 LoadLoop
getframe1 Scaleform_STR
callnative has_scaleform_movie_loaded 1 1
JumpTrue @end_load_scaleform
getframe1 Scaleform_STR
callnative request_scaleform_movie 1 1
drop
push_-1
setframe1 LoadLoop
:loop_load_scaleform
getframe1 LoadLoop
pushb 60
jumpgt @error_load_scaleform
getframe1 LoadLoop
add1 1
setframe1 LoadLoop
getframe1 Scaleform_STR
callnative has_scaleform_movie_loaded 1 1
JumpFalse @loop_load_scaleform
:end_load_scaleform
return 1 0
:error_load_scaleform
pushstring "~r~Error:~s~ Scaleform could not load."
pushs 5000
call @print(string text,int ms)
return 1 0
//<
//> get_string_height
:get_string_height
function 6 10
setframename 0 str
setframename 1 font
setframename 2 scale
setframename 3 wrap
setframename 4 x
setframename 5 y
setframename 8 str_height
setframename 9 wrapcount
getframe1 scale
getframe1 font
callnative _get_string_height 2 1
setframe1 str_height
GetFrame1 font
CallNative set_text_font 1 0
PushF_0
getframe1 wrap
CallNative set_text_wrap 2 0
PushF_1
getframe1 scale
CallNative set_text_scale 1 0
PushString "STRING"
callnative _set_text_gxt_entry 1 0
GetFrame1 str
CallNative _add_text_component_string 1 0
GetFrame1 x
GetFrame1 y
callnative _get_wrap_count 2 1
setframe1 wrapcount
getframe1 str_height
getframe1 wrapcount
IToF
fmult
return 6 1
//<
//> SetBonnetCamsToFirstPerson
:SetBonnetCamsToFirstPerson
function 1 6
SetFrameName 0 IsDlc
SetFrameName 3 VehicleCount
SetFrameName 4 MetaAddr
SetFrameName 5 i
getframe1 IsDlc
jumpfalse @BonnetCamsToFirstPerson_IsNormal
push GetEnum("MetaVehicleCount")
SetFrame1 VehicleCount
call @MetaDlcVehiclesAddressSearch
dup
SetFrame1 MetaAddr
push_0
jumpne @SetBonnetCamsToFirstPerson_Dlc
return 1 0
:BonnetCamsToFirstPerson_IsNormal
push GetEnum("MetaVehicleCount")
SetFrame1 VehicleCount
push GetEnum("MetaVehicleStartAddr")
SetFrame1 MetaAddr
:SetBonnetCamsToFirstPerson_Dlc
Push_0
SetFrame1 i
:vehmetabonnetloop
GetFrame1 i
GetFrame1 VehicleCount
jumpge @endvehmetabonnetloop
push GetHash("BIKE_POV_CAMERA")//4EBFC84A
GetFrame1 i
push GetEnum("MetaVehicleItemSize")
mult
add2 540//bonnetCameraNameIndex
getframe1 MetaAddr
add
pset
GetFrame1 i
add1 1
SetFrame1 i
jump @vehmetabonnetloop
:endvehmetabonnetloop
return 1 0
//<