Quantcast

Jump to content

» «
Photo

C++ ScriptHook, Changing model to "Multiplayer Model"

1 reply to this topic
formel117
  • formel117

    Player Hater

  • Members
  • Joined: 13 Jun 2013
  • None

#1

Posted 30 January 2014 - 10:19 PM Edited by formel117, 30 January 2014 - 10:21 PM.

Hi. I've been trying to figure out how to change my player back to the Multiplayer Model I have normally when joining a server, after having changed it to other models.

The code I have right now should be correct I think, but it is crashing my GTA.

eModel model = GetPlayerSettingsModelChoice();
RequestModel(model);
while(!HasModelLoaded(model))
{
    Wait(0);
}

eInteriorRoomKey roomKey;    
GetKeyForCharInRoom(GetPlayerPed(), &roomKey);
ChangePlayerModel(GetPlayer(), model);
SetRoomForCharByKey(GetPlayerPed(), roomKey);
MarkModelAsNoLongerNeeded(model);

Any help with this would be appreciated!


Jitnaught
  • Jitnaught

    ✰✰✰✰✰✰

  • Members
  • Joined: 24 Aug 2013
  • United-States

#2

Posted 13 June 2014 - 05:15 PM

Hi. I've been trying to figure out how to change my player back to the Multiplayer Model I have normally when joining a server, after having changed it to other models.

The code I have right now should be correct I think, but it is crashing my GTA.

eModel model = GetPlayerSettingsModelChoice();
RequestModel(model);
while(!HasModelLoaded(model))
{
    Wait(0);
}

eInteriorRoomKey roomKey;    
GetKeyForCharInRoom(GetPlayerPed(), &roomKey);
ChangePlayerModel(GetPlayer(), model);
SetRoomForCharByKey(GetPlayerPed(), roomKey);
MarkModelAsNoLongerNeeded(model);

Any help with this would be appreciated!

 

I don't know how to get your specific mp model, but I know that MODEL_M_Y_MULTIPLAYER is the model for male multiplayer. This would just be a random mp model though





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users