hey hello i need a script to race when a player its ready to race play a sound to advice i need to know what i did wrong here plz if any 1 can help me..
function player_Spawn ( posX, posY, posZ, spawnRotation, theTeam, theSkin, theInterior, theDimension )
local sound = playSound("1.wav")
setSoundVolume(sound, 0.5)
end
addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn )