M MY Multiplayer: Wiki
Side
Kind

getElementCastShadow

Client

Tells whether an element casts a shadow.

bool getElementCastShadow(element element)

Parameters

NameTypeDescription
elementelementThe element to read.

Returns

true if it casts a shadow. false if it does not or is not a player, ped, vehicle or object.

Example

local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle and getElementCastShadow(vehicle) then
    setElementCastShadow(vehicle, false)
end

See also