Jump to content

Change clothes in game


Recommended Posts

//sorry for my english but i'm french//

 

Hi all !

 

 

087B: set_player $PLAYER_CHAR clothes "name" "Model ID"  3 

 

 

I use this opcodes with remplacing name and model id with information of shopping.dat

 

I launch this opcode with a menu (created with scm menu generator and working perfectly !) BUT when i select this opcode in the menu in game, clothes are not in CJ but in the penderie, in johnson's house. I want a opcode who can made clothes on CJ.

 

Can you help me please ?

 

I have another question, i use the code for change player (loading special actor)

 

 

09C7: change_player_skin $PLAYER_CHAR to "NAME"

 

 

How find all the number to put the place has of NAME ? And finally, what is the opcode for come back to cj skin ?

 

Thanks for your answer !

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/
Share on other sites

1.

 

087B=4,set_player %1d% apply_shopping_item_texturename %2h% model_name %3h% item_type %4h%;; 16-byte strings

 

after that to see effect immidiatelly you have to use

 

070D=1,set_player %1d% rebuild_model_and_items 

 

 

2.

 

023C=2,load_special_actor_slot %1d% with_model %2f%;corresponds modelID 290-299

 

that means range 290-299 depends on slot chosen.

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4201138
Share on other sites

Thanks, VERY thanks for your answers !!!

I will try that for clothes wink.gif

 

"that means range 290-299 depends on slot chosen. "

Yes, i know that, but why know what are all the slots ??

 

You don't have answer to this question "what is the opcode for come back to cj skin ?"

 

Do you know the answer ?

 

Very thanks again for your help !

 

EDIT : I have tested for clothes : it works ! thanks you very much !

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4201560
Share on other sites

Yes it changes to "BigSmoke" skin with parameter 0 look a part of my code :

 

 

:CHTBOX_33600001: wait  250 ms08D4: 'SKIN1'  30.0  150.0  300.0  1  1  1  1 @1 08DB: @1  0 'DUMMY' 'CJ' 'SMOKE' 'SWEET' 'TENPEN' 'CLAUDE' 'RYDER2' 'CESAR' 'OGLOC' 'JIZZY' 'SUITE' 'RETOUR' 'DUMMY' 09DB: @1  0  300 :CHTBOX_33620001: wait  0 ms00D6: if  000E1:   key_pressed  0  15004D: jump_if_false £CHTBOX_336408DA: @1 03E6: remove_text_box0001: wait  200 ms0581: toggle_radar  1 (on)01B4: set_player $2 frozen_state  1 (unfrozen)0002: jump £CHTBOX_15:CHTBOX_336400D6: if  000E1:   key_pressed  0  16004D: jump_if_false £CHTBOX_336208D7: @1 @0 08DA: @1 0871: init_jump_table @0 total_jumps  11  0 £CHTBOX_3366 jumps  0 £CHTBOX_3366  1 £CHTBOX_3368  2 £CHTBOX_3370  3 £CHTBOX_3372  4 £CHTBOX_3374  5 £CHTBOX_3376  6 £CHTBOX_3378 0872: jump_table_jumps  7 £CHTBOX_3380  8 £CHTBOX_3382  9 £CHTBOX_3384  10 £CHTBOX_3386 -1 £CHTBOX_3366 -1 £CHTBOX_3366 -1 £CHTBOX_3366 -1 £CHTBOX_3366 -1 £CHTBOX_3366 :CHTBOX_336609C7: change_player_skin $2 to 0 :CHTBOX_3368023C: load_special_actor  1 "SMOKE"038B: load_requested_models023D:   special_actor  1 loaded09C7: $2  290 0002: jump £CHTBOX_3360:CHTBOX_3370023C: load_special_actor  2 "SWEET"038B: load_requested_models023D:   special_actor  2 loaded09C7: $2  291 0002: jump £CHTBOX_3360:CHTBOX_3372023C: load_special_actor  3 "TENPEN"038B: load_requested_models023D:   special_actor  3 loaded09C7: $2  292 0002: jump £CHTBOX_3360:CHTBOX_3374023C: load_special_actor  4 "CLAUDE"038B: load_requested_models023D:   special_actor  4 loaded09C7: $2  293 0002: jump £CHTBOX_3360:CHTBOX_3376023C: load_special_actor  5 'RYDER2'038B: load_requested_models023D:   special_actor  5 loaded09C7: $2  294 0002: jump £CHTBOX_3360:CHTBOX_3378023C: load_special_actor  6 'CESAR'038B: load_requested_models023D:   special_actor  6 loaded09C7: $2  295 0002: jump £CHTBOX_3360:CHTBOX_3380023C: load_special_actor  7 'OGLOC'038B: load_requested_models023D:   special_actor  7 loaded09C7: $2  296 0002: jump £CHTBOX_3360:CHTBOX_3382023C: load_special_actor  8 'JIZZY'038B: load_requested_models023D:   special_actor  8 loaded09C7: $2  297 0002: jump £CHTBOX_3360:CHTBOX_33840002: jump £CHTBOX_3390:CHTBOX_33860002: jump £CHTBOX_4000  

 

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4206665
Share on other sites

