M MY Multiplayer: Wiki
Side
Kind

setElementCastShadow

Client

Turns the shadow an element casts on or off.

bool setElementCastShadow(element element, bool castShadow)

Parameters

NameTypeDescription
elementelementThe player, ped, vehicle or object.
castShadowbooltrue to cast a shadow, false not to.

Returns

true if it applied, false if the element is not a world element.

It applies to every part the element draws. The choice is kept while the element is streamed out.

Example

local object = createObject("kb_bandit_u", 2495, -1687, 13.5)
setElementCastShadow(object, false)

See also