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. Нашли ошибку — поправьте исходный файл.