Administration - Tickets¶
This page documents hooks in the administration - tickets category.
CreateTicketFrame(requester, message, claimed)View Source
Purpose
Creates the clientside ticket popup frame for a submitted help ticket.
Category
Administration - Tickets
Realm
Client
Parameters
Player requester The player who opened the ticket.
string message The submitted ticket text to display.
Player claimed The staff member currently assigned to the ticket, when one exists.
Returns
Panel|nil The created ticket frame when the requester is valid.
Example Usage
hook.Add("CreateTicketFrame", "liaExampleCreateTicketFrame", function(requester, message, claimed)
if not IsValid(requester) or message == "" then return end
print(string.format("[MyModule] %s: %s", requester:Name(), message))
end)
GetAllCaseClaims()View Source
Purpose
Retrieves aggregated ticket-claim statistics for staff members.
Category
Administration - Tickets
Realm
Server
Returns
Deferred Resolves with a table keyed by admin SteamID containing claim totals and last-claim data.
Example Usage
hook.Add("GetAllCaseClaims", "liaExampleGetAllCaseClaims", function()
print("[MyModule] handled GetAllCaseClaims")
end)
OnTicketClaimed(client, requester, ticketMessage)View Source
Purpose
Called after a staff member claims a ticket.
Category
Administration - Tickets
Realm
Server
Parameters
Player client The staff member who claimed the ticket.
Player requester The player who opened the ticket.
string ticketMessage The ticket text that was claimed.
Example Usage
hook.Add("OnTicketClaimed", "liaExampleOnTicketClaimed", function(client, requester, ticketMessage)
if not IsValid(client) or ticketMessage == "" then return end
print(string.format("[MyModule] %s: %s", client:Name(), ticketMessage))
end)
OnTicketClosed(client, requester, ticketMessage)View Source
Purpose
Called after a staff member closes a ticket.
Category
Administration - Tickets
Realm
Server
Parameters
Player client The staff member who closed the ticket.
Player requester The player who opened the ticket.
string ticketMessage The ticket text that was closed.
Example Usage
hook.Add("OnTicketClosed", "liaExampleOnTicketClosed", function(client, requester, ticketMessage)
if not IsValid(client) or ticketMessage == "" then return end
print(string.format("[MyModule] %s: %s", client:Name(), ticketMessage))
end)
OnTicketCreated(client, message)View Source
Purpose
Called after a player creates a new help ticket.
Category
Administration - Tickets
Realm
Server
Parameters
Example Usage
hook.Add("OnTicketCreated", "liaExampleOnTicketCreated", function(client, message)
if not IsValid(client) or message == "" then return end
print(string.format("[MyModule] %s: %s", client:Name(), message))
end)
TicketSystemClaim(client, requester, ticketMessage)View Source
Purpose
Called when the ticket system processes a claim action and broadcasts the result.
Category
Administration - Tickets
Realm
Server
Parameters
Player client The staff member claiming the ticket.
Player requester The player who opened the ticket.
string ticketMessage The ticket text being claimed.
Example Usage
hook.Add("TicketSystemClaim", "liaExampleTicketSystemClaim", function(client, requester, ticketMessage)
if not IsValid(client) or ticketMessage == "" then return end
print(string.format("[MyModule] %s: %s", client:Name(), ticketMessage))
end)
TicketSystemClose(client, requester, ticketMessage)View Source
Purpose
Called when the ticket system processes a close action and broadcasts the result.
Category
Administration - Tickets
Realm
Server
Parameters
Player client The staff member closing the ticket.
Player requester The player who opened the ticket.
string ticketMessage The ticket text being closed.
Example Usage
hook.Add("TicketSystemClose", "liaExampleTicketSystemClose", function(client, requester, ticketMessage)
if not IsValid(client) or ticketMessage == "" then return end
print(string.format("[MyModule] %s: %s", client:Name(), ticketMessage))
end)