SF -> getSAMP ( ) -> registerChatCommand ( "func" , [ ] ( std :: string params ) { using func_type = int ( __stdcall * ) ( const char * a1 , int a2 , int a3 ) ; func_type func = reinterpret_cast ( ( DWORD ) ( GetModuleHandle ( "samp.dll" ) + 0x9C2C0 ) ) ; func ( "Func called" , 0x3E8 , 5 ) ; } ) ;