AttachObjectToPlayer
#1

I have this code:
pawn Код:
new Float:X,Float:Y,Float:Z;
        new moneybag;
        GetPlayerPos(playerid,X,Y,Z);
        moneybag = CreateObject(1550,X,Y,Z,0.0, 0.0, 96.0);
        AttachObjectToPlayer( moneybag, playerid, 0.0, -0.4, 0.3, 0, 1.5, 2 );
But when the object appears it's makes the camera go closer to the player and I can't see anything, I mean when you press V in GTA SA to change camera view it's not helping...
Reply
#2

Use SetPlayerAttachedObject instead of AttachObjectToPlayer.

With this FS you can get the coords and see some examples of function params:

https://sampforum.blast.hk/showthread.php?tid=182317
Reply
#3

WoW Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)