Closed kristoisberg closed 8 years ago
Can't be done; AttachPlayerObjectToPlayerObject does not exist (anymore). https://wiki.sa-mp.com/wiki/AttachPlayerObjectToPlayer
Yeah, it has already been added, but you'll need to have YSF loaded to use it.
I know that AttachDynamicObjectToObject is already included in the plugin and I have nothing against using YSF, but I was talking about AttachDynamicObjectToDynamicObject. I guess it could be added if kurta added the AttachPlayerObjectToPlayerObject native to YSF.
AttachDynamicObjecToObject attach object to DYNAMIC object. Not to global object, but AttachDynamicObjectToDynamicObject is longer than 32 character and max native function name is 32 char.
https://github.com/kurta999/YSF/blob/YSF_/src/Scripting.cpp#L4560
Oh, I didn't know that, sorry.
native AttachDynamicObjectToDynamicObject(STREAMER_TAG_OBJECT objectid, STREAMER_TAG_OBJECT attachtoid, Float:offsetx, Float:offsety, Float:offsetz, Float:rx, Float:ry, Float:rz, syncrotation = 1);
Not a lot to specify here. I'm not active in SA-MP right now but I remember that I needed it some time ago.