Skip to content

GetConvarInt ​

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

c
int GET_CONVAR_INT(char* varName, int default_);

Can be used to get a console variable casted back to int (an integer value).

Примеры ​

lua
if GetConvarInt('remainingRounds', 0) < 900 then
    Citizen.Trace("Less than 900 rounds remaining...")
end

Параметры ​

  • varName: The console variable to look up.
  • default_: The default value to set if none is found (variable not set using SET_CONVAR, or not accessible).

Возвращает ​

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


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

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