| Property | Value |
|---|---|
| Native Name | SIN |
| Hash | 0x0BADBFA3B172435F |
| Return Type | float |
| Parameters | value (float) |
Description: Returns the sine of the given number.
Parameters
value(float) — The number of degrees (in degrees, not radians)
Examples
-- Get the heading
local heading = GetEntityHeading(PlayerPedId())
local sin = Sin(heading)
-- equivalent in lua
local sinLua = math.sin(heading * (math.pi / 180))