Skip to content

GetConvarBool ​

клиент + сервер GET_CONVAR_BOOL

c
BOOL GET_CONVAR_BOOL(char* varName, BOOL defaultValue);

Can be used to get a console variable casted back to bool.

Параметры ​

  • varName: The console variable to look up.
  • defaultValue: The default value to set if none is found.

Возвращает ​

Returns the convar value if it can be found, otherwise it returns the assigned default.

Примеры ​

lua
if GetConvarBool('dev_mode', false) then
    print("Dev Mode is eanbled, load dev mode menus")
end

Страница собрана автоматически из native-decls/GetConvarBool.md. Нашли ошибку — поправьте исходный файл.

Независимый проект на базе Cfx.re. Не связан с Rockstar Games и Take-Two Interactive.