Skip to content
Алексей . edited this page Oct 22, 2026 · 4 revisions

context.SF.Samp.Chat is the standard SA-MP chat facade. Add writes locally; Send transmits a message or a slash-prefixed command to the server. Both require the game thread. Add accepts legacy uint ARGB or SFColor and an optional separately colored prefix.

Use Context.RegisterChatCommand to bind a command to the run. Names omit /, and the callback receives the remaining text or null. For async handlers use RegisterAsyncChatCommand rather than async void. A direct Chat registration must be disposed explicitly or owned by the context.

StreamEntries includes locally added lines and other modules' output. StreamServerEntries selects server-originated chat/client-message entries and reports source kind. Pass the run token. Streams observe future entries; they do not replay all earlier history. Echoing every local entry through Add can loop.

Arizona rooms and CEF interfaces are extension APIs, not core Chat members. The core uses the normal CChat path even when another ASI patches that function. Use custom integrations explicitly rather than importing private client offsets.

Sources: ISFChat, entry types, implementation. See colors.

Clone this wiki locally