IsVolumetricShadowsEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Client function}} __NOTOC__ {{Added feature/item|1.6.1|1.6.0|22716| This function is used to check whether the shadow enabled or not. }} ==Syntax== <syntaxhighlight lang="lua"> bool isVolumetricShadowsEnabled () </syntaxhighlight> ===Returns=== Returns ''true'' if enabled, ''false'' otherwise. ==Example== This example check if volumetric shadows enabled or not. <syntaxhighlight lang="lua"> addCommandHandler('isvolumetricshadows', function() print(isVolumetri...")
 
Line 14: Line 14:


==Example==  
==Example==  
This example check if volumetric shadows enabled or not.
This example used a command to check if volumetric shadows enabled or not.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
addCommandHandler('isvolumetricshadows', function()
addCommandHandler('isvolumetricshadows', function()

Revision as of 21:10, 6 September 2024

BETA: NEW FEATURE (BUILD: 1.6.0 r22716)

This function is used to check whether the shadow enabled or not.

Syntax

bool isVolumetricShadowsEnabled ()

Returns

Returns true if enabled, false otherwise.

Example

This example used a command to check if volumetric shadows enabled or not.

addCommandHandler('isvolumetricshadows', function()
   print(isVolumetricShadowsEnabled())
end)

See Also