Skip to content

Commit 967b41a

Browse files
committed
Remove playSoundFrontEnd from Audio
1 parent 0e855f4 commit 967b41a

File tree

2 files changed

+39
-49
lines changed

2 files changed

+39
-49
lines changed

functions/Audio/playSoundFrontEnd.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
1-
# Scraped from: https://wiki.multitheftauto.com/wiki/playSoundFrontEnd
21
shared: &shared
32
name: playSoundFrontEnd
4-
description: TODO
5-
incomplete: true
3+
notes:
4+
- type: info
5+
content: These sounds can be disabled with [[setWorldSoundEnabled]] so if these sounds stop working you should check if you're disabling the sounds.
6+
- type: info
7+
content: These sounds don't work when [[fadeCamera]] has been used to make the screen black.
8+
description: This function plays a frontend sound for the specified player.
9+
oop:
10+
element: player
11+
method: playSoundFrontEnd
12+
note: For client-side use Sound.playFrontEnd()
13+
parameters:
14+
- name: thePlayer
15+
type: player
16+
description: The [[player]] you want the sound to play for.
17+
- name: sound
18+
type: int
19+
description: A whole [[int]] specifying the sound id to play.
20+
templateList: frontend-sounds
21+
returns:
22+
values:
23+
- type: bool
24+
name: result
25+
description: Returns true if the sound was successfully played, false otherwise.
626

727
server:
828
<<: *shared
29+
examples:
30+
- path: examples/playSoundFrontEnd-1.lua
31+
description: This example plays a sound when a player spawns.
32+
- path: examples/playSoundFrontEnd_OOP-1.lua
33+
description: This example plays a sound when a player spawns.
34+
oop: true
35+
936
client:
10-
<<: *shared
37+
<<: *shared
38+
ignore_parameters:
39+
- thePlayer
40+
examples:
41+
- path: examples/playSoundFrontEnd-2.lua
42+
description: This example plays a sound when the player types the command '/sound'.
43+
- path: examples/playSoundFrontEnd_OOP-2.lua
44+
description: This example plays a sound when the player types the command '/sound'.
45+
oop: true

0 commit comments

Comments
 (0)