OnClientSoundBeat
From Multi Theft Auto: Wiki
Script Example Missing Event OnClientSoundBeat needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
This event is triggered when a sound beats.
Note: This event does not work correctly pre 1.3.1-9-04627 |
Note: This event is triggered ahead of a sound beat the number passed is the play time at which the beat occurs |
Parameters
double theTime
- theTime: the position in the song of the beat
Source
The source of this event is the sound's element.
Example
-- Not done yet
Requirements
Minimum supported server | n/a |
---|---|
Minimum supported client | 1.3.0-9.04162 |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04162" />
See Also
Client sound events
- onClientSoundBeat
- onClientSoundChangedMeta
- onClientSoundFinishedDownload
- onClientSoundStarted
- onClientSoundStopped
- onClientSoundStream
Client event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- triggerLatentServerEvent
- triggerServerEvent
- wasEventCancelled