GerardWay Posted April 28, 2013 Posted April 28, 2013 I know for a fact that i've missed something out here, but what is it? function adminMusic() local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then adminMusic = playSound("joinsound.mp3") end addCommandHandler ("ps115", adminMusic) function stopMySound() stopSound( adminMusic ) end addCommandHandler ( "ss115", stopMySound )
iPrestege Posted April 28, 2013 Posted April 28, 2013 You are trying to use client and server function in one script no way! triggerClientEvent
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