Need Send Message to All Players code plz
Demon Forums
Gaming
Grand Theft Auto V
Grand Theft Auto V Modding
Request Need Send Message to All Players
(06-27-2018 - 08:41 PM)Venz Wrote: Need Send Message to All Players code plz
int Handle_Player_(int player)
{
int Handle = 0;
NETWORK::NETWORK_HANDLE_FROM_PLAYER(player, 13);
return Handle;
}
void sendText(char *text, int player)
{
NETWORK::NETWORK_SEND_TEXT_MESSAGE("", Handle_Player_(PLAYER::GET_PLAYER_PED(player)));
}
//custom message with keyboard:
switch (keyboardAction)
{
case 1:
for (int i = 0; i < 18; i++){
sendText(GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT(), );
}
break;
}