mtasa-blue
mtasa-blue copied to clipboard
Add setVolumetricShadowsEnabled
We should add a new Lua function, setVolumetricShadowsEnabled
, on the client-side only.
bool setVolumetricShadowsEnabled(bool state)
Returns true if successful, false otherwise
The volumetric shadows option can already be changed by the client in MTA Settings > Video > Volumetric Shadows.
Any server using this function will override the client's choice until they leave the server, upon which it will revert to the client's original choice.
implementation example
CGameSettings* pGameSettings = m_pGame->GetSettings();
pGameSettings->SetVolumetricShadowsEnabled(true/false);