News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: The easiest way to change a ped's faction?  (Read 2038 times)

0 Members and 1 Guest are viewing this topic.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
The easiest way to change a ped's faction?
« on: May 21, 2013, 06:11:24 PM »
Whas the easiest way yo change a ped's faction.  I mean

for example.

Johnny to jocks

:)

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: The easiest way to change a ped's faction?
« Reply #1 on: May 21, 2013, 10:44:03 PM »
If I remember right to do this you can do it via lua using:

PedSetFaction(ped id, faction id) or PedSetFaction(ped id, faction id, true)

I never mapped out what each faction is which number since it is not the same as the factions listed elsewhere in the text based config files.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: The easiest way to change a ped's faction?
« Reply #2 on: May 22, 2013, 04:12:31 AM »
Thank you!  :)

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: The easiest way to change a ped's faction?
« Reply #3 on: May 23, 2013, 02:49:16 AM »
You are welcome.  :laugh: