Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

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

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

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    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. Design Your Own Mission
      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
    1. Announcements

    2. Support

    3. Suggestions

How To Wear Valet Uniform Without Entering Into Wardrobe?


ArmanCan
 Share

Recommended Posts

ArmanCan

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 by ArmanCan
Link to comment
Share on other sites

OrionSR
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 

 

Link to comment
Share on other sites

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 by ZAZ
Link to comment
Share on other sites

ArmanCan
Posted (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 by ArmanCan
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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