it is because after this part

 

:CHTBOX_336609C7: change_player_skin $2 to 0

 

it proceeds to this part instead of label CHTBOX_3360

 

:CHTBOX_3368023C: load_special_actor  1 "SMOKE"038B: load_requested_models023D:   special_actor  1 loaded09C7: $2  2900002: jump £CHTBOX_3360

 

besides these sequences in code should look more like:

 

:CHTBOX_3368023C: load_special_actor  1 "SMOKE":CHTBOX_3368A0001: wait 000D6: if 023D:   special_actor  1 loaded004D: jump_if_false @CHTBOX_3368A09C7: change_player_skin $2 to 2900002: jump £CHTBOX_3360

 

and you do not need to trash your code with

 

038B: load_requested_models

which is not used in SA

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4206757
Share on other sites

Thanks for your answer and for help me since the beginning wink.gif

 

I don't understand why after the part 3366 it proceeds to 3368 because it's not true for others...

But i have try your code and sabuilder say me that it can't compil because:

 

 

00D6: if 

 

 

is not valide...!

 

EDIT : I'm a BIG BIG BIG BIG BIG BIG BIG noooooooob !! And sorry for that wow.gif

 

I've understand what you explain me and why it was smoke and no cj...I ve no whrite this "0002: jump £CHTBOX_3360" after the line for CJ...

 

I don't understand how i can do this and say a question for help me about this...Sorry !

And thanks you very much PLPynton for your help ! I have resolved all my problems !

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4206983
Share on other sites

vivelapsp

Hello all !

I come back here because i think it's better for don't post again a new topic..no ?

 

I've new questions, for my scm menu...

I want add an option "on/off" for hotcoffee.

I've already add hotcoffee mod but i've just deleted this for install my new options : activate or desactivate when you want this.

 

Gang warfare mod do this but i can't access to the scm who is protected.

Anyone have idea how can i make this ? Sorry but, for this, i have no idea sad.gif

I hope you help me again, thanks.

 

EDIT : it's not something like this ? (CHTBOX_91 is my menu when hot coffe on/off appear) :

 

 

:CHTBOX_13700D6: if  00039:   @13 ==  1 ;; integer values004D: jump_if_false £CHTBOX_1410002: jump £CHTBOX_145:CHTBOX_141I don't know what said for hotcoffee on0006: @13 =  1 ;; integer values0002: jump £CHTBOX_91:CHTBOX_145I don't know what said for hotcoffe off0006: @13 =  0 ;; integer values0002: jump £CHTBOX_91

 

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4217058
Share on other sites

i really do not understand where the problem is, you posted some code that will toggle something. hot coffe mod: are you talking about censored flag or all girls from the beginning and stuff? while making ingame sexscenes and minigames is just one global variable, making all girls available and stuff is a bit more than that.

gang warfare? is that someone's mod? ask him before using his code or write your own code that does exact the same thing.

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4217272
Share on other sites

vivelapsp

i want an opcode or other for add to my scm menu, who making ingame sexscenes and minigames (with womans nude if possible biggrin.gif ), not all girls available from begining.

 

 

gang warfare? is that someone's mod? ask him before using his code or write your own code that does exact the same thing.

 

Yes it's a mod but i don't ask him (and i will not) and i don't try to put his source code because he have said in his topic mod that he have protected his scm beacause he doesn't want we use his source.

 

The code that i have post in my previous post is from me.

 

I hope you understand my probleme and you will help me, i'm french and it's difficult for you to understand me i think...sad.gif Sorry for that.

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4217346
Share on other sites

it was under variable $1219 or $censored_flag inside thread GFINIT in first releases of SA. look for it if your game ain't v2.0. well you do not have to worry about your language skills as long as you try to do your best, i am not good in english anyway so it might be problem as well. take care.

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4217863
Share on other sites

vivelapsp

Yes...others questions again...

I have searsh all in the forum some opcode but i don't have find these.

Can you help me ?

 

I searsh :

- Opcode who delete watches, chains, hats and glasses that CJ is wearing.

- Opcode for have all the horseshoe, all taggs, all oysters.

- Opcode for repair your car, not only the motor but all your car like a pay'n spray

- Opcode for change tatoos on CJ (using id of shopping.dat)

- Opcode who, in mission, finish the mission with "mission successful" (i have find a mod who have something like this with others mods, the name is misison skipper made by pavel)

 

Thanks you for answer and sorry for ask many questions.

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4222017
Share on other sites

0784 goes for clothes and tatos as well. there is no opcode for collectibles (except tags) but you can mess around stats. try 0A30. there is no opcode to set remotly missions as completed, you will have to mess around globals used in game flow control thread.

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4222398
Share on other sites

vivelapsp

Thanks for your answer !

 

 

0784 goes for clothes and tatos as well.

 

I know but i don't know parameters for delete watches, chains, hats and glasses. And i don"t know the modelname of tatoos ! In shopping.dat you have only the texture name and nametag.

 

 

