File tree Expand file tree Collapse file tree 2 files changed +39
-49
lines changed Expand file tree Collapse file tree 2 files changed +39
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- # Scraped from: https://wiki.multitheftauto.com/wiki/playSoundFrontEnd
21shared : &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
727server :
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+
936client :
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
You can’t perform that action at this time.
0 commit comments