Doing something like:
CreateConVar("enable_the_thing", '1', FCVAR_REPLICATED)
... will make LuaLS erroneously produce a warning:
Cannot assign `integer` to parameter `(`FCVAR_ARCHIVE_XBOX`|`FCVAR_ARCHIVE`|`FCVAR_CHEAT`|`FCVAR_CLIENTCMD_CAN_EXECUTE`|`FCVAR_CLIENTDLL`...(+19))?`.
- `integer` cannot match `(`FCVAR_ARCHIVE_XBOX`|`FCVAR_ARCHIVE`|`FCVAR_CHEAT`|`FCVAR_CLIENTCMD_CAN_EXECUTE`|`FCVAR_CLIENTDLL`...(+19))?`
- Type `integer` cannot match `nil`
- Type `number` cannot match `nil`
- Type `integer` cannot match `number[]`
- Type `number` cannot match `number[]`
I can only assume that this is somehow because of either the type definition for FCVAR, or the type of the FCVAR_* constants.
Doing something like:
... will make LuaLS erroneously produce a warning:
I can only assume that this is somehow because of either the type definition for
FCVAR, or the type of theFCVAR_*constants.