Hooks/Server/agendaUpdated
Hook | |
Hook name | agendaUpdated(Player ply, table agenda, string text) |
Description: | |
When the agenda is updated. | |
Returns: | string text |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/agendaUpdated]agendaUpdated hook[/url][/b] |
Parameters[edit]
- ply (Player)
- agenda (table)
- text (string)
The player who changed the agenda. Warning: can be nil!
Agenda table (also holds the previous text).
The text the player wants to set the agenda to.
Return values[edit]
- text (string)
An override for the text.
Example Code[edit]
___________________________________________________________________________________________
hook.Add("agendaUpdated", "updateagenda", function(ply, agenda, text) print(ply.. " " .. "updated the agenda!") end)
___________________________________________________________________________________________
Result: Quang updated the agenda!