Sign in to follow this  
Captien

[UPDATED] Sirens Silencer

Recommended Posts

Am 25.11.2019 um 11:58 schrieb Xenox:

okay

Versuch das mal

OLD

ich kann dir nicht versprechen das es funktioniert da ich es nicht ausprobiert habe.

Edited by Smileey

Share this post


Link to post
Share on other sites

So... ich habe es nun getestet und dies funktioniert unter C#

 

        [RemoteEvent("syncSirens")]
        public void VehSirenSync(Client c)
        {
            if (c.Vehicle.HasSharedData("silentMode") && c.Vehicle.GetSharedData("silentMode") == true)
            {
                c.Vehicle.SetSharedData("silentMode", false);
            } else
            {
                c.Vehicle.SetSharedData("silentMode", true);
            }
        }

 

Edited by Smileey
  • Like 1

Share this post


Link to post
Share on other sites

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.