Hi everyone, I'm looking for source code to change my character![]()
|
|
|
|
Would you like to get all the new info from
PSX-Scene in your email each day?
Want to learn more about the team keeping you up to date with the latest scene news?
Read about them now! Check out our Developer bios, too! | ||
|
|
Hi everyone, I'm looking for source code to change my character![]()
Shouldn't this have been posted in the Mega Script thread?
Anyway...
If you do not have the GetPlayerPed definition (Normally found in common.h as provided by SCOCL), then make sure you use this:Code:int changePlayerModel(uint hash) { Ped player = GetPlayerPed(); CHANGE_PLAYER_MODEL(&player, hash); return 0; } changePlayerModel(0x907AF88D); // 0x907AF88D is the hash for the Security Guard (Lenny).
List of model hashes:Code:Ped GetPlayerPed(void) { Ped playerped = INVALID_HANDLE; if ( PLAYER_HAS_CHAR(GetPlayerIndex()) ) GET_PLAYER_CHAR(GetPlayerIndex(), &playerped); return playerped; }
List of models hashes - GTAModding
Yeah, this should have been posted in the "General Help Thread", please post all future questions there.![]()
such questions should be posted in " general help " thread :
http://psx-scene.com/forums/f276/general-help-108124/
closed !
| « Previous Thread | Next Thread » |