Esempio n. 1
0
 /// <summary>
 /// Returns true if the neon light is enabled
 /// </summary>
 /// <param name="vehicle"></param>
 /// <param name="neonLight">Neon index</param>
 /// <returns>true if the neon light is enabled</returns>
 public static bool IsNeonLightEnable(this Vehicle vehicle, ENeonLights neonLight)
 {
     ulong IsVehicleNeonLightEnabledHash = 0x8c4b92553e4766a5;
     if (NativeFunction.CallByHash<bool>(IsVehicleNeonLightEnabledHash, vehicle, (int)neonLight)) return true;
     else if (!NativeFunction.CallByHash<bool>(IsVehicleNeonLightEnabledHash, vehicle, (int)neonLight)) return false;
     else return false;
 }
Esempio n. 2
0
 /// <summary>
 /// Returns true if the neon light is enabled
 /// </summary>
 /// <param name="vehicle"></param>
 /// <param name="neonLight">Neon index</param>
 /// <returns>true if the neon light is enabled</returns>
 public static bool IsNeonLightEnable(this Vehicle vehicle, ENeonLights neonLight)
 {
     //IsVehicleNeonLightEnabled
     if (NativeFunction.Natives.x8c4b92553e4766a5 <bool>(vehicle, (int)neonLight))
     {
         return(true);
     }
     else if (!NativeFunction.Natives.x8c4b92553e4766a5 <bool>(vehicle, (int)neonLight))
     {
         return(false);
     }
     else
     {
         return(false);
     }
 }
        /// <summary>
        /// Returns true if the neon light is enabled
        /// </summary>
        /// <param name="vehicle"></param>
        /// <param name="neonLight">Neon index</param>
        /// <returns>true if the neon light is enabled</returns>
        public static bool IsNeonLightEnable(this Vehicle vehicle, ENeonLights neonLight)
        {
            ulong IsVehicleNeonLightEnabledHash = 0x8c4b92553e4766a5;

            if (NativeFunction.CallByHash <bool>(IsVehicleNeonLightEnabledHash, vehicle, (int)neonLight))
            {
                return(true);
            }
            else if (!NativeFunction.CallByHash <bool>(IsVehicleNeonLightEnabledHash, vehicle, (int)neonLight))
            {
                return(false);
            }
            else
            {
                return(false);
            }
        }
        /// <summary>
        /// Toggles the neon light in a vehicle
        /// </summary>
        /// <param name="vehicle"></param>
        /// <param name="neonLight">Neon index</param>
        /// <param name="toggle">Toggle the neon</param>
        public static void ToggleNeonLight(this Vehicle vehicle, ENeonLights neonLight, bool toggle)
        {
            ulong SetVehicleNeonLightEnabledHash = 0x2aa720e4287bf269;

            NativeFunction.CallByHash <uint>(SetVehicleNeonLightEnabledHash, vehicle, (int)neonLight, toggle);
        }
Esempio n. 5
0
 /// <summary>
 /// Toggles the neon light in a vehicle
 /// </summary>
 /// <param name="vehicle"></param>
 /// <param name="neonLight">Neon index</param>
 /// <param name="toggle">Toggle the neon</param>
 public static void ToggleNeonLight(this Vehicle vehicle, ENeonLights neonLight, bool toggle)
 {
     ulong SetVehicleNeonLightEnabledHash = 0x2aa720e4287bf269;
     
     NativeFunction.CallByHash<uint>(SetVehicleNeonLightEnabledHash, vehicle, (int)neonLight, toggle);
 }
Esempio n. 6
0
 /// <summary>
 /// Toggles the neon light in a vehicle
 /// </summary>
 /// <param name="vehicle"></param>
 /// <param name="neonLight">Neon index</param>
 /// <param name="toggle">Toggle the neon</param>
 public static void ToggleNeonLight(this Vehicle vehicle, ENeonLights neonLight, bool toggle)
 {
     NativeFunction.Natives.x2aa720e4287bf269(vehicle, (int)neonLight, toggle); //SetVehicleNeonLightEnabled
 }