SetLightDirection — FiveM Natives
0xA6FE1977 · CFX · client
Set the forward and tangent direction vectors for an existing light, allowing control over its orientation (useful for spotlights and directional lights).
Parameters
| Name | Type | Description |
|---|---|---|
| xDir | float | , **yDir**, **zDir**: Components of the normalized forward (direction) vector |
| yDir | float | |
| zDir | float | |
| xTanDir | float | , **yTanDir**, **zTanDir**: Components of the normalized tangent vector (defines rotation around the forward axis) |
| yTanDir | float | |
| zTanDir | float |
Returns
void