enzopaul4 Posted October 22, 2016 Share Posted October 22, 2016 (edited) function playThatSound() local sound = playSound("resources/bagabani.mp3") setSoundVolume(sound, 0.5) end addEventHandler("onClientResourceStart", root, playThatSound) It's says " ERROR: payday\taxes.lua:2: attept to call global 'playSound' (A nill value) EDIT: This is anotherone error , for another script.I want when players have payday , to play a song. Edited October 22, 2016 by enzopaul4 Link to comment
Simple0x47 Posted October 22, 2016 Share Posted October 22, 2016 Ask this on the Romanian Section for giving more activity to the section. The problem is that your script is server side in the meta.xml, Change it to type="client" into the meta.xml Link to comment
Captain Cody Posted October 22, 2016 Share Posted October 22, 2016 Make sure it is set as a client side script in the meta file, also next time please add the script in lua brackets. Link to comment
enzopaul4 Posted October 22, 2016 Author Share Posted October 22, 2016 o my god i am a stupid man , i forgot to add the script in meta.xml Link to comment
enzopaul4 Posted October 22, 2016 Author Share Posted October 22, 2016 Just now, Simple01 said: Ask this on the Romanian Section for giving more activity to the section. The problem is that your script is server side in the meta.xml, Change it to type="client" into the meta.xml Ja , but in Romanian section nobody help me or say anithing , here i have full help Link to comment
Gravestone Posted October 22, 2016 Share Posted October 22, 2016 6 minutes ago, enzopaul4 said: Ja , but in Romanian section nobody help me or say anithing , here i have full help That's because that language section is not recently viewed probably. Link to comment
enzopaul4 Posted October 22, 2016 Author Share Posted October 22, 2016 Just now, Gravestone said: That's because that language section is not recently viewed probably. ye , i think so too Link to comment
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