-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Listbox is repeating #5210
Copy link
Copy link
Closed
Labels
label/id and id stackimplicit identifiers, pushid(), id stackimplicit identifiers, pushid(), id stack
Description
Hello, i just made a listbox that grab FiveM resources list of a server, so this is my code :
static const char* resources[] =
{
resource->GetName().c_str()
};
static int selectedResource = 0;
ImGui::ListBox("", &selectedResource, resources, IM_ARRAYSIZE(resources));
When the main resource of FiveM show it's working perfectly, so in my ListBox i have only wrote "cfx_internal"
but when all server resources is showing, the ListBox is repeating everytime that a resource is showing
Like at the end of the load of the server, i got probably 200 listbox in 1 window, and i want to show resources in only 1 listbox.
What should i do?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
label/id and id stackimplicit identifiers, pushid(), id stackimplicit identifiers, pushid(), id stack