Sign in to follow this  
VlageZ

ابي اطفي اصوات السيارات

Recommended Posts

سلام عليكم

ابي كود الي اطفي فيه اصوات السيارات

كود Client

 

 

Share this post


Link to post
function disableCarSounds()
local groups = 300
while (groups >= 0) do
    setWorldSoundEnabled(groups, false)
    groups = groups - 1
end

end

addEventHandler("onClientResourceStart", getRootElement(), disableCarSounds)

 

Share this post


Link to post
9 hours ago, u0w2³ᴰ said:

function disableCarSounds()
local groups = 300
while (groups >= 0) do
    setWorldSoundEnabled(groups, false)
    groups = groups - 1
end

end

addEventHandler("onClientResourceStart", getRootElement(), disableCarSounds)

 

هذي من أسباب الي م تخليه يتعلم, بعدين يفتح موضوع ويقول ابي اتعلم البرمجة

خله ياخي يحاول ويتعلم من أخطاءه ليه على طول جاهز؟

Share this post


Link to post
17 hours ago, u0w2³ᴰ said:

function disableCarSounds()
local groups = 300
while (groups >= 0) do
    setWorldSoundEnabled(groups, false)
    groups = groups - 1
end

end

addEventHandler("onClientResourceStart", getRootElement(), disableCarSounds)

 

للتوضيح, اي سكربت يشتغل راح يشتغل معاه الكود بسبب الحدث

resourceRoot الصحيح تعديله الى

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.