archey Posted October 31, 2009 Share Posted October 31, 2009 (edited) How can I change the plates on a car I spawn? My current code is 014B: 1@ = init_parked_car_generator #SABRE color 86 0 1 alarm 0 door_lock 0 0 0 at 2516.75 -1710.183 14.9659 angle 269.0579 014C: set_parked_car_generator 1@ cars_to_generate_to 101 And how can I make the car Bullet Proof, Explosion Proof, all that? Also I cannot find the model #'s for CIGAR, CIGAR_GLOW, and Special Actors like RYDER1, SMOKE, SWEET, And I'm also looking to Spawn Ryder in his car in the passenger seat, spawned in his drive way, and i can drive around with him in their, whiel he smokes his cigar. I've tried // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------// OBJ and Carswait 0 0A95: enable_thread_saving 0237: set_gang 1 weapons_to 24 31 26 014B: 0@ = init_parked_car_generator #CHEETAH color 15 15 1 alarm 0 door_lock 0 0 0 at 2505.36 -1696.369 17.9575 angle 0.0 014C: set_parked_car_generator 0@ cars_to_generate_to 101 014B: 1@ = init_parked_car_generator #SABRE color 86 0 1 alarm 0 door_lock 0 0 0 at 2516.75 -1710.183 14.9659 angle 269.0579 014C: set_parked_car_generator 1@ cars_to_generate_to 101 032B: 2@ = create_weapon_pickup #SNIPER group 15 ammo 20000 at 2504.56 -1722.3 18.5821 032B: 3@ = create_weapon_pickup #COLT45 group 15 ammo 10000 at 2497.81 -1687.0 13.487 032B: 4@ = create_weapon_pickup #AK47 group 15 ammo 30000 at 2500.57 -1686.5 13.4927 5@ = Pickup.Create(#KNIFECUR, 3, 2494.09, -1687.4, 13.4942)032B: 6@ = create_weapon_pickup #M4 group 15 ammo 30000 at 2499.11 -1686.9 13.4942 032B: 7@ = create_weapon_pickup #MICRO_UZI group 15 ammo 30000 at 2492.01 -1687.2 13.5132 032B: 8@ = create_weapon_pickup #MP5LNG group 15 ammo 25000 at 2490.62 -1687.3 13.5163 032B: 9@ = create_weapon_pickup #JETPACK group 15 ammo 0 at 2519.0 -1676.2 14.4843 032B: 10@ = create_weapon_pickup #HEATSEEK group 15 ammo 3000 at 2485.684 -1636.95 25.1094 032B: 11@ = create_weapon_pickup #MINIGUN group 15 ammo 45000 at 2062.652 -1704.273 20.3606 014B: 12@ = init_parked_car_generator #PICADOR color 84 84 0 alarm 0 door_lock 0 0 0 at 2472.9338 -1699.8035 13.5186 angle 358.9764014C: set_parked_car_generator 12@ cars_to_generate_to 101 :LoadModel0247: load_model #BFORI:CheckModel00D6: if 08248: not model #BFORI available004D: jump_if_false @CreateModel0001: wait 0 ms0002: jump @CheckModel:CreateModel009A: 0@ = create_actor_pedtype 5 model #BFORI at 0.0 0.0 0.00249: release_model #BFORI004E: end_thread0129: 13@ = create_actor_pedtype 23 model #SPECIAL03 in_car 12@ passenger_seat 014@ = Object.Create(#CIGAR, 2440.58, -1979.89, 14.2)070A: AS_actor $ACTOR_RYDER attach_to_object 14@ offset 0.04 0.1 -0.02 on_bone 5 16 perform_animation "NULL" IFP_file "NULL" time -1 0605: actor $ACTOR_RYDER perform_animation_sequence "SMOKE_RYD" IFP_file "SHOP" 4.0 loop 1 0 0 0 time -1 0A93: end_custom_thread Edited October 31, 2009 by archey Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/ Share on other sites More sharing options...
james227uk Posted October 31, 2009 Share Posted October 31, 2009 1. Use opcode search for this 09E2: $PARKED_IMPEXPM_CARS[0] = parked_car_generator_w_numberplate #EUROS -1 -1 0 alarm 50 door_lock 0 0 10000 plate "IMPEXP__" at 0.0 0.0 0.0 angle 180.0 2. Opcode search again 02AC: set_car 0@ immunities BP 1 FP 1 EP 1 CP 1 MP 1 3. You can't simply load people like Catalina, Big Smoke, Sweet and Ryder etc You need: 023C: load_special_actor 'TENPEN' as 1 // models 290-299 Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059599568 Share on other sites More sharing options...
archey Posted October 31, 2009 Author Share Posted October 31, 2009 Okay cool Thanks James. Well I got to loading ryder, but when i try put him in the car, my game crashes after loading. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------wait 0 0A95: enable_thread_saving014B: 0@ = init_parked_car_generator #PICADOR color 84 84 0 alarm 0 door_lock 0 0 0 at 2472.9338 -1699.8035 13.5186 angle 358.9764014C: set_parked_car_generator 0@ cars_to_generate_to 101:LoadModel023C: request_special_actor 'RYDER' as 1:CheckModel00D6: if 08248: not model #SPECIAL01 available004D: jump_if_false @CreateModel0001: wait 0 ms0002: jump @CheckModel:CreateModel 01C8: 1@ = create_actor_pedtype 23 model #SPECIAL01 in_car 0@ passenger_seat 0 0249: release_model #SPECIAL010A93: end_custom_thread I am focusing on the spawning before i put in the weapons Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059599613 Share on other sites More sharing options...
james227uk Posted October 31, 2009 Share Posted October 31, 2009 You can't put an actor in a car generator (init_parked etc) You need these lines Car.Create(0@, #PICADOR, 2472.9338, -1699.8035, 13.5186)0175: set_car 0@ Z_angle_to 358.9764 Not entirely sure if you can set the plate on a spawned car, only opcode I found was for changing the plate on every type of that car Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059599754 Share on other sites More sharing options...
Horny Quintus Posted October 31, 2009 Share Posted October 31, 2009 Not entirely sure if you can set the plate on a spawned car, only opcode I found was for changing the plate on every type of that car I've found that using opcode: 0674: set_car_model 0@ numberplate "N13_LLF_" works when used before creating a car of model 0@. As has been discussed elsewhere, number plates do not show correctly on some car models. Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059599806 Share on other sites More sharing options...
james227uk Posted October 31, 2009 Share Posted October 31, 2009 Not entirely sure if you can set the plate on a spawned car, only opcode I found was for changing the plate on every type of that car I've found that using opcode: 0674: set_car_model 0@ numberplate "N13_LLF_" works when used before creating a car of model 0@. As has been discussed elsewhere, number plates do not show correctly on some car models. Weird. Never showed up in opcode search Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059600282 Share on other sites More sharing options...
archey Posted October 31, 2009 Author Share Posted October 31, 2009 (edited) Thanks James, but i tried that an my game still crashes, i think its this line: 01C8: 1@ = create_actor_pedtype 23 model #SPECIAL01 in_car 0@ passenger_seat 0 I'll try that plate opcode after i get this actor in the car thing This is my whole code right now I loaded the car, the game doesn't crash, but the car nor ryder is there. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------wait 0 0A95: enable_thread_saving:LoadPicador0247: load_model #PICADOR:CheckPicador0001: wait 0 ms00D6: if 00248: model #PICADOR available004D: jump_if_false @CheckModelCar.Create(0@, #PICADOR, 2472.9338, -1699.8035, 13.5186)0175: set_car 0@ Z_angle_to 358.97640249: release_model #PICADORCar.Create(0@, #PICADOR, 2472.9338, -1699.8035, 13.5186)0175: set_car 0@ Z_angle_to 358.9764:LoadModel023C: request_special_actor 'RYDER' as 1:CheckModel00D6: if 08248: not model #SPECIAL01 available004D: jump_if_false @CreateModel0001: wait 0 ms0002: jump @CheckModel:CreateModel 01C8: 1@ = create_actor_pedtype 23 model #SPECIAL01 in_car 0@ passenger_seat 0 0249: release_model #SPECIAL010A93: end_custom_thread nvm on that, fools mistake, now how can i change the color to brown? Also now when the car spawns, it isnt in his drive way, i got the coords from sanny while standing in the drive way. Also is there a way to make an actor follow you in and out of cars? Edited October 31, 2009 by archey Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059600808 Share on other sites More sharing options...
Horny Quintus Posted October 31, 2009 Share Posted October 31, 2009 I take it by fools mistake you mean the jump_if_false instruction in that first model wait loop? It should be jumping to @CheckPicador, not @CheckModel. I tried the script after that correction and it worked fine for me, spawning car and Ryder in the correct place. To set numberplate, add following line before Car.Create. Change numberplate to your personal taste: 0674: set_car_model #PICADOR numberplate "RYDER_1" Opcode search for 'car color' brings up the following you can use: 0229: set_car 0@ primary_color_to 30 secondary_color_to 0 I don't know the number of the color brown though. 30 is a brownish-red. Do an opcode search for 'actor follow' to find actor follow commands. Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601245 Share on other sites More sharing options...
archey Posted October 31, 2009 Author Share Posted October 31, 2009 (edited) I take it by fools mistake you mean the jump_if_false instruction in that first model wait loop? It should be jumping to @CheckPicador, not @CheckModel. I tried the script after that correction and it worked fine for me, spawning car and Ryder in the correct place. To set numberplate, add following line before Car.Create. Change numberplate to your personal taste: 0674: set_car_model #PICADOR numberplate "RYDER_1" Opcode search for 'car color' brings up the following you can use: 0229: set_car 0@ primary_color_to 30 secondary_color_to 0 I don't know the number of the color brown though. 30 is a brownish-red. Do an opcode search for 'actor follow' to find actor follow commands. Yeah Thanks, I'll try find the colors for brown, but do you know how i can get the Actors(Ryder, Smoke Ect) to follow me in and out of cars? Also make them recuitable, and make them spawn with a certain weapon EDIT: Yeah that color is the color Edited October 31, 2009 by archey Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601268 Share on other sites More sharing options...
Horny Quintus Posted October 31, 2009 Share Posted October 31, 2009 Do an opcode search for 'actor follow' to find actor follow commands. ... from which I found this you could try: 0850: AS_actor 95@ follow_actor $PLAYER_ACTOR Opcode search tool. Press CTRL+ALT+2 in Sanny Builder. A wonderfully useful utility! Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601279 Share on other sites More sharing options...
archey Posted October 31, 2009 Author Share Posted October 31, 2009 Do an opcode search for 'actor follow' to find actor follow commands. ... from which I found this you could try: 0850: AS_actor 95@ follow_actor $PLAYER_ACTOR Opcode search tool. Press CTRL+ALT+2 in Sanny Builder. A wonderfully useful utility! Yeah, I tried that before i asked, When i use that, he spawns outside the car, in his driveway where the car should be, and he doesn't follow. Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601291 Share on other sites More sharing options...
Horny Quintus Posted October 31, 2009 Share Posted October 31, 2009 That's what happened for me as well. Try running around a bit though - he will follow you exactly. I suppose what you might need is to monitor if player is in or out of a car. When you get in a car, have Ryder sit in the passenger seat: 03C0: 0@ = actor $PLAYER_ACTOR car05CA: AS_actor 1@ enter_car 0@ passenger_seat 0 10000 ms When you get out of the car, have Ryder follow you with the 0850 opcode. Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601347 Share on other sites More sharing options...
archey Posted October 31, 2009 Author Share Posted October 31, 2009 (edited) When you get out of the car, have Ryder follow you with the 0850 opcode. How so? Because im not really sure if i ahve to add other things to it, but he still doesnt follow with just 0850: AS_actor 1@ follow_actor $PLAYER_ACTOR Edited October 31, 2009 by archey Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601359 Share on other sites More sharing options...
james227uk Posted October 31, 2009 Share Posted October 31, 2009 (edited) :labelwait 0if80DB: not actor $PLAYER_ACTOR in_car $60 jf @label0633: AS_actor 50@ exit_car0850: AS_actor 95@ follow_actor $PLAYER_ACTOR Basic template. Fill in the variables. And for the colours, nice chart here. Also please, you will answer your own questions if you use the opcode search, CTRL + ALT+2 Edited October 31, 2009 by james227uk Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601562 Share on other sites More sharing options...
archey Posted October 31, 2009 Author Share Posted October 31, 2009 (edited) :labelwait 0if80DB: not actor $PLAYER_ACTOR in_car $60 jf @label0633: AS_actor 50@ exit_car0850: AS_actor 95@ follow_actor $PLAYER_ACTOR Basic template. Fill in the variables. And for the colours, nice chart from the SA-MP wiki: What would i change label to? and thanks for those colors EDIT: Well I added :labelif80DB: not actor $PLAYER_ACTOR in_car 0@jf @label0633: AS_actor 1@ exit_car0850: AS_actor 1@ follow_actor $PLAYER_ACTOR But he just spawns outside the car, doesn't follow me when i run around, and doesn't get in the car. Also this is supposed to make him follow me, in/out of vehicles, and on foot? EDIT: Well I started a new game, went to grove, he follows, but doesnt get in vehices, i want him to follow/get in/out of vehicles without starting a new game. Edited November 1, 2009 by archey Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059601567 Share on other sites More sharing options...
james227uk Posted November 1, 2009 Share Posted November 1, 2009 07AF: 10@ = player $PLAYER_CHAR group0630: put_actor $PLAYER_ACTOR in_group 10@ as_leader0631: put_actor 1@ in_group 10@ Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059603047 Share on other sites More sharing options...
archey Posted November 1, 2009 Author Share Posted November 1, 2009 07AF: 10@ = player $PLAYER_CHAR group0630: put_actor $PLAYER_ACTOR in_group 10@ as_leader0631: put_actor 1@ in_group 10@ Cool thanks Link to comment https://gtaforums.com/topic/430712-car-plates-attributes/#findComment-1059603748 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