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

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

      1. St Andrews Cathedral
    3. GTA V

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

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
vivelapsp

Change clothes in game

Recommended Posts

vivelapsp

//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 !

Share this post


Link to post
Share on other sites
PLPynton

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.

Share this post


Link to post
Share on other sites
vivelapsp

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

Share this post


Link to post
Share on other sites
PLPynton

i have missed that

 

09C7: change_player_skin $PLAYER_CHAR to 0

 

Share this post


Link to post
Share on other sites
vivelapsp

No, thanks for your answers but i have already think to this code (with 0 for cj), i have big smoke and not cj...

Share this post


Link to post
Share on other sites
PLPynton

what? it changes to "BigSmoke" skin with parameter 0? impossible. nevermind just experiment a bit.

Share this post


Link to post
Share on other sites
vivelapsp

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  

 

Share this post


Link to post
Share on other sites
PLPynton

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

Share this post


Link to post
Share on other sites
vivelapsp

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

Share this post


Link to post
Share on other sites
PLPynton

you are welcome and do not worry, noone will call you a noob, after all you found your solution by yourself!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
PLPynton

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
PLPynton

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.

Share this post


Link to post
Share on other sites
vivelapsp

I post just because I want tell you thanks : i have tested and it works perfectly. I have now a menu with hot coffee on/off ! Thanks you again icon14.gif

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
PLPynton

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.

Share this post


Link to post
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 ?

Share this post


Link to post
Share on other sites
PLPynton

use parameters 0 and 0 to remove itemtype. there was answer for car repairs, look again.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
ZAZ

 

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

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
vivelapsp

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

Share this post


Link to post
Share on other sites
ZAZ

 

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

Share this post


Link to post
Share on other sites
vivelapsp

OK, with this opcode it works perfectly ! Thanks for help me again, ZAZ.

 

Someone for the others questions ? How not rewrite the big code again and again for cutscene ?

 

Thanks to plpynthon, zaz, and gtaforums who help me since the beginning !

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.