Struct IPlayerCustomModelsData
This type represents a pointer to an unmanaged open.mp IPlayerCustomModelsData interface.
[OpenMpApi(new Type[] { typeof(IExtension) })]
public readonly struct IPlayerCustomModelsData : IEquatable<IPlayerCustomModelsData>, IPlayerCustomModelsData.IManagedInterface, IExtension.IManagedInterface, IUnmanagedInterface
- Implements
- Inherited Members
Constructors
IPlayerCustomModelsData(nint)
Initializes a new instance of the IPlayerCustomModelsData struct.
public IPlayerCustomModelsData(nint handle)
Parameters
handlenintA pointer to the unmanaged interface.
Properties
Handle
Gets the handle to the unmanaged interface instance.
public nint Handle { get; }
Property Value
HasValue
Gets a value indicating whether the pointer has a value.
public bool HasValue { get; }
Property Value
Methods
Equals(IPlayerCustomModelsData)
public bool Equals(IPlayerCustomModelsData other)
Parameters
otherIPlayerCustomModelsData
Returns
Equals(object?)
public override bool Equals(object? other)
Parameters
otherobject
Returns
GetCustomSkin()
Gets the custom skin model ID for the player.
public uint GetCustomSkin()
Returns
- uint
The custom skin model ID, or 0 if no custom skin is set.
GetHashCode()
public override int GetHashCode()
Returns
SendDownloadUrl(string)
Sends a download URL to the player for custom models.
public bool SendDownloadUrl(string url)
Parameters
urlstringThe URL to send to the player.
Returns
- bool
trueif the URL was sent successfully; otherwise,false.
SetCustomSkin(uint)
Sets the custom skin model for the player.
public void SetCustomSkin(uint skinModel)
Parameters
skinModeluintThe custom skin model ID to set.
Operators
operator ==(IPlayerCustomModelsData, object?)
Determines whether the specified values are equal.
public static bool operator ==(IPlayerCustomModelsData lhs, object? rhs)
Parameters
lhsIPlayerCustomModelsDataThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are equal; otherwise,false.
explicit operator IPlayerCustomModelsData(IExtension)
Casts the IExtension to a IPlayerCustomModelsData.
public static explicit operator IPlayerCustomModelsData(IExtension value)
Parameters
valueIExtensionThe IExtension to cast.
Returns
- IPlayerCustomModelsData
The converted IPlayerCustomModelsData.
explicit operator IExtension(IPlayerCustomModelsData)
Casts the IPlayerCustomModelsData to a IExtension.
public static explicit operator IExtension(IPlayerCustomModelsData value)
Parameters
valueIPlayerCustomModelsDataThe IPlayerCustomModelsData to cast.
Returns
- IExtension
The converted IExtension.
operator !=(IPlayerCustomModelsData, object?)
Determines whether the specified values are not equal.
public static bool operator !=(IPlayerCustomModelsData lhs, object? rhs)
Parameters
lhsIPlayerCustomModelsDataThe value on the left side of the operator.
rhsobjectThe value on the right side of the operator.
Returns
- bool
trueif the values are not equal; otherwise,false.
Explicit Interface Implementations
ExtensionId
Gets the identifier of the extension type. IPool<T>
static UID ExtensionId { get; }