client:<name>
on("client:vip_wear", function(player, payload) end)
A client sends an event.
Replace <name> with the name chosen on the client with nov_emit.
Parameters#
- player (
Player): the sender - payload (
string): text sent, 4096 bytes at most
Example#
on("client:vip_wear", function(player, code)
player:wearVip(code)
end)
Notes#
- Never trust the content: a modified client can send anything. Check distance, role, bounds.
- 20 events per second per player; the next ones are ignored.