roddydennvor Posted November 14, 2014 Posted November 14, 2014 how does it make PlaySound function on the server side? like for example, when I click on the NPC / PED then the sound will appear? Thx Before ...
SjoerdPSV Posted November 14, 2014 Posted November 14, 2014 use triggerClientEvent (https://wiki.multitheftauto.com/wiki/triggerClientEvent) in the server side function which handles it.
SkatCh Posted November 14, 2014 Posted November 14, 2014 It's easy just just you need to use "triggerClientEvent" . e.g: -- Client side: addEvent("Sound",true) addEventHandler("Sound", getRootElement(), function() local Sound = playSound(".........mp3") -- put your sound file here setSoundVolume(Sound, 1) end) -Server side: triggerClientEvent(........, "Sound",......)
roddydennvor Posted November 15, 2014 Author Posted November 15, 2014 okay , on server side ... triggerClientEvent(........, "Sound",......) What i must to fill in the blank ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now