CWeapon * wpn = PEDSELF -> GetWeapon ( PEDSELF -> GetCurrentWeaponSlot ( ) ) ; eWeaponType wtype = wpn -> GetType ( ) ;
void mapMenuTeleport ( void ) { if ( ( * ( int * ) 0xBA6774 != 0 ) ) { // ty to Racer_S for this float mapPos [ 3 ] ; for ( int i = 0 ; i GetWorld ( ) -> FindGroundZForPosition ( pos [ 0 ] , pos [ 1 ] ) + 2.0f ; PEDSELF -> Teleport ( mapPos [ 0 ] , mapPos [ 1 ] , mapPos [ 2 ] ) ; } } } }