self:stop
Client
Stops playback of the audio-2d instance
Syntax
local status = self:stop()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = core.audio_2d.create("sounds/ambient.ogg")
entity:play()
entity:stop()