Jump to content

طلب فنكشات الصوت


Recommended Posts

السلام عليكم

ابي فنكش يغير صوت سياره شرطه او سيارات الثانيه ابي الفنكشات كامله لاهنتو

وشكرااااا

  
function testSirene( player, cmd ) 
        local commandant = createVehicle ( 554, 1227.746, -1422.281, 13.5432, 0, 0, 0, "COMM1" ) 
        triggerClientEvent ( "startSirene", player, commandant ) 
end 
addCommandHandler ( "testsirene", testSirene) 

function startSirene ( vehicle ) 
        local x,y,z = getElementPosition( vehicle ) 
        local sound = playSound3D( "sons\\sirene1.wav", x, y, z, true) 
        attachElements ( sound, vehicle) 
end 
addEvent( "startSirene", true ) 
addEventHandler("startSirene", getResourceRootElement(), startSirene) 
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...