Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

pedVariations - How to get props to spawn on peds

Featured Replies

How do I make it so that props will spawn with a ped? Specifically, I've added Bxbugs's paramedic helmet to the game, and I want it to spawn on all pmedics.

  • Author

Any time I post about pedVariations, my thought process is "PM Custo? or put it on public forums?"

How do I make it so that props will spawn with a ped? Specifically, I've added Bxbugs's paramedic helmet to the game, and I want it to spawn on all pmedics.

Just go into peds.ide file within the common folders area, find M_Y_PMEDIC and change the prop name into the actual prop... and yes, you can mix-match helmets and hats with peds... also use null, if you do not want hats/props with peds. Hope that helps...

Edited by Nutt

The prop works if I manually spawn it, but it doesn't spawn on natural peds.

So the added helmet doesn't replace any of the current props? So I'm guessing it's a new added prop within itself - correct?

Here's something I've said before, might or might not help. Take a read through if you like:

The Job value is setup for peds who are spawned during a job sequence. Of course, this value is bugged and only works on the police. I'm sure the original idea is that when a security guard, taxi driver, food vender, or cop spawned, they'd spawn with specific clothing. So the idea is, you can see a civillian version of them. Good idea, to bad it's not setup that way. Since the cops are, well shit, always cops.

Here's how the Job value works. If it's set to 0, when a cop spawns, he will not spawn with it. This rule mostly applys to hats and glasses. Clothing that is attached to the model its self is not normally affect. Just has a lower chance of spawning.

So if you wanted the police to stop spawning with hats, naturally, turn the value for p_head to 0. You will notice police will stop spawning with hats. If you check their hat models via SparkIV, or OpenIV, you will notice there are glasses as well! To make them spawn with glasses, you need to set the p_eyes job value to 1.

Of course, these hats/miscs that don't normally spawn are not in the list in pedVariations.dat. Since the rule is the same all around for this file. Just copy p_head line, paste it under the bottom line, and rename it to p_eyes. Now if you have a second hat you would like them to spawn with, you will just need to update the geometry value. Witch is, what number model is this? For this instance, 1.

I noticed fat cops have a watch with their hats, it's model name is p_lwrist. So, same steps with the glasses. Bam! Fat cops now spawn with watchs.

As a final note when adding these new lines, you must update the number next to the model name. That number tells the game, how many clothing variables that model has. If the number is under the amount of lines that are bellow, you will crash apon loading the game up. So make sure this number is up to date when adding new lines. Removing lines and not updating the number doesn't seem to affect it.

EDIT: Holy fucking shit, why did I type all of this?! o_0

Anyways, if you are adding hats to a ped that doesn't use hats, you will need to activate it via peds.ide.


M_Y_pmedic,   null,   MEDIC,   move_m@bness_a,  GESTURES@MALE,  GESTURES@M_PHONE, FACIALS@M_LO,  visemes@m_lo,  0,   move_m@bness_a,  null,   -1,-1,  PED_TYPE_PLAYER, M_Y_PMEDIC,    VOICE_PLY_CR



You will need to replace the null after M_Y_pmedic with the hat model you would like.  If you added in a name called M_Y_pmedic_p, then use that.



M_Y_pmedic,   M_Y_pmedic_p,  MEDIC,   move_m@bness_a,  GESTURES@MALE,  GESTURES@M_PHONE, FACIALS@M_LO,  visemes@m_lo,  0,   move_m@bness_a,  null,   -1,-1,  PED_TYPE_PLAYER, M_Y_PMEDIC,    VOICE_PLY_CR





Now, if the hat is just 1 hat, then you will need to add in p_head (or what ever you named the hat) into pedVariations.dat.  Don't forget to update the value next to the model name, or your game could crash.  Refer to the spoiler section for more information.



M_Y_Pmedic, 7

#slot geometry BULK JOB SUNNY WET MAT1 RES1A RES1B RES2A RES2B AUDIO ID

feet, 0, 0, 1, 0, 0, 0, -1, -1, -1, -1, 1

head, 1, 0, 1, 0, 0, 0, -1, -1, -1, -1, 10

head, 2, 0, 1, 0, 0, 0, -1, -1, -1, -1, 10

head, 0, 0, 1, 0, 0, 0, -1, -1, -1, -1, 6

uppr, 0, 0, 1, 0, 0, 0, -1, -1, -1, -1, 2

lowr, 0, 0, 1, 0, 0, 0, -1, -1, -1, -1, 1

p_head, 0, 0, 1, 0, 0, 0, -1, -1, -1, -1, 0

end

As a note, I have no idea how the game spawns the medics. I know how they do with cops and firemen. No idea about medics.

My guess, is they are force spawned, since the medics don't seem to want to get into your vehicle when spawned as bodyguards. But I could be wrong.

If the bots are force spawned (when being spawned by the game, not by the player or scripts), the chances of the bots ever spawning with hats/glasses is never. Unless the hat model is added to the peds model its self via SUSE.

So, if the bots do spawn naturally and follow the job rule (since medic is their job), set the job value to 1 and when ever the medics spawn they should have the hat.

There's still two different versions of natural spawning peds. The civilian ped, the job ped.

Now, if the medic is spawned as a civ ped, the job value should be set to 0 or it could restrict the medics from spawning with that hat since he should only have it when on the job.

If the medic is spawned as a job ped, he must have the job value for the hat set to 1 or he will never spawn with the hat unless spawned as a civ ped.

Hope this helps out. I don't really plan on testing out how this will work on the medic ped, for I don't plan on adding hats to him at all. So it's up to you people to trial and error this. Hope this answered any questions and helps you out with this. :)

EDIT: Added some extra information.

Edited by Custo

[center][url="http://www.youtube.com/user/Runner335"][img]http://i.imgur.com/CBYih.png[/img][/url][/center]

  • Author

Thanks! Another question: Is there a way to force an uppr and a lowr to always occur together? Like, could I make it so that uppr_001 and lowr_001 are always together, and uppr_000 always has lowr_000?

I'm sure there is a way to do that. I think it has something to do with the last 4 values before the Audio ID value. I've never played with it, for there's not alot of peds that really use those values. It's something I'll play with another time, or you can if you're willing to.

[center][url="http://www.youtube.com/user/Runner335"][img]http://i.imgur.com/CBYih.png[/img][/url][/center]

  • Author

Thanks! Last question (I promise): I have a pretty good idea what geometry, job, sunny, and wet do. What are mat1, bulk, and audio id (if you know)?

Not sure what bulk does, don't think it does anything. But I notice for the police only, they always have that set to 1, not sure why.

No idea what MAT1, RES1A, RES1B, RES2A, or RES2B does. I think it does have something to do with telling clothing to only spawn with other clothing, don't quote me on that.

Audio ID tells the game what noise that should be making. Like if the hat hits the ground, what should it sound like? If your guy walks, what should his shoes sound like?

Most hats are set to 0 for that, so they make little to no noise when their hats fall to the ground.

This is what I know from looking at other peds setup.

p_head, Audio ID:

No sound, 0.

Helmet sound, 1.

feet, Audio ID:

Normal shoe sound, 1.

Sneakers sound, 2.

Dress shoes sound, 3.

Heels sound, 4.

Boots sound, 6.

That's all I know for the sound ID's.

Edited by Custo

[center][url="http://www.youtube.com/user/Runner335"][img]http://i.imgur.com/CBYih.png[/img][/url][/center]

This is a support topic.
Only reply here to offer help or assistance to cp702. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.