Skip to content

GetConvar ​

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

c
char* GET_CONVAR(char* varName, char* default_);

Can be used to get a console variable of type char*, for example a string.

Примеры ​

lua
if GetConvar('voice_useNativeAudio', 'false') == 'true' then
    Citizen.Trace('Native Audio is enabled.')
end

Параметры ​

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

Возвращает ​

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


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

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