Help SetPlayerAttachedObject
#1

how can i know this code? save where? Is it like saving checkpoint of
savedpositions.txt ?
2, 0.07, 0.017, 0, 88, 75, 0 in SetPlayerAttachedObject

I want to have an object in my character's hand
how do i write this code so that it can be like what i want?
Reply
#2

Help help help
Reply
#3

Read the wiki: https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

In your case it'd be something like:

Код:
SetPlayerAttachedObject(playerid, index, modelid, 5) // Left hand

SetPlayerAttachedObject(playerid, index, modelid, 6) // Right hand
You can add XYZ offsets and Rotation XYZ offsets to better position the object.
Reply
#4

Quote:
Originally Posted by AnthonyTimmers
Посмотреть сообщение
Read the wiki: https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

In your case it'd be something like:

Код:
SetPlayerAttachedObject(playerid, index, modelid, 5) // Left hand

SetPlayerAttachedObject(playerid, index, modelid, 6) // Right hand
You can add XYZ offsets and Rotation XYZ offsets to better position the object.
Thanks Bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)