transformable.setRotation

From GTA Connected
Jump to: navigation, search

Method Server Only All Games Online and Offline

Server 1.0.0

void transformable.setRotation(Vec3 rotation)

Description

The transformable.setRotation method is used to set the 3D rotation for the transformable, in XYZ euler angles.

Parameters

Type Name Presence Default Value Description
Vec3 rotation required n/a The euler XYZ rotation angles.

Returns

Success Returns

Type Description
void This method doesn't return any values on success.

Failure Returns

Type Value
void n/a

Types

This method can be used on types: Blip Building Civilian Entity Marker Object Ped Physical Player Transformable Vehicle.

Notes

  • This function is computationally expensive, use Entity.heading instead if you only need to set the Z rotation.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related