1
0
EQ2Emu/docs/lua_functions/GetClientVersion.md
2025-05-13 22:57:49 -04:00

16 lines
634 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Function: GetClientVersion(Spawn)
Description: Retrieves the game client version of the specified player (useful if the server supports multiple client versions). This can determine differences in available features or UI.
Parameters:
Spawn: Spawn The player whose client version to get.
Returns: Int32 The client version number (for example, corresponding to certain expansions or patches).
Example:
-- Example usage (check if players client supports a feature)
if GetClientVersion(Player) < REQUIRED_CLIENT_VERSION then
SendMessage(Player, "Please update your client for the best experience.", "yellow")
end