예제 #1
0
        public static Color MultiplyHSL(this Color col, double fHue, double fSaturation, double fLightness)
        {
            ColorHSL hsl = new ColorHSL(col);

            hsl.Hue        *= fHue;
            hsl.Saturation *= fSaturation;
            hsl.Lightness  *= fLightness;
            return(hsl.ToColorRGB());
        }
예제 #2
0
        public static Color ModHSL(this Color col, double fShiftHue, double fMultiplySaturation, double fMultiplyLightness)
        {
            ColorHSL hsl = new ColorHSL(col);

            hsl.Hue        += fShiftHue;
            hsl.Saturation *= fMultiplySaturation;
            hsl.Lightness  *= fMultiplyLightness;
            return(hsl.ToColorRGB());
        }
예제 #3
0
        public static Color ShiftHSL(this Color col, double fHue, double fSaturation, double fLightness)
        {
            ColorHSL hsl = new ColorHSL(col);

            hsl.Hue        += fHue;
            hsl.Saturation += fSaturation;
            hsl.Lightness  += fLightness;
            return(hsl.ToColorRGB());
        }
예제 #4
0
        public void ClientEventTrigger(Client sender, string Event, params object[] arguments)
        {
            if (Event == "LSIA")
            {
                API.consoleOutput(LogCat.Debug, "LSIA Triggered");
                API.setEntityPosition(sender, new Vector3(-1220.037, -2749.073, 18.2224));
                API.setEntityRotation(sender, new Vector3(0, 0, 50.27066));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "Class", arguments[0].ToString());
                API.setEntityData(sender, "SpawnID", "LSIA");

                if (arguments[0].ToString() == "Civil")
                {
                    var hsl   = new ColorHSL(120, 0.46, 0.64);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    sender.setData("PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Repair")
                {
                    var hsl   = new ColorHSL(47, 0.45, 0.36);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    sender.setData("PROFILE_color", color);
                }
                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "EVWA")
            {
                API.setEntityPosition(sender, new Vector3(1226.155, 326.3367, 81.99096));
                API.setEntityRotation(sender, new Vector3(0, 0, 146.4828));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "EVWA");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Civil")
                {
                    var hsl   = new ColorHSL(120, 0.46, 0.64);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Stunt")
                {
                    var hsl   = new ColorHSL(61, 0.87, 0.55);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Sandy")
            {
                API.setEntityPosition(sender, new Vector3(1703.595, 3285.008, 41.13425));
                API.setEntityRotation(sender, new Vector3(0, 0, -166.8748));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "Sandy");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Civil")
                {
                    var hsl   = new ColorHSL(120, 0.46, 0.64);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Stunt")
                {
                    var hsl   = new ColorHSL(61, 0.87, 0.55);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Repair")
                {
                    var hsl   = new ColorHSL(47, 0.45, 0.36);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Military")
            {
                API.setEntityPosition(sender, new Vector3(-2342.702, 3261.683, 32.82763));
                API.setEntityRotation(sender, new Vector3(0, 0, -122.7226));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "Military");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Military")
                {
                    var hsl   = new ColorHSL(0, 0.00, 0.33);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Repair")
                {
                    var hsl   = new ColorHSL(47, 0.45, 0.36);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Carrier")
            {
                API.setEntityPosition(sender, new Vector3(3091.46, -4717.844, 15.26262));
                API.setEntityRotation(sender, new Vector3(0, 0, 98.67543));
                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "Class", arguments[0].ToString());

                API.setEntityData(sender, "SpawnID", "Carrier");

                if (arguments[0].ToString() == "Military")
                {
                    var hsl   = new ColorHSL(0, 0.00, 0.33);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Repair")
                {
                    var hsl   = new ColorHSL(47, 0.45, 0.36);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "LS Rescue")
            {
                API.setEntityPosition(sender, new Vector3(-705.9416, -1399.981, 5.150307));
                API.setEntityRotation(sender, new Vector3(0, 0, 96.21136));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "LS Rescue");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Rescue")
                {
                    var hsl   = new ColorHSL(212, 0.55, 0.48);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            //else if (Event == "Sandy Rescue")
            //{
            //    API.setEntityPosition(sender, new Vector3());
            //    API.setEntityRotation(sender, new Vector3());

            //    PedHash SkinID = API.getEntitySyncedData(sender, "SkinID");

            //    API.setPlayerSkin(sender, SkinID);
            //}

            else if (Event == "LS Crash")
            {
                API.setEntityPosition(sender, new Vector3(-1100.903, -2365.319, 13.94516));
                API.setEntityRotation(sender, new Vector3(0, 0, 142.0741));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "LS Crash");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Fire")
                {
                    var hsl   = new ColorHSL(0, 0.73, 0.56);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "LS Medic")
            {
                API.setEntityPosition(sender, new Vector3(-1033.479, -2384.57, 14.08926));
                API.setEntityRotation(sender, new Vector3(0, 0, -124.4426));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "LS Medic");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Medic")
                {
                    var hsl   = new ColorHSL(0, 0.0, 0.81);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Sandy Crash")
            {
                API.setEntityPosition(sender, new Vector3(1841.331, 3670.544, 33.67994));
                API.setEntityRotation(sender, new Vector3(0, 0, -154.3216));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "Sandy Crash");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Fire")
                {
                    var hsl   = new ColorHSL(0, 0.73, 0.56);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Medic")
                {
                    var hsl   = new ColorHSL(0, 0.0, 0.81);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Military Crash")
            {
                API.setEntityPosition(sender, new Vector3(-2099.255, 2831.774, 32.81004));
                API.setEntityRotation(sender, new Vector3(0, 0, -7.615088));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "Military Crash");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Fire")
                {
                    var hsl   = new ColorHSL(0, 0.73, 0.56);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Medic")
                {
                    var hsl   = new ColorHSL(0, 0.0, 0.81);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "LS Security")
            {
                API.setEntityPosition(sender, new Vector3(-1221.657, -2801.196, 13.95141));
                API.setEntityRotation(sender, new Vector3(0, 0, -156.9228));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "LS Security");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Security")
                {
                    var hsl   = new ColorHSL(252, 0.28, 0.36);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);

                    WeaponHash StunGun = WeaponHash.StunGun;
                    API.givePlayerWeapon(sender, StunGun, 1, false, true);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                //string ClassType = API.getEntitySyncedData(sender, "Class");

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Sandy Security")
            {
                API.setEntityPosition(sender, new Vector3(1857.244, 3680.099, 33.79046));
                API.setEntityRotation(sender, new Vector3(0, 0, -155.6222));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "Sandy Security");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Security")
                {
                    var hsl   = new ColorHSL(252, 0.28, 0.36);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);

                    WeaponHash StunGun = WeaponHash.StunGun;
                    API.givePlayerWeapon(sender, StunGun, 1, false, true);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                //string ClassType = API.getEntitySyncedData(sender, "Class");

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "LS Passenger")
            {
                API.setEntityPosition(sender, new Vector3(-880.8137, -2181.369, 8.9323));
                API.setEntityRotation(sender, new Vector3(0, 0, 129.66));

                API.setEntityData(sender, "SpawnID", "LS Passenger");

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Host")
                {
                    var hsl   = new ColorHSL(328, 0.92, 0.62);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Passenger")
                {
                    var hsl   = new ColorHSL(203, 0.66, 0.77);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Sandy Passenger")
            {
                API.setEntityPosition(sender, new Vector3(1616.52, 3571.88, 35.24349));
                API.setEntityRotation(sender, new Vector3(0, 0, -64.50074));

                API.setPlayerNametagVisible(sender, true);

                API.setEntityData(sender, "SpawnID", "Sandy Passenger");

                API.setEntityData(sender, "Class", arguments[0].ToString());

                if (arguments[0].ToString() == "Host")
                {
                    var hsl   = new ColorHSL(328, 0.92, 0.62);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }
                else if (arguments[0].ToString() == "Passenger")
                {
                    var hsl   = new ColorHSL(203, 0.66, 0.77);
                    var rgb   = hsl.ToColorRGB();
                    var color = rgb.red.ToString("X2") + rgb.green.ToString("X2") + rgb.blue.ToString("X2");
                    API.setEntityData(sender, "PROFILE_color", color);
                }

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "Base Jump")
            {
                API.setEntityPosition(sender, new Vector3(-149.1562, -961.2599, 269.1353));
                API.setEntityRotation(sender, new Vector3(0, 0, -114.7388));

                API.setPlayerNametagVisible(sender, true);

                //var SkinID = API.getEntitySyncedData(sender, "SkinID");

                //API.setPlayerSkin(sender, SkinID);

                var Flare = WeaponHash.Flare;
                var Para  = WeaponHash.Parachute;

                API.givePlayerWeapon(sender, Flare, 999, false, true);
                API.givePlayerWeapon(sender, Para, 1, false, true);

                API.setEntityPositionFrozen(sender, false);
                API.setEntityCollisionless(sender, false);

                API.triggerClientEvent(sender, "SpawnMenuStop");
                API.setEntityDimension(sender, 0);
            }

            else if (Event == "SkinCam")
            {
                API.setEntityPosition(sender, new Vector3(402.8911, -996.9224, -99.00024));
                API.setEntityRotation(sender, new Vector3(0, 0, 178.7716));
            }

            else if (Event == "Skip")
            {
                API.triggerClientEvent(sender, "SpawnMenuStart");
            }
        }