ISOFX 78 Posted June 5, 2015 I need help on playing audio. i looked through the natives and found this but i cant get it to work because i get some errors and you can find them below. [C++] I found this native: static void _0x8E04FEDD28D42462(Any p0, Any p1, Any p2) { invoke<Void>(0x8E04FEDD28D42462, p0, p1, p2); } i used this to play it AUDIO::_0x8E04FEDD28D42462(PLAYER::PLAYER_PED_ID(), "GENERIC_CURSE_HIGH", "SPEECH_PARAMS_FORCE"); But this gives me errors on GENERIC_CURSE_HIGH and SPEECH_PARAMS_FORCE, i tried changing parameter 1 to char and parameter 2 to char i even tried putting const char in because i get this error: error C2664: 'void AUDIO::_0x8E04FEDD28D42462(char,const char,const char)' : cannot convert argument 2 from 'const char [19]' to 'const char' and i get these 2 errors: IntelliSense: argument of type "const char *" is incompatible with parameter of type "char" IntelliSense: argument of type "const char *" is incompatible with parameter of type "char" If anyone could help me or correct this for me i would appreciate this alot. Thanks Quote Share this post Link to post Share on other sites
Jitnaught 377 Posted June 5, 2015 You need to update your natives.h file using this link and then call _PLAY_AMBIENT_SPEECH1 instead. Quote Share this post Link to post Share on other sites
ISOFX 78 Posted June 5, 2015 You need to update your natives.h file using this link and then call _PLAY_AMBIENT_SPEECH1 instead. Ok ill try but i dont think it will work. Thanks though for fast help. Quote Share this post Link to post Share on other sites
Jitnaught 377 Posted June 5, 2015 It will. The problem you are having is that the definition in the natives.h file you have right now is incorrect. Quote Share this post Link to post Share on other sites
ISOFX 78 Posted June 5, 2015 It will. The problem you are having is that the definition in the natives.h file you have right now is incorrect. So is this right? static void _PLAY_AMBIENT_SPEECH1(Ped pedHandle, char* speechName, char* speechParam) { invoke<Void>(0x8E04FEDD28D42462, pedHandle, speechName, speechParam); } // 0x8E04FEDD28D42462 0x5C57B85D and this AUDIO::_PLAY_AMBIENT_SPEECH1(PLAYER::PLAYER_PED_ID(), "GENERIC_CURSE_HIGH", "SPEECH_PARAMS_FORCE"); Thanks. Quote Share this post Link to post Share on other sites
ISOFX 78 Posted June 5, 2015 Yes Thanks for all the help Quote Share this post Link to post Share on other sites
Jitnaught 377 Posted June 5, 2015 Don't thank me until you've tested it and it works Quote Share this post Link to post Share on other sites
ISOFX 78 Posted June 6, 2015 Don't thank me until you've tested it and it works Worked, Thank you very much also do you know how to change the colour of the native trainer because every time I try that part turns invisible do you know why? Thanks Quote Share this post Link to post Share on other sites
L3gendaryGamers 2 Posted June 7, 2015 (edited) Don't thank me until you've tested it and it works Worked, Thank you very much also do you know how to change the colour of the native trainer because every time I try that part turns invisible do you know why? Thanks I am using the Native trainer SDK from Alexander Blade and if you use it too you can easily change just search for ""int text_col[4] =" right next to it it has 4 numbers standing for red, green, blue and alpha this is for the text color. the one below that is for the background Edited June 7, 2015 by L3gendaryGamers Quote Share this post Link to post Share on other sites