Skip to content

sound

Client-side
Server-side
Shared

Element category: Audio

The sound element represents a custom sound sent to the client via the use of the file parameter inside the meta file and created either by playSound or playSound3D.

A sound element can be manipulated in the GTA 3D world via setElementPosition and setElementDimension.

Sound elements can also be manipulated using the other Audio functions.

OOP Constructor

Sound(...) is the constructor method for the sound class (playSound).

OOP Methods and Variables