/// <summary> /// Creates a new Scaleform class with the specified Scaleform object name. /// </summary> /// <param name="sc">The Scalform object.</param> public BaseScaleform(string sc) { #if FIVEM scaleform = new CitizenFX.Core.Scaleform(sc); #else scaleform = new GTA.Scaleform(sc); #endif }
/// <summary> /// Creates a new Scaleform class with the specified Scaleform object name. /// </summary> /// <param name="sc">The Scalform object.</param> public BaseScaleform(string sc) { #if FIVEM scaleform = new CitizenFX.Core.Scaleform(sc); #elif SHVDN2 || SHVDN3 scaleform = new GTA.Scaleform(sc); #elif RAGE scaleform = new RageScaleform(sc); #endif }
/// <summary> /// Creates a new Scaleform class with the specified Scaleform object name. /// </summary> /// <param name="sc">The Scalform object.</param> public BaseScaleform(string sc) { Name = sc; #if FIVEM Handle = API.RequestScaleformMovie(sc); #elif RPH Handle = NativeFunction.CallByHash <int>(0x11FE353CF9733E6F, sc); #elif (SHVDN2 || SHVDN3) Handle = Function.Call <int>(Hash.REQUEST_SCALEFORM_MOVIE, sc); #endif #pragma warning disable CS0618 // Type or member is obsolete #if FIVEM scaleform = new CitizenFX.Core.Scaleform(sc); #elif (SHVDN2 || SHVDN3) scaleform = new GTA.Scaleform(sc); #endif #pragma warning restore CS0618 // Type or member is obsolete }