techA Posted February 15, 2011 Share Posted February 15, 2011 hi i attempt to create an menu but it's go just to crashes... 08D4: $PEUGMENU = create_panel_with_title 'VDN' position 10.0 140.0 width 70.0 columns 3 interactive 1 background 2 alignment 1 08DB: set_panel $PEUGMENU column 0 header 'GXT' data '106' '107' '205' '206' '207' '307' '404' '405' '406' '407' '505' '607' //12 09DB: set_panel $PEUGMENU column 0 width 250 :MISSPEUG2 if 00E1: player 0 pressed_key 15 then 08DA: remove_panel $PEUGMENU 03E6: remove text box jump @END end 00E1: player 0 pressed_key 16 08D7: $choix = panel $PEUGMENU active_row 08DA: remove_panel $PEUGMENU 03E6: remove text box if $choix == 1 then jf @MISSPEUG4 model.Load(#SUPERGT) 038B: load_requested_models wait 0 00A5: $50 = create_car #SUPERGT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG4 if $choix == 2 then jf @MISSPEUG5 model.Load(#ADMIRAL) 038B: load_requested_models wait 0 00A5: $51 = create_car #ADMIRAL at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG5 if $choix == 3 then jf @MISSPEUG6 model.Load(#BLISTAC) 038B: load_requested_models wait 0 00A5: $52 = create_car #BLISTAC at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG6 if $choix == 4 then jf @MISSPEUG7 model.Load(#BOBCAT) 038B: load_requested_models wait 0 00A5: $53 = create_car #BOBCAT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG7 if $choix == 5 then jf @MISSPEUG8 model.Load(#INFERNUS) 038B: load_requested_models wait 0 00A5: $54 = create_car #INFERNUS at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG8 if $choix == 6 then jf @MISSPEUG9 model.Load(#GLENDALE) 038B: load_requested_models wait 0 00A5: $55 = create_car #GLENDALE at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG9 if $choix == 7 then jf @MISSPEUG10 model.Load(#WALTON) 038B: load_requested_models wait 0 00A5: $56 = create_car #WALTON at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG10 if $choix == 8 then jf @MISSPEUG11 model.Load(#HOTRINA) 038B: load_requested_models wait 0 00A5: $57 = create_car #HOTRINA at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG11 if $choix == 9 then jf @MISSPEUG12 model.Load(#PRIMO) 038B: load_requested_models wait 0 00A5: $58 = create_car #PRIMO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG12 if $choix == 10 then jf @MISSPEUG13 model.Load(#GREENWOO) 038B: load_requested_models wait 0 00A5: $59 = create_car #GREENWOO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG13 if $choix == 11 then jf @MISSPEUG14 model.Load(#HOTRING) 038B: load_requested_models wait 0 00A5: $60 = create_car #HOTRING at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG14 if $choix == 12 then jf @MISSPEUG2 model.Load(#ELEGANT) 038B: load_requested_models wait 0 00A5: $61 = create_car #ELEGANT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut jump @MISSPEUG15 end :MISSPEUG15 jump @MISSPEUG :END wait 1000 jump @END thanks. Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/ Share on other sites More sharing options...
PatrickW Posted February 15, 2011 Share Posted February 15, 2011 It's hard to get the grasp of SCM when you start, so I would advise you to work through some of the tutorials we have online. I don't know where you pulled the structure used for this menu from, but there are some serious problem in the overall structure. Please consult this tutorial to find a proper basic layout for a menu handling routine. Maybe it's wise to work your way through the whole tutorial in that topic, to get the hang of the generic control structures in SCM. Besides the flaw in the menu structure, the way you try to spawn a vehicle is not correct either. model.Load(#SUPERGT)038B: load_requested_models wait 000A5: $50 = create_car #SUPERGT at -1923.19 261.85 41.05 You are right that you have to load the model before you can spawn them, but you have to properly wait until the model is loaded, a "wait 0" is not enough for that. It should look something like: //Load modelsmodel.Load(#SUPERGT) repeat wait 0 msuntil model.Available(#SUPERGT) 00A5: $50 = create_car #SUPERGTat -1923.19 261.85 41.05 Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060339765 Share on other sites More sharing options...
techA Posted February 15, 2011 Author Share Posted February 15, 2011 i followed this tutorial but don't work for me ! why ? until model.Available(#SUPERGT) normaly it work whithout this... Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060339778 Share on other sites More sharing options...
PatrickW Posted February 15, 2011 Share Posted February 15, 2011 i followed this tutorial but don't work for me ! why ? until model.Available(#SUPERGT) normaly it work whithout this... You missing some key elements that are shown is the tutorial. Pleases compare your code with the tutorial, and find the differences. It might work sometimes without the model.available() check, but it's wrong to assume that you can do without it. It's not guaranteed that the model is actually loaded when you spawn the vehicle. If it isn't, this will cause a crash. Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060339949 Share on other sites More sharing options...
techA Posted February 15, 2011 Author Share Posted February 15, 2011 i can't tested the code but it is correct with following the tutorial ? 08D4: $PEUGMENU = create_panel_with_title 'VDN' position 10.0 140.0 width 70.0 columns 3 interactive 1 background 2 alignment 1 08DB: set_panel $PEUGMENU column 0 header 'GXT' data '106' '107' '205' '206' '207' '307' '404' '405' '406' '407' '505' '607' //12 09DB: set_panel $PEUGMENU column 0 width 250 :MISSPEUG2 if 00E1: player 0 pressed_key 15 then 08DA: remove_panel $PEUGMENU 03E6: remove text box jump @END end 00E1: player 0 pressed_key 16 08D7: $choix = panel $PEUGMENU active_row 08DA: remove_panel $PEUGMENU 03E6: remove text box if $choix == 1 then jf @MISSPEUG4 model.Load(#SUPERGT) 038B: load_requested_models wait 0 until model.Available(#SUPERGT) 00A5: $50 = create_car #SUPERGT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut if $choix == 2 then jf @MISSPEUG5 model.Load(#ADMIRAL) 038B: load_requested_models wait 0 until model.Available(#ADMIRAL) 00A5: $51 = create_car #ADMIRAL at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 3 then jf @MISSPEUG6 model.Load(#BLISTAC) 038B: load_requested_models wait 0 until model.Available(#BLISTAC) 00A5: $52 = create_car #BLISTAC at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 4 then jf @MISSPEUG7 model.Load(#BOBCAT) 038B: load_requested_models wait 0 until model.Available(#BOBCAT) 00A5: $53 = create_car #BOBCAT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 5 then jf @MISSPEUG8 model.Load(#INFERNUS) 038B: load_requested_models wait 0 until model.Available(#INFERNUS) 00A5: $54 = create_car #INFERNUS at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 6 then jf @MISSPEUG9 model.Load(#GLENDALE) 038B: load_requested_models wait 0 until model.Available(#GLENDALE) 00A5: $55 = create_car #GLENDALE at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 7 then jf @MISSPEUG10 model.Load(#WALTON) 038B: load_requested_models wait 0 until model.Available(#WALTON) 00A5: $56 = create_car #WALTON at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 8 then jf @MISSPEUG11 until model.Available(#HOTRINA) model.Load(#HOTRINA) 038B: load_requested_models wait 0 00A5: $57 = create_car #HOTRINA at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 9 then jf @MISSPEUG12 model.Load(#PRIMO) 038B: load_requested_models wait 0 until model.Available(#PRIMO) 00A5: $58 = create_car #PRIMO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 10 then jf @MISSPEUG13 model.Load(#GREENWOO) 038B: load_requested_models wait 0 until model.Available(#GREENWOO) 00A5: $59 = create_car #GREENWOO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 11 then jf @MISSPEUG14 model.Load(#HOTRING) 038B: load_requested_models wait 0 until model.Available(#HOTRING) 00A5: $60 = create_car #HOTRING at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 12 then jf @MISSPEUG2 model.Load(#ELEGANT) 038B: load_requested_models wait 0 until model.Available(#ELEGANT) 00A5: $61 = create_car #ELEGANT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end :END wait 1000 jump @END Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060340027 Share on other sites More sharing options...
PatrickW Posted February 15, 2011 Share Posted February 15, 2011 For starters, compare the two snippets of code. The first is from the tutorial and the second is the corresponding piece from your code. Do you see how your codes misses the "repeat-until" structure ? repeatwait 0 msif 00E1: player 0 pressed_key 15 then 08DA: remove_panel $MENU03E6: remove text boxjump @ENDenduntil 00E1: player 0 pressed_key 16 08D7: $choice = panel $MENU active_row08DA: remove_panel $MENU03E6: remove text box :MISSPEUG2if 00E1: player 0 pressed_key 15 then08DA: remove_panel $PEUGMENU03E6: remove text boxjump @ENDend00E1: player 0 pressed_key 16 08D7: $choix = panel $PEUGMENU active_row08DA: remove_panel $PEUGMENU03E6: remove text box Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060340074 Share on other sites More sharing options...
techA Posted February 15, 2011 Author Share Posted February 15, 2011 gta san andreas frozen... and i have an error message in sanny builder if i write "until" , "until doesn't exist" :'( Player.CanMove($PLAYER_CHAR) = False08D4: $PEUGMENU = create_panel_with_title 'VDN' position 10.0 140.0 width 70.0 columns 3 interactive 1 background 2 alignment 1 08DB: set_panel $PEUGMENU column 0 header 'GXT' data '106' '107' '205' '206' '207' '307' '404' '405' '406' '407' '505' '607' //12 09DB: set_panel $PEUGMENU column 0 width 250 :MISSPEUG2 wait 0 ms repeat if 00E1: player 0 pressed_key 15 then 08DA: remove_panel $PEUGMENU 03E6: remove text box jump @END end until 00E1: player 0 pressed_key 16 08D7: $choix = panel $PEUGMENU active_row 08DA: remove_panel $PEUGMENU 03E6: remove text box if $choix == 1 then model.Load(#SUPERGT) 038B: load_requested_models wait 0 model.Available(#SUPERGT) 00A5: $50 = create_car #SUPERGT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 2 then model.Load(#ADMIRAL) 038B: load_requested_models wait 0 model.Available(#ADMIRAL) 00A5: $51 = create_car #ADMIRAL at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 3 then model.Load(#BLISTAC) 038B: load_requested_models wait 0 model.Available(#BLISTAC) 00A5: $52 = create_car #BLISTAC at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 4 then model.Load(#BOBCAT) 038B: load_requested_models wait 0 model.Available(#BOBCAT) 00A5: $53 = create_car #BOBCAT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 5 then model.Load(#INFERNUS) 038B: load_requested_models wait 0 model.Available(#INFERNUS) 00A5: $54 = create_car #INFERNUS at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 6 then model.Load(#GLENDALE) 038B: load_requested_models wait 0 model.Available(#GLENDALE) 00A5: $55 = create_car #GLENDALE at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 7 then model.Load(#WALTON) 038B: load_requested_models wait 0 model.Available(#WALTON) 00A5: $56 = create_car #WALTON at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 8 then model.Available(#HOTRINA) model.Load(#HOTRINA) 038B: load_requested_models wait 0 00A5: $57 = create_car #HOTRINA at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 9 then model.Load(#PRIMO) 038B: load_requested_models wait 0 model.Available(#PRIMO) 00A5: $58 = create_car #PRIMO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 10 then model.Load(#GREENWOO) 038B: load_requested_models wait 0 model.Available(#GREENWOO) 00A5: $59 = create_car #GREENWOO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 11 then model.Load(#HOTRING) 038B: load_requested_models wait 0 model.Available(#HOTRING) 00A5: $60 = create_car #HOTRING at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 12 then model.Load(#ELEGANT) 038B: load_requested_models wait 0 model.Available(#ELEGANT) 00A5: $61 = create_car #ELEGANT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end :END wait 1000 jump @END Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060340131 Share on other sites More sharing options...
lil weasel Posted February 15, 2011 Share Posted February 15, 2011 Does your game version make a difference? (V1, V2, V3.) Where did you get your game? Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060340351 Share on other sites More sharing options...
techA Posted February 15, 2011 Author Share Posted February 15, 2011 none... i am in 1.0 version with cleo 4 and my biggest mod : THE GRAND THEFT PEUGEOT see at www.gtp.gofreeserve.com ... and i creating the final script the menu... and i need an help :'( Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060340366 Share on other sites More sharing options...
PatrickW Posted February 15, 2011 Share Posted February 15, 2011 If you followed the tutorial better you'd see that there is a "wait" inside the repeat-until. If you don't know what you do you really need to follow tutorials very precisely. And also you left out the "repeat-until" from the piece of code I gave you that waits for the model to be loaded. Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060340700 Share on other sites More sharing options...
techA Posted February 16, 2011 Author Share Posted February 16, 2011 And also you left out the "repeat-until" from the piece of code I gave you that waits for the model to be loaded. i writed the code with this in sanny builder but it's give me an error. Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060341092 Share on other sites More sharing options...
PatrickW Posted February 16, 2011 Share Posted February 16, 2011 It should compile fine, I checked and it does for me. What error does it give you ? What sannybuilder version do you use ? Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060341106 Share on other sites More sharing options...
techA Posted February 16, 2011 Author Share Posted February 16, 2011 ok,so now it work but if i press space ,it's spawn the car but CJ can't move after. :MISSPEUGwait 100 if 0101: actor $PLAYER_ACTOR stopped_near_point -1973.67 263.96 35.17 radius 2.0 2.0 10.0 sphere 1 0A94: start_custom_mission "MISSPEUG" jf @MISSPEUG wait 250 00BA: show_text_styled GXT 'VENDEUR' time 1000 style 2 wait 100 03E6: remove_text_box Player.SetClothes($PLAYER_CHAR, "HOODYAGREEN", "HOODYA", Torso) Player.SetClothes($PLAYER_CHAR, "CHONGERGANG", "CHONGER", Legs) Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes) Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head) Player.Build($PLAYER_CHAR) wait 1000 Player.CanMove($PLAYER_CHAR) = False 08D4: $PEUGMENU = create_panel_with_title 'VDN' position 10.0 140.0 width 70.0 columns 3 interactive 1 background 2 alignment 1 08DB: set_panel $PEUGMENU column 0 header 'GXT' data '106' '107' '205' '206' '207' '307' '404' '405' '406' '407' '505' '607' //12 09DB: set_panel $PEUGMENU column 0 width 250 :MISSPEUG2 repeat wait 0 ms if 00E1: player 0 pressed_key 15 then 08DA: remove_panel $PEUGMENU 03E6: remove text box jump @END end until 00E1: player 0 pressed_key 16 08D7: $choix = panel $PEUGMENU active_row 08DA: remove_panel $PEUGMENU 03E6: remove text box if $choix == 0 then model.Load(#SUPERGT) 038B: load_requested_models wait 0 model.Available(#SUPERGT) 00A5: $50 = create_car #SUPERGT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 1 then model.Load(#ADMIRAL) 038B: load_requested_models wait 0 model.Available(#ADMIRAL) 00A5: $51 = create_car #ADMIRAL at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 2 then model.Load(#BLISTAC) 038B: load_requested_models wait 0 model.Available(#BLISTAC) 00A5: $52 = create_car #BLISTAC at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 3 then model.Load(#BOBCAT) 038B: load_requested_models wait 0 model.Available(#BOBCAT) 00A5: $53 = create_car #BOBCAT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 6 then model.Load(#INFERNUS) 038B: load_requested_models wait 0 model.Available(#INFERNUS) 00A5: $54 = create_car #INFERNUS at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 7 then model.Load(#GLENDALE) 038B: load_requested_models wait 0 model.Available(#GLENDALE) 00A5: $55 = create_car #GLENDALE at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 8 then model.Load(#WALTON) 038B: load_requested_models wait 0 model.Available(#WALTON) 00A5: $56 = create_car #WALTON at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 9 then model.Available(#HOTRINA) model.Load(#HOTRINA) 038B: load_requested_models wait 0 00A5: $57 = create_car #HOTRINA at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 10 then model.Load(#PRIMO) 038B: load_requested_models wait 0 model.Available(#PRIMO) 00A5: $58 = create_car #PRIMO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 11 then model.Load(#GREENWOO) 038B: load_requested_models wait 0 model.Available(#GREENWOO) 00A5: $59 = create_car #GREENWOO at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 12 then model.Load(#HOTRING) 038B: load_requested_models wait 0 model.Available(#HOTRING) 00A5: $60 = create_car #HOTRING at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end if $choix == 13 then model.Load(#ELEGANT) 038B: load_requested_models wait 0 model.Available(#ELEGANT) 00A5: $61 = create_car #ELEGANT at -1923.19 261.85 41.05 Camera.SetPosition(-1939.97, 262.47, 47.70, 0.0, 0.0, 0.0) Camera.PointAt(-1923.19, 261.85, 41.05, 2) wait 1000 camera.Restore_WithJumpCut end :END wait 1000 jump @END i think i'm a noob with menu Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060341222 Share on other sites More sharing options...
PatrickW Posted February 18, 2011 Share Posted February 18, 2011 You should place a Player.CanMove($PLAYER_CHAR) = True Somewhere after you spawned the car, to enable the player to move again. This is disabled during the menu handling. Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060343477 Share on other sites More sharing options...
techA Posted February 18, 2011 Author Share Posted February 18, 2011 thanks too much , resolved. Link to comment https://gtaforums.com/topic/469733-scm-menu-problem/#findComment-1060344105 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now