//функция CVector GetBonePosition ( void * cped , byte BoneID ) { CVector Position ; typedef void ( __thiscall * CPed__getBonePositionWithOffset ) ( void * _this , CVector * offset , int bodeId , bool includeAnim ) ; if ( cped != nullptr ) { ( CPed__getBonePositionWithOffset ( 0x5E01C0 ) ) ( cped , & Position , BoneID , true ) ; } return Position ; } ; //вызов void * cped = ( void * ) 0xb6f5f0 ; if ( cped != nullptr ) { CVector headpos = GetBonePosition ( cped , 8 ) ; }
void * cped = * ( void * * ) ( 0xB6F5F0 )