using CDialog__Show = void ( __thiscall * ) ( void * , void * , int , int , int , const char * , const char * , const char * , const char * , bool ) ; kthook :: kthook_simple CDialog__Show_Hook ; void customhook ( ) { SampDLL = reinterpret_cast ( GetModuleHandle ( "samp.dll" ) ) ; CDialog__Show_Hook . set_dest ( SampDLL + 0x6B3E7 ) ; CDialog__Show_Hook . set_cb ( [ ] ( const decltype ( CDialog__Show_Hook ) & hook , void * pDialog , void * EDX , int a2 , int nId , int nType , const char * Source , const char * szText , const char * szLeftButton , const char * szRightButton , bool bServerside ) { Source = "custom text" ; return hook . get_trampoline ( ) ( pDialog , EDX , a2 , nId , nType , Source , szText , szLeftButton , szRightButton , bServerside ) ; } ) ; CDialog__Show_Hook . install ( ) ; }