Jump to content

payday sound


enzopaul4

Recommended Posts

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 by enzopaul4
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...