Log in to reply
 

need help with c++ mod menu coding - add money using GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD



  • ok so i wanted to do something that a popup pops and then the user types a number, that number is added to his money. how would i do that?
    case 2:

    for (int i = 0; i < 1; i++) {
    GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(TRUE, "Type the amount of money", "", "", "", "", "", 7);

    while (GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 0) WAIT(0);
    char* results = GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT();
    char statNameFull[32];
    sprintf_s(statNameFull, "SP%d_TOTAL_CASH", i);
    Hash hash = GAMEPLAY::GET_HASH_KEY(statNameFull);

    STATS::STAT_GET_STRING(hash, results);
    STATS::STAT_SET_STRING(hash, results, 1);
    }
    break;

    this is what i tried. didnt work. help PLEASE?


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.