• Problem with Playsound
    1 replies, posted
[ERROR] addons/anticartheftsystem/lua/autorun/server/sv_anticartheftsystem.lua:9: attempt to call field 'PlayFile' (a nil value)   1. fn - addons/anticartheftsystem/lua/autorun/server/sv_anticartheftsystem.lua:9    2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109 Could somebody help me out please? line nine is this line sound.PlayFile("addons/AntiCarTheftSystem/sound/alarm.wav", "", function() end)
Look at the example on this page: sound.PlayFile Note that the path to sound doesn't use any addons/ folder at all. The path starts from sound/
Sorry, you need to Log In to post a reply to this thread.