Log in to reply
 

LSC in mod menu



  • my code is setup like this

    C++

                     case Spoiler:
                         Menu::Title("Spoiler");
                         {
                        
                             Player player = PLAYER::PLAYER_ID();
                             Ped playerPed = PLAYER::PLAYER_PED_ID();
                             BOOL bPlayerExists = ENTITY::DOES_ENTITY_EXIST(playerPed);
                             Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed);
                             Vehicle VEHICLE_ID = PED::GET_VEHICLE_PED_IS_USING(PLAYER::PLAYER_PED_ID());
                             char num = VEHICLE::GET_NUM_VEHICLE_MODS(VEHICLE_ID, 0);
                             for (int i = 0; i < num; i++)
                             {
                                 char* mod = UI::_GET_LABEL_TEXT(VEHICLE::GET_MOD_TEXT_LABEL(VEHICLE_ID, 0, i));
                             }
    
                             if (bPlayerExists && PED::IS_PED_IN_ANY_VEHICLE(playerPed, 0))
                             {
                                 Vehicle veh = PED::GET_VEHICLE_PED_IS_USING(playerPed);
                                 VEHICLE::SET_VEHICLE_MOD_KIT(veh, 0);
                                 int nummods = VEHICLE::GET_NUM_VEHICLE_MODS(veh, 0) - 1;
                                 int currmod = VEHICLE::GET_VEHICLE_MOD(veh, 0);
                                 if (currmod < nummods)
                                 {
                                     VEHICLE::SET_VEHICLE_MOD(veh, 0, currmod + 1, 1);
                                     UI::_SET_NOTIFICATION_TEXT_ENTRY("STRING");
                                     UI::_ADD_TEXT_COMPONENT_STRING("LSC");
                                     UI::_SET_NOTIFICATION_MESSAGE_CLAN_TAG_2("CHAR_LS_CUSTOMS", "CHAR_LS_CUSTOMS", 1, 7, "Spoiler Upgrades", "Upgraded!", 1, "", false, true);
                                     UI::_DRAW_NOTIFICATION(5000, 1);
                                 }
                             }
                         }
                         break;
    

    im not good at this you as you could already tell

    i had it before where you click Spoiler and it upgrades (+1 and -1) and now im trying to get the names so i can pick what mod i want on my vehicle

    all tips would be helpful

    thanks in advance

    :)


Log in to reply
 

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