ArmanCan Posted March 26 Share Posted March 26 (edited) Hello guys..  I'm trying to pickup and wear Valet Uniform for Valet Parking Mission without going to safehouse and entering a wardrobe.. i've created myself a pickup icon (pickinp up also clears my wanted level wich is nice ) but CJ can not wear the uniform right after i pickup this..  I'm also posting the whole script  Have a nice holiday  {$CLEO .cs} 0000: :Clothes_Pickup 0213: [email protected] = create_pickup #CLOTHESP 15 -1731.585 991.325 17.6 // In Front Of The Hotel's Underground Garage Booth :Clothes_Pickup_Part_20001 wait 0 00D6: if 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false @Clothes_Pickup_Part_20001 00D6: if 0 0214: pickup [email protected] picked_up 004D: jump_if_false @Clothes_Pickup_Part_20001 087B: set_player $PLAYER_CHAR clothes_texture "FIELD" model "FIELD" body_part 0 // TORSO 087B: set_player $PLAYER_CHAR clothes_texture "WORKTRCAMOGRN" model "WORKTR" body_part 2 // LEGS 087B: set_player $PLAYER_CHAR clothes_texture "SNEAKERBINCBLK" model "SNEAKER" body_part 3 // SHOES 087B: set_player $PLAYER_CHAR clothes_texture "GROOVECUT" model "GROOVECUT" body_part 1 // HAIRCUT Player.SetClothes($PLAYER_CHAR, "VALET", "VALET", BodyPart.Special) Player.Build($PLAYER_CHAR) 0110: clear_player $PLAYER_CHAR wanted_level 004E: end_thread  Edit: I've edited the script.. you can use it if you want Second Edit: According to ZAZ's warnings i need to fix that.. Third Edit: I've fixed it, tested it, never encountered any problems and the pickup regenerate itself as usual Edited March 27 by ArmanCan Link to comment Share on other sites More sharing options...
OrionSR Posted March 26 Share Posted March 26 27 minutes ago, ArmanCan said: but CJ can not wear the uniform right after i pickup this I haven't looked at your script very closely, but I was expecting to find opcode 070D near the end to finalize the outfit. There should be plenty of examples of 070D's use in main.scm. Â 070D: rebuild_player $PLAYER_CHAR Â ArmanCan 1 Link to comment Share on other sites More sharing options...
ArmanCan Posted March 26 Author Share Posted March 26 Hello @OrionSR  yes.. it worked.. thank you OrionSR 1 Link to comment Share on other sites More sharing options...
ZAZ Posted March 27 Share Posted March 27 (edited) the script has critical jump advises that can cause crash, it creates thousands of pickups  :Clothes_Pickup 0213: 0@ = create_pickup #CLOTHESP 3 -1731.585 991.325 17.6 // In Front Of The Hotel's Underground Garage Booth :Clothes_Pickup_Part_20001 wait 0 00D6: if 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false @Clothes_Pickup <--- not good to lead it to this label 00D6: if 0 0214: pickup [email protected] picked_up 004D: jump_if_false @Clothes_Pickup <--- not good to lead it to this label  it should lead to Clothes_Pickup_Part_20001  :Clothes_Pickup 0213: 0@ = create_pickup #CLOTHESP 3 -1731.585 991.325 17.6 // In Front Of The Hotel's Underground Garage Booth :Clothes_Pickup_Part_20001 wait 0 if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @Clothes_Pickup_Part_20001 if 0214: pickup [email protected] picked_up 004D: jump_if_false @Clothes_Pickup_Part_20001   Also, make pickup type to 15 if the pickup should be come again  0213: [email protected] = create_pickup #CLOTHESP 15  and remove 0215: destroy_pickup [email protected]  pickup type 3 to let the pickup appear only once 0213: [email protected] = create_pickup #CLOTHESP 3  then destroy_pickup is also useless  Furthermore it need to do something to avoid duplicated pickups when you make savegame and load the save It's a cleo related problem OMG your script is so bad Edited March 27 by ZAZ ArmanCan 1 CLEO MODS   CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ArmanCan Posted March 27 Author Share Posted March 27 (edited) Hallo ZAZ.. Wie geht's dir?  7 hours ago, ZAZ said: the script has critical jump advises that can cause crash, it creates thousands of pickups   I've copied these from 15 years old topic and customized the content.. My intention was to pick it up once, get rid of this pickup, wear the uniform and start the valet mission.. i've tested to wear, start/complete the mission and get rid of it by changing clothes in wardrobe but i've never saved/reloaded it after..   7 hours ago, ZAZ said: it should lead to Clothes_Pickup_Part_20001   Like i said above these codes are really old and because of that i think i messed up this leading part  7 hours ago, ZAZ said: Furthermore it need to do something to avoid duplicated pickups when you make savegame and load the save   I see you modders are little bit anxious about new pickups but actually i don't care.. i will try to fix by your instructions and test again   Edit: I've did your changes and edited my post.. Edited March 27 by ArmanCan Link to comment Share on other sites More sharing options...
ZAZ Posted March 27 Share Posted March 27 yes, looks better but in this case the pickup type 15 doesn't makes sense, because if the pickup appears again, nothing happens when he get picked up but it also doesn't matter and as long as you don't make a savegame, you're on the safe side CLEO MODSÂ Â Â CLEO Script Tutorial Link to comment 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