setElementCastShadow
Client
Turns the shadow an element casts on or off.
bool setElementCastShadow(element element, bool castShadow)
Parameters
| Name | Type | Description |
|---|---|---|
| element | element | The player, ped, vehicle or object. |
| castShadow | bool | true 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)