PDA

View Full Version : Attach Object to player.


Kalroz
09/08/2012, 12:01 PM
Hello all I've seen some scripts where we gets caps/hats/holding objects attached to our body.
But i want to know how could we get the coordinates of the body to attach object.
I know how to create objects with X Y Z pos.
But how attaching coordinates,is there any cmd to get pos or any script?

Waiting for a good reply.....

[MM]RoXoR[FS]
09/08/2012, 12:32 PM
http://wiki.sa-mp.com/wiki/AttachObjectToPlayer

Is will automatically find body coordinates.

Kalroz
09/08/2012, 03:02 PM
I looked that before but i didnt understand.
How can I get the coordinates if i need to attachobject on player's head.
How can I get the coordinates if i need to attachobject on player's hand.....
Please help me.

XStormiest
09/08/2012, 03:08 PM
hmmm.........
using this http://wiki.sa-mp.com/wiki/SetPlayerAttachedObject + http://wiki.sa-mp.com/wiki/AttachObjectToPlayer = attaching the object