PreviewModel don't update ?
#3

Try to re-show the textdraw to the player.
PHP код:
if(dialogid == DIALOG_SEXE)
{
    if(
response)
    {
        if(
listitem == 0)
        {
            
PlayerInfo[playerid][pSex]=1;SetPlayerSkin(playerid26);PlayerInfo[playerid][pChar] = 26;
            
format(MessageInscrisizeof(MessageInscri), "Sexe: Homme");
            
PlayerTextDrawSetString(playeridCreationperso[playerid][12], MessageInscri);
            
PlayerTextDrawSetPreviewModel(playeridCreationperso[playerid][7], 26);
            
PlayerTextDrawShow(playeridCreationperso[playerid][7]);
            
PlayerTextDrawShow(playeridCreationperso[playerid][12]);
            
SelectTextDraw(playerid0x0080FF);
        }
        else if(
listitem == 1)
        {
            
PlayerInfo[playerid][pSex]=2;SetPlayerSkin(playerid29;PlayerInfo[playerid][pChar] = 298;
            
format(MessageInscrisizeof(MessageInscri), "Sexe: Femme");
            
PlayerTextDrawSetString(playeridCreationperso[playerid][12], MessageInscri);
            
PlayerTextDrawSetPreviewModel(playeridCreationperso[playerid][7], 29;
            
PlayerTextDrawShow(playeridCreationperso[playerid][7]);
            
PlayerTextDrawShow(playeridCreationperso[playerid][12]);
            
SelectTextDraw(playerid0x0080FF);
        }
    }

Reply


Messages In This Thread
PreviewModel don't update ? - by Inuro - 12.07.2018, 11:43
Re: PreviewModel don't update ? - by Florin48 - 12.07.2018, 12:19
Re: PreviewModel don't update ? - by Vennox - 12.07.2018, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)