Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
xelono

(HELP) vending machines on custom scm script

Recommended Posts

xelono

How to make the food and drink vending machines (CJ_EXT_CANDY and CJ_EXT_SPRUNK) work in this .scm?

 

PS: Only CJ_EXT_CANDY and CJ_EXT_SPRUNK (the other machines were deleted from gta_int.img by map cleanner)

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013DEFINE OBJECTS 3DEFINE OBJECT SANNY BUILDER 3.2.2     DEFINE OBJECT BENZO                    // Object number -1DEFINE OBJECT HEALTH                   // Object number -2DEFINE MISSIONS 0DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA scriptDEFINE UNKNOWN_EMPTY_SEGMENT 0DEFINE UNKNOWN_THREADS_MEMORY 0//-------------MAIN---------------thread 'MAIN' fade 0 0 03DE: set_pedestrians_density_multiplier_to 0.0 01EB: set_traffic_density_multiplier_to 0.0 042C: set_total_missions_to 0 030D: set_max_progress 187 01F0: set_max_wanted_level_to 0 0581: enable_radar 0 0826: enable_hud 0 set_wb_check_to 0 00C0: set_current_time_hours_to 13 minutes_to 0 $7 = 913.5468 $6 = -2202.747 $5 = 10.077 04E4: refresh_game_renderer_at $7 $6 Camera.SetAtPos($7, $6, $5)062A: change_float_stat 165 to 500.0 062A: change_float_stat 23 to 500.0 062A: change_float_stat 21 to 0.0 062A: change_float_stat 163 to 500.0 062A: change_float_stat 160 to 500.0 062A: change_float_stat 229 to 500.0 062A: change_float_stat 223 to 500.0 062A: change_float_stat 230 to 500.0 0629: change_integer_stat 181 to 4 0629: change_integer_stat 68 to 0 062A: change_float_stat 69 to 250.0 062A: change_float_stat 70 to 250.0 062A: change_float_stat 71 to 250.0 062A: change_float_stat 72 to 250.0 062A: change_float_stat 73 to 250.0 062A: change_float_stat 74 to 250.0 062A: change_float_stat 75 to 250.0 062A: change_float_stat 76 to 250.0 062A: change_float_stat 77 to 250.0 062A: change_float_stat 78 to 250.0 0997: set_total_respect_points_to 1339 0998: add_respect 700 $PLAYER_CHAR = Player.Create(0, $7, $6, $5)07AF: $PLAYER_GROUP = player $PLAYER_CHAR group $PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)set_weather 0 Camera.SetBehindPlayerActor.Angle($PLAYER_ACTOR) = 103.612Player.SetClothes($PLAYER_CHAR, "BBALLJACKRSTAR", "BBJACK", Torso)Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)Player.Build($PLAYER_CHAR)Player.CanMove($PLAYER_CHAR) = True041E: set_radio_station 12 07FE: set_actor $PLAYER_ACTOR fighting_style_to 13 moves 6 016C: restart_if_wasted_at $7 $6 $5 angle 0.0 town_number 0 Model.Load(#SADLER)Model.Load(#LAEMT1):MAIN_518wait 0 if    Model.Available(#SADLER)else_jump @MAIN_518 $4 = Car.Create(#SADLER, $7, $6, $5)036A: put_actor $PLAYER_ACTOR in_car $4 fade 1 1000 wait 0 09C7: change_player $PLAYER_CHAR model_to #LAEMT1 03E6: remove_text_box wait 10 0A95: enable_thread_saving 032B: [email protected] = create_weapon_pickup #M4 type 15 ammo 50 at 890.392 -2211.269 11.1229 032B: [email protected] = create_weapon_pickup #SHOTGSPA type 15 ammo 15 at 800.7393 -2878.911 66.1393 032B: [email protected] = create_weapon_pickup #M4 type 15 ammo 45 at 842.239 -2678.06 77.7616 032B: [email protected] = create_weapon_pickup #CHROMEGUN type 15 ammo 10 at 677.7767 -2255.5 52.7103 032B: [email protected] = create_weapon_pickup #TEARGAS type 15 ammo 2 at 803.5418 -2877.779 66.1393 032B: [email protected] = create_weapon_pickup #KNIFECUR type 15 ammo 1 at 889.9594 -2212.524 11.1197 032B: [email protected] = create_weapon_pickup #AK47 type 15 ammo 36 at 718.7582 -2665.808 93.0014 032B: [email protected] = create_weapon_pickup #AK47 type 15 ammo 32 at 716.2428 -2705.776 92.62 032B: [email protected] = create_weapon_pickup #SHOTGSPA type 15 ammo 15 at 577.626 -2718.228 94.7967 032B: [email protected] = create_weapon_pickup #CHROMEGUN type 15 ammo 13 at 739.228 -2680.652 92.1357 032B: [email protected] = create_weapon_pickup #AK47 type 15 ammo 29 at 224.8531 -2636.922 50.7201 032B: [email protected] = create_weapon_pickup #SILENCED type 15 ammo 10 at 178.9384 -2640.373 22.688 032B: [email protected] = create_weapon_pickup #DESERT_EAGLE type 15 ammo 20 at 279.8959 -2595.612 52.15 032B: [email protected] = create_weapon_pickup #COLT45 type 15 ammo 20 at 128.5204 -2766.782 5.8354 032B: [email protected] = create_weapon_pickup #COLT45 type 15 ammo 20 at 252.4552 -2890.772 53.8336 032B: [email protected] = create_weapon_pickup #MICRO_UZI type 15 ammo 43 at 742.4667 -2283.56 50.5842 032B: [email protected] = create_weapon_pickup #MICRO_UZI type 15 ammo 42 at 293.0169 -2279.957 56.0981 032B: [email protected] = create_weapon_pickup #CHROMEGUN type 15 ammo 10 at 220.3447 -2328.887 50.433 032B: [email protected] = create_weapon_pickup #NVGOGGLES type 12 ammo 1 at 816.1986 -2872.245 67.1954 [email protected] = Pickup.Create(#ARMOUR, 15, 1, 603.7983, 1019.697)[email protected] = Pickup.Create(#HEALTH, 15, 886.4949, -2217.674, 10.8894)[email protected] = Pickup.Create(#HEALTH, 15, 817.1942, -2879.082, 67.1898)[email protected] = Pickup.Create(#HEALTH, 15, 496.9258, -2432.841, 176.5159)[email protected] = Pickup.Create(#HEALTH, 15, 290.7611, -2279.613, 52.8638)[email protected] = Pickup.Create(#HEALTH, 15, 131.604, -2195.108, 6.27)[email protected] = Pickup.Create(#HEALTH, 15, 590.6572, -2791.275, 93.0786)[email protected] = Pickup.Create(#HEALTH, 15, 297.0189, -2847.7, 53.6475)[email protected] = Pickup.Create(#HEALTH, 15, 253.4369, -2895.071, 58.12)[email protected] = Pickup.Create(#HEALTH, 15, 224.5266, -2636.56, 51.32)[email protected] = Pickup.Create(#HEALTH, 15, 290.9553, -2279.393, 52.8638)wait 100 0A95: enable_thread_saving 014B: [email protected] = init_car_generator #SADLER color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 470.4672 -2757.931 111.2656 angle 64.857 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #SADLsh*t color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 578.9804 -2716.794 95.3912 angle 87.145 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #FORKLIFT color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 887.2109 -2232.825 10.0802 angle 320.6476 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #BOBCAT color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 770.0316 -2716.973 90.9436 angle 130.4339 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #RANCHER color -1 -1 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 806.5397 -2847.724 63.0971 angle 291.9072 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #BOXVILLE color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 259.387 -2284.514 50.5518 angle 90.193 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #MESA color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 619.8688 -2783.551 90.66 angle 209.3256 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #WASHING color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 270.2474 -2290.767 50.5326 angle 107.5878 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #MARQUIS color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 951.9825 -2200.998 8.9042 angle 88.9257 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #FORKLIFT color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 277.8033 -2911.725 51.1247 angle 67.1181 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 014B: [email protected] = init_car_generator #SUPERGT color 105 105 force_spawn 1 alarm 0 door_lock 0 min_delay 0 max_delay 1500000 at 890.8398 -2224.727 10.077 angle 89.697 014C: set_parked_car_generator [email protected] cars_to_generate_to 101 :INTERFACEthread 'INTERFACE' wait 0 0826: enable_hud 0 $PLAYER_HELTH1 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH2 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH3 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH4 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH5 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH6 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH7 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH8 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH9 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH10 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH11 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH12 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH13 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH14 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH15 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH16 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH17 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH18 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH19 = Actor.Health($PLAYER_ACTOR)$PLAYER_HELTH20 = Actor.Health($PLAYER_ACTOR)if 89FA:   not is_menu_closed else_jump @INTERFACE_1151 03F0: enable_text_draw 1 008F: $PLAYER_HELTH1 = integer $PLAYER_HELTH1 to_float 008F: $PLAYER_HELTH2 = integer $PLAYER_HELTH2 to_float 008F: $PLAYER_HELTH3 = integer $PLAYER_HELTH3 to_float 008F: $PLAYER_HELTH4 = integer $PLAYER_HELTH4 to_float 008F: $PLAYER_HELTH5 = integer $PLAYER_HELTH5 to_float 008F: $PLAYER_HELTH6 = integer $PLAYER_HELTH6 to_float 008F: $PLAYER_HELTH7 = integer $PLAYER_HELTH7 to_float 008F: $PLAYER_HELTH8 = integer $PLAYER_HELTH8 to_float 008F: $PLAYER_HELTH9 = integer $PLAYER_HELTH9 to_float 008F: $PLAYER_HELTH10 = integer $PLAYER_HELTH10 to_float 008F: $PLAYER_HELTH11 = integer $PLAYER_HELTH11 to_float 008F: $PLAYER_HELTH12 = integer $PLAYER_HELTH12 to_float 008F: $PLAYER_HELTH13 = integer $PLAYER_HELTH13 to_float 008F: $PLAYER_HELTH14 = integer $PLAYER_HELTH14 to_float 008F: $PLAYER_HELTH15 = integer $PLAYER_HELTH15 to_float 008F: $PLAYER_HELTH16 = integer $PLAYER_HELTH16 to_float 008F: $PLAYER_HELTH17 = integer $PLAYER_HELTH17 to_float 008F: $PLAYER_HELTH18 = integer $PLAYER_HELTH18 to_float 008F: $PLAYER_HELTH19 = integer $PLAYER_HELTH19 to_float 008F: $PLAYER_HELTH20 = integer $PLAYER_HELTH20 to_float $PLAYER_HELTH1 *= 3.3 $PLAYER_HELTH2 *= 3.2 $PLAYER_HELTH3 *= 3.1 $PLAYER_HELTH4 *= 3.0 $PLAYER_HELTH5 *= 2.9 $PLAYER_HELTH6 *= 2.8 $PLAYER_HELTH7 *= 2.7 $PLAYER_HELTH8 *= 2.6 $PLAYER_HELTH9 *= 2.5 $PLAYER_HELTH10 *= 2.4 $PLAYER_HELTH11 *= 2.3 $PLAYER_HELTH12 *= 2.2 $PLAYER_HELTH13 *= 2.1 $PLAYER_HELTH14 *= 2.0 $PLAYER_HELTH15 *= 1.9 $PLAYER_HELTH16 *= 1.8 $PLAYER_HELTH17 *= 1.7 $PLAYER_HELTH18 *= 1.6 $PLAYER_HELTH19 *= 1.5 $PLAYER_HELTH20 *= 1.4 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH1 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH2 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH3 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH4 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH5 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH6 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH7 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH8 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH9 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH10 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH11 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH12 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH13 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH14 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH15 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH16 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH17 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH18 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH19 5.0 RGBA 255 0 0 7 038E: draw_box_position 320.0 10.0 size $PLAYER_HELTH20 5.0 RGBA 255 0 0 7 jump @INTERFACE_1155 :INTERFACE_115103F0: enable_text_draw 1 :INTERFACE_1155jump @INTERFACE :INTERFACE_1162wait 2500 jump @INTERFACE_1162 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.