Little Help here? ;)
#1

I'm currently using the SetPlayerAttachedObject Function to attach the Garbage Bag object to the player hand (Bone 6 - Right hand) But when i tested this, the object wasn't really Placed at the right hand of the player, here check the Screen Shot below.

Is there anyway to attach this object in the right hand of the player correctly?
Reply
#2

You might want to try using offsets

pawn Код:
SetPlayerAttachedObject(playerid, index, modelid, bone, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ);
Reply
#3

Can u help me setting those offsets to attach the object on the right place?
Reply
#4

It looks just fine to me...

See what you can dig up on the SA-MP Wiki about using offsets with the "SetPlayerAttachedObject" function.
Reply
#5

You'll just have to experiment with the offsets yourself. Slice made an offset editor, search for it.

And interesting concept, having prisoners take out trash for you!
Reply
#6

http://forum.sa-mp.com/showthread.ph...highlight=Hold

Play with it.
Reply
#7

oh thanks for the help guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)