Hello! I am making a support ticket game for a hotel group I co-own on an alt. It uses datastores to save the tickets. Staff will have access to a UI where they can view, comment, delete and do other stuff to the ticket. How would I go about formatting the datastore’s content so they can click a ticket’s title to view it’s content?
You would load all of the ticket information into a table containing fields of data like strings, ints, etc.
You could just attach a function to MouseButton1Click in a LocalScript and visualize the data in the player’s PlayerGui retrieved by the server from DataStoreService. You might want to make use of RemoteEvent client-server communication.
You’ll need a decent amount of Lua knowledge.
You would loop through the data stores and create a text button for each ticked, and then when you click the button, it loops through the ticket’s content. I would go forward by having each ticked stored as a table and give each ticked a unique ID when its created, something like this
[TICKET_ID] = {
"Title" = "Title here",
"Content" = "Content here"
-- And so on
}
You would want to use RemoteFunctions to ask the server for all the data stored by the player you want to access the tickets from, or a RemoteEvent to tell the server to give you the tickets you want. However, it’s quite complicated if you dont have much experience in scripting, but its definitely possible!
I’m a horrible scripter lol I have no idea when it comes to remote events/functions so usually just disable FE. But hope fully it can work ![]()
You wouldnt need remote events by disabling FE, however your game will literally be filled with exploiters, not only more exploiters but the exploits have full access to the server and they can do more damage. I suggest to learn remote events, it is a real handy tool and you wont regret it