Function EditObject
#3

make sure you use OnPlayerEditObject.

as you can see there in the example, it keeps setting the object's position to the position you dragged it to, try doing it for the 3dtextlabel too, it should work just fine

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
Also, is the 3D Text object attached to the object? Are you using streamer or the regular objects?
there's no such function in samp


What you could do is:

pawn Код:
enum E_OBJECT_DATA
{
    E_OBJ_ID,
    E_OBJ_MODELID,
    Text3D:E_OBJ_TEXT
    // the rest of the stuff such as X, Y and Z coords/rots
};

new Objects[ MAX_PLAYERS ][ E_OBJECT_DATA ];

// when object is created
Objects[ playerid ][ E_OBJ_TEXT ] = CreatePlayer3DTextLabel(playerid,"w.e you wanna put here", your_color, X,Y,Z,draw_distance);

// at OnPlayerEditObject
Delete3DTextLabel( Objects[ playerid ][ E_OBJ_TEXT ] );
Objects[ playerid ][ E_OBJ_TEXT ] = CreatePlayer3DTextLabel(playerid,"w.e you wanna put here", your_color, X,Y,Z,draw_distance);
// and the object position updating etc.
Reply


Messages In This Thread
Function EditObject - by Garwan50 - 14.03.2015, 23:32
Re: Function EditObject - by JaKe Elite - 14.03.2015, 23:41
Re: Function EditObject - by Smileys - 14.03.2015, 23:42
Re : Function EditObject - by Garwan50 - 15.03.2015, 02:00

Forum Jump:


Users browsing this thread: 1 Guest(s)