IsDynamicPedShadowsEnabled
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:
- The player's video settings.
- Any override applied using setDynamicPedShadowsEnabled.
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)