Client API
Functions
client.register_callback(event_name, fn)client.log(message)client.con_msg(message)client.get_fps() -> numberclient.get_system_time() -> stringclient.get_username() -> stringclient.get_mouse_pos() -> x, yclient.is_mouse_down(button) -> boolclient.is_key_down(vk) -> boolclient.notify(title, message, duration?, font_id?, texture_id?, color_table?)client.mouse_move(dx, dy)client.set_thirdperson(enabled)client.set_channel(channel_id)client.get_channel() -> intclient.send_chat(message, amount?)
client.send_chat
client.send_chatSends chat through engine console command execution.
Signature:
Behavior:
messageis required.amountis optional, default1.Amount is clamped to a safe range.
Debug logs are printed in console (
[Lua Chat] ...).
Example
Última actualización
¿Te fue útil?