IsDynamicPedShadowsEnabled

From Multi Theft Auto: Wiki
Revision as of 10:04, 17 April 2026 by Arran Fortuna (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function checks whether dynamic shadows for peds are currently enabled on the client.

The returned value may reflect:

Use resetDynamicPedShadows to restore the setting back to the player’s original video configuration.

Syntax

bool isDynamicPedShadowsEnabled ( )

Required Arguments

  • None

Returns

Returns true if dynamic ped shadows are enabled, false otherwise.

Examples

if isDynamicPedShadowsEnabled() then
    outputChatBox("Dynamic ped shadows are enabled.")
else
    outputChatBox("Dynamic ped shadows are disabled.")
end

Example: Toggle shadows

-- Toggle dynamic ped shadows
local current = isDynamicPedShadowsEnabled()
setDynamicPedShadowsEnabled(not current)

See Also