ValerioV Posted December 29, 2010 Share Posted December 29, 2010 Hi, what must i do because i want to change CJ's starting clothes? When i start a new game CJ starts with a white vest,blue jeans and black shoes and cesar haircut. So, what must i do because i want that he starts with other clothes and haircut? Thanks. Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/ Share on other sites More sharing options...
Peppo_o'Paccio Posted December 30, 2010 Share Posted December 30, 2010 You have to open the main.scm file with Sanny Builder and change the lines from 988 to 991 with the clothes you want (there is a list of them in F12). Obviously you'll need to restart the game. koragg 1 Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1060270432 Share on other sites More sharing options...
DYOMMissionMaker Posted December 30, 2010 Share Posted December 30, 2010 Hi,what must i do because i want to change CJ's starting clothes? When i start a new game CJ starts with a white vest,blue jeans and black shoes and cesar haircut. So, what must i do because i want that he starts with other clothes and haircut? Thanks. Change the main.scm to load the clothes at the start of the game i'm not giving a tutorial though Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1060270521 Share on other sites More sharing options...
ValerioV Posted December 30, 2010 Author Share Posted December 30, 2010 Thanks to all, it works.I have another question : is it possible to make cj's already with muscle at the beginning by editing the main.scm? Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1060270582 Share on other sites More sharing options...
ValerioV Posted December 30, 2010 Author Share Posted December 30, 2010 Ops.I have got a problem.I made cj start with The Blue hoody, the beige chinos and the brown boots (the clothes are from the clothes shop ZIP) and the cornrows haircut but,when i finish the mission Sweet e Kendl and i go to the Jhonson house and next to the wardrobe these clothes aren't in the wardrobe.How can i fix this problem? Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1060270593 Share on other sites More sharing options...
TheSiggi Posted December 30, 2010 Share Posted December 30, 2010 Sure they are not in the waredrobe since you have not bought them So buy some new clothes and that should fix your problem Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1060270625 Share on other sites More sharing options...
ValerioV Posted December 30, 2010 Author Share Posted December 30, 2010 Yes, but the problem is that when i go to the wardrobe , in the list there is wrote only "Binco" and not Zip, and if i click on binco it is empty (this is normal because he haven't binco clothes) Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1060270696 Share on other sites More sharing options...
Hamzeol Murf Posted April 13, 2017 Share Posted April 13, 2017 What Do You Mean By Line 988-991? There's This String For Intro Clothing set_weather 1 Player.SetClothes($PLAYER_CHAR, "VEST", "VEST", Torso) Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs) Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes) Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head) $2549 = 1 Player.Build($PLAYER_CHAR) 0793: save_player_clothes 0169: set_fade_color_RGB 0 0 0 fade 0 0 But The Game Crashes After I Change The Clothe Models Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1069514740 Share on other sites More sharing options...
deltaCJ Posted April 13, 2017 Share Posted April 13, 2017 What Do You Mean By Line 988-991? There's This String For Intro Clothing set_weather 1 Player.SetClothes($PLAYER_CHAR, "VEST", "VEST", Torso) Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs) Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes) Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head) $2549 = 1 Player.Build($PLAYER_CHAR) 0793: save_player_clothes 0169: set_fade_color_RGB 0 0 0 fade 0 0 But The Game Crashes After I Change The Clothe Models Don't Bump old threads, also make sure you have the TEXTURE First, and THEN THE DFF MODEL so it does like this: "PLAYER_TEXT", "DFFMODEL", Head Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1069514839 Share on other sites More sharing options...
Hamzeol Murf Posted April 13, 2017 Share Posted April 13, 2017 deltaCJ, Post A Screen Shot Outta It. Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1069515340 Share on other sites More sharing options...
deltaCJ Posted April 14, 2017 Share Posted April 14, 2017 (edited) This right here. Press F12 in sanny builder and this should come up: This is the sanny builder help section. Click on SCM Documentation then Click on GTA SA Then Click on one of the clothes options. Send me your script. Edited April 14, 2017 by deltaCJ Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1069515464 Share on other sites More sharing options...
DK22Pac Posted April 22, 2017 Share Posted April 22, 2017 (edited) In case if you don't want to touch main.scm, here you go #include "plugin.h"#include "game_sa\CWorld.h"#include "game_sa\CRunningScript.h"using namespace plugin;class CustomClothes {public: CustomClothes() { static ThiscallEvent<AddressList<0x471A74, H_CALL>, PRIORITY_AFTER, ArgPickN<CRunningScript*, 0>, void(CRunningScript*, int)> onClothesOpcodeCollect; static ThiscallEvent<AddressList<0x471AD0, H_CALL>, PRIORITY_AFTER, ArgPickN<int, 3>, void(void*, char *, char *, int)> onClothesOpcodeSetClothes; static char *pszCurrentScriptName; static int nCurrentPlayer; static config_file config(PLUGIN_PATH("player_clothes.dat")); onClothesOpcodeCollect += [](CRunningScript *script) { pszCurrentScriptName = script->m_szName; // save current thread name nCurrentPlayer = *reinterpret_cast<int *>(0xA43C78); // get player id }; onClothesOpcodeSetClothes += [](int bodyPartId) { if (!_stricmp(pszCurrentScriptName, "MAIN") && nCurrentPlayer == 0) { // if we are in MAIN thread CPedClothesDesc *desc = CWorld::Players[0].m_pPed->m_pPlayerData->m_pPedClothesDesc; switch (bodyPartId) { case 0: CallMethod<0x5A8080>(desc, config["TORSO_TEXTURE"].asString("VEST").c_str(), config["TORSO_MODEL"].asString("VEST").c_str(), 0); break; case 1: CallMethod<0x5A8080>(desc, config["HEAD_TEXTURE"].asString("PLAYER_FACE").c_str(), config["HEAD_MODEL"].asString("HEAD").c_str(), 1); break; case 2: CallMethod<0x5A8080>(desc, config["LEGS_TEXTURE"].asString("JEANSDENIM").c_str(), config["LEGS_MODEL"].asString("JEANS").c_str(), 2); break; case 3: CallMethod<0x5A8080>(desc, config["SHOES_TEXTURE"].asString("SNEAKERBINCBLK").c_str(), config["SHOES_MODEL"].asString("SNEAKER").c_str(), 3); break; } } }; }} myPlugin;And the config file will look like this TORSO_TEXTURE "TSHIRTMADDGREY"TORSO_MODEL "TSHIRT"HEAD_TEXTURE "PLAYER_FACE"HEAD_MODEL "HEAD"LEGS_TEXTURE "SHORTSKHAKI"LEGS_MODEL "SHORTS"SHOES_TEXTURE "BASK1ERIS"SHOES_MODEL "BASK1" CustomClothes.asiplayer_clothes.dat Edited January 5, 2018 by DK22Pac eagle152, Apu889, Vishmak and 1 other 4 Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1069530785 Share on other sites More sharing options...
Datalvarezguy Posted September 29, 2018 Share Posted September 29, 2018 On 12/30/2010 at 12:30 PM, ValerioV said: Ops.I have got a problem.I made cj start with The Blue hoody, the beige chinos and the brown boots (the clothes are from the clothes shop ZIP) and the cornrows haircut but,when i finish the mission Sweet e Kendl and i go to the Jhonson house and next to the wardrobe these clothes aren't in the wardrobe.How can i fix this problem? Quick question, how in the name of hell did you manage to do that? I am editing the starting clothes in main.scm and nothing is changing. Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1070460741 Share on other sites More sharing options...
CarlJohnsonXXX Posted April 15, 2020 Share Posted April 15, 2020 On 4/14/2017 at 4:40 AM, Hamzeol Murf said: deltaCJ, Post A Screen Shot Outta It. Hey man, my codes look different,its my first time and I can't figure out anything.help! Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1071175166 Share on other sites More sharing options...
ZAZ Posted April 16, 2020 Share Posted April 16, 2020 go here and read tutorial Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1071178208 Share on other sites More sharing options...
LlNETlME Posted July 15, 2022 Share Posted July 15, 2022 How do I change CJ clothes to a Police uniform? using 'main.scm' and 'Sanny builder' Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1071894110 Share on other sites More sharing options...
topraksaymann Posted March 26, 2023 Share Posted March 26, 2023 (edited) On 4/22/2017 at 3:12 AM, DK22Pac said: In case if you don't want to touch main.scm, here you go #include "plugin.h"#include "game_sa\CWorld.h"#include "game_sa\CRunningScript.h"using namespace plugin;class CustomClothes {public: CustomClothes() { static ThiscallEvent<AddressList<0x471A74, H_CALL>, PRIORITY_AFTER, ArgPickN<CRunningScript*, 0>, void(CRunningScript*, int)> onClothesOpcodeCollect; static ThiscallEvent<AddressList<0x471AD0, H_CALL>, PRIORITY_AFTER, ArgPickN<int, 3>, void(void*, char *, char *, int)> onClothesOpcodeSetClothes; static char *pszCurrentScriptName; static int nCurrentPlayer; static config_file config(PLUGIN_PATH("player_clothes.dat")); onClothesOpcodeCollect += [](CRunningScript *script) { pszCurrentScriptName = script->m_szName; // save current thread name nCurrentPlayer = *reinterpret_cast<int *>(0xA43C78); // get player id }; onClothesOpcodeSetClothes += [](int bodyPartId) { if (!_stricmp(pszCurrentScriptName, "MAIN") && nCurrentPlayer == 0) { // if we are in MAIN thread CPedClothesDesc *desc = CWorld::Players[0].m_pPed->m_pPlayerData->m_pPedClothesDesc; switch (bodyPartId) { case 0: CallMethod<0x5A8080>(desc, config["TORSO_TEXTURE"].asString("VEST").c_str(), config["TORSO_MODEL"].asString("VEST").c_str(), 0); break; case 1: CallMethod<0x5A8080>(desc, config["HEAD_TEXTURE"].asString("PLAYER_FACE").c_str(), config["HEAD_MODEL"].asString("HEAD").c_str(), 1); break; case 2: CallMethod<0x5A8080>(desc, config["LEGS_TEXTURE"].asString("JEANSDENIM").c_str(), config["LEGS_MODEL"].asString("JEANS").c_str(), 2); break; case 3: CallMethod<0x5A8080>(desc, config["SHOES_TEXTURE"].asString("SNEAKERBINCBLK").c_str(), config["SHOES_MODEL"].asString("SNEAKER").c_str(), 3); break; } } }; }} myPlugin; And the config file will look like this TORSO_TEXTURE "TSHIRTMADDGREY"TORSO_MODEL "TSHIRT"HEAD_TEXTURE "PLAYER_FACE"HEAD_MODEL "HEAD"LEGS_TEXTURE "SHORTSKHAKI"LEGS_MODEL "SHORTS"SHOES_TEXTURE "BASK1ERIS"SHOES_MODEL "BASK1" CustomClothes.asi player_clothes.dat So uh, both of these files are gone. What do I do? Edited March 26, 2023 by topraksaymann forgot things Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1072111988 Share on other sites More sharing options...
ArmanCan Posted March 26, 2023 Share Posted March 26, 2023 1 hour ago, topraksaymann said: So uh, both of these files are gone. What do I do? your code is broken.. use these instead.. #include "plugin.h" #include "game_sa\CWorld.h" #include "game_sa\CRunningScript.h" using namespace plugin; class CustomClothes { public: CustomClothes() { static ThiscallEvent<AddressList<0x471A74, H_CALL>, PRIORITY_AFTER, ArgPickN<CRunningScript*, 0>, void(CRunningScript*, int)> onClothesOpcodeCollect; static ThiscallEvent<AddressList<0x471AD0, H_CALL>, PRIORITY_AFTER, ArgPickN<int, 3>, void(void*, char *, char *, int)> onClothesOpcodeSetClothes; static char *pszCurrentScriptName; static int nCurrentPlayer; static config_file config(PLUGIN_PATH("player_clothes.dat")); onClothesOpcodeCollect += [](CRunningScript *script) { pszCurrentScriptName = script->threadName; // save current thread name nCurrentPlayer = *reinterpret_cast<int *>(0xA43C78); // get player id }; onClothesOpcodeSetClothes += [](int bodyPartId) { if (!_stricmp(pszCurrentScriptName, "MAIN") && nCurrentPlayer == 0) { // if we are in MAIN thread CClothes *desc = CWorld::Players[0].m_pPed->m_pPlayerData->m_pClothes; switch (bodyPartId) { case 0: CallMethod<0x5A8080>(desc, config["TORSO_TEXTURE"].asString("VEST").c_str(), config["TORSO_MODEL"].asString("VEST").c_str(), 0); break; case 1: CallMethod<0x5A8080>(desc, config["HEAD_TEXTURE"].asString("PLAYER_FACE").c_str(), config["HEAD_MODEL"].asString("HEAD").c_str(), 1); break; case 2: CallMethod<0x5A8080>(desc, config["LEGS_TEXTURE"].asString("JEANSDENIM").c_str(), config["LEGS_MODEL"].asString("JEANS").c_str(), 2); break; case 3: CallMethod<0x5A8080>(desc, config["SHOES_TEXTURE"].asString("SNEAKERBINCBLK").c_str(), config["SHOES_MODEL"].asString("SNEAKER").c_str(), 3); break; } } }; } } myPlugin; TORSO_TEXTURE "TSHIRTMADDGREY" TORSO_MODEL "TSHIRT" HEAD_TEXTURE "PLAYER_FACE" HEAD_MODEL "HEAD" LEGS_TEXTURE "SHORTSKHAKI" LEGS_MODEL "SHORTS" SHOES_TEXTURE "BASK1ERIS" SHOES_MODEL "BASK1" and his asi/dat files seems no longer exist.. you should try send a P.M instead of writing here Link to comment https://gtaforums.com/topic/466300-qhow-can-i-change-cjs-starting-clothes/?do=findComment&comment=1072112015 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