there is no opcode for collectibles (except tags) but you can mess around stats. try 0A30. there is no opcode to set remotly missions as completed, you will have to mess around globals used in game flow control thread.

 

Ok i will try.

 

Yon don't have answer to this : - Opcode for repair your car, not only the motor but all your car like a pay'n spray

 

You have no idea for this ?

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4223953
Share on other sites

vivelapsp

OK, sorry, i have understand now for the answer of car. I will searsh.

But how know the modelname of tatoos ? In shopping.dat you have only the texture name and nametag.

 

EDIT : With parameter 0 and 0, my game freeze...

 

 

087B: set_player $PLAYER_CHAR clothes "0" "0"  15 

 

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4224086
Share on other sites

 

OK, sorry, i have understand now for the answer of car. I will searsh.

But how know the modelname of tatoos ? In shopping.dat you have only the texture name and nametag.

use texturname+nametag,type1 and type2 for body_part_number

exemble:

 

087B: set_player $PLAYER_CHAR clothes "11godsgift" "11GGIFT" body_part  11087B: set_player $PLAYER_CHAR clothes "12mayaface" "12MYFAC" body_part  12

 

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4224143
Share on other sites

vivelapsp

OK !! Thanks you ZAZ, i will try this. In my code , I don't have put "body_part", it's for this i think.

 

Have you idea for my other problem ? Delete chains, hats, ...?

 

EDIT : OK, I have understand why tatoo doesn't work since the beginning : for set cj in torso, i have put this code :

 

 

087B: set_player $2 clothes "player_torso" "torso"  0 

 

 

And this is like a t shirt : you can't see tatoos !! "body_part" in your code ZAZ is inutile...

So the realy probleme is not tatoo's opcode (who works perfectly) but how delete vets (all : torso, hats, legs, watches, etc...).

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4225192
Share on other sites

Anibody can answer to this ? delete clothes ? Parameters 0 and 0 doesn't work sad.gif

 

I have an other question !

I try to launch cutscenes, but i want a little code...How launch cutscene and no rewrite the code again and again ?

 

Here is my code for a menu created with scm menu generator.

 

 

:CHTBOX_6114054C: use_GXT_table 'INTRO1'04BB: select_interior  14;; select render area02E4: load_cutscene_data 'PROLOG1':CHTBOX_611600D6: if  086B9:   NOT   cutscene_data_loaded004D: jump_if_false £CHTBOX_61180001: wait  0 ms0002: jump £CHTBOX_6116:CHTBOX_611802E7: start_cutscene016A: fade  1 (back)  1000 ms:CHTBOX_61200001: wait  0 ms00D6: if  002E9:  cutscene_reached_end004D: jump_if_false £CHTBOX_6120016A: fade  0 ()  0 ms00D6: if  0056A: (unknown)004D: jump_if_false £CHTBOX_6122  :CHTBOX_61220001: wait  0 ms00D6: if  0816B:    NOT  fading004D: jump_if_false £CHTBOX_612202EA: end_cutscene04BB: select_interior  0;; select render area016A: fade  1 (back)  1000 ms0004: $ONMISSION =  001B7: release_weather00D8: mission_cleanup0002: jump £CHTBOX_86:CHTBOX_6124054C: use_GXT_table 'INTRO1'04BB: select_interior  14;; select render area02E4: load_cutscene_data 'PROLOG1'0002: jump £CHTBOX_6116etc... 

 

 

CHTBOX_86 refer to main menu.

I want just add code for launch cutscenes next

 

 

:CHTBOX_XXXX0002: jump £CHTBOX_61140002: jump £CHTBOX_61240002: jump £CHTBOX_6126etc...

 

 

BUT this don"t works cuz my code jump first to chtbox_86 and no to chtbox_6124 and others next. So If i want play cutscene one after one i must write the big code again and again.

 

I have try with a "return" but the game crashe...

I don't know if you have solutions...Help me if you can please !

Edited by vivelapsp
Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4232645
Share on other sites

 

OK !! Thanks you ZAZ, i will try this. In my code , I don't have put "body_part", it's for this i think.

 

Have you idea for my other problem ? Delete chains, hats, ...?

 

EDIT : OK, I have understand why tatoo doesn't work since the beginning : for set cj in torso, i have put this code :

 

 

087B: set_player $2 clothes "player_torso" "torso"  0 

 

 

And this is like a t shirt : you can't see tatoos !! "body_part" in your code ZAZ is inutile...

So the realy probleme is not tatoo's opcode (who works perfectly) but how delete vets (all : torso, hats, legs, watches, etc...).

 

I basicly work with the 2nd sascm.ini of sep.2005. Therefor the interpretation

of the cods have an other look. You have to concentrate to the opcodes.

 

To reset cloth items to CJs basic look can use

 

0784: $PLAYER_CHAR 0 0 13

 

the last parameter is the item kategorie

Link to comment
https://gtaforums.com/topic/275862-change-clothes-in-game/#findComment-4234088
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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