Table of Contents

Struct IPlayerCustomModelsData

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

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

handle nint

A pointer to the unmanaged interface.

Properties

Handle

Gets the handle to the unmanaged interface instance.

public nint Handle { get; }

Property Value

nint

HasValue

Gets a value indicating whether the pointer has a value.

public bool HasValue { get; }

Property Value

bool

Methods

Equals(IPlayerCustomModelsData)

public bool Equals(IPlayerCustomModelsData other)

Parameters

other IPlayerCustomModelsData

Returns

bool

Equals(object?)

public override bool Equals(object? other)

Parameters

other object

Returns

bool

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

int

SendDownloadUrl(string)

Sends a download URL to the player for custom models.

public bool SendDownloadUrl(string url)

Parameters

url string

The URL to send to the player.

Returns

bool

true if the URL was sent successfully; otherwise, false.

SetCustomSkin(uint)

Sets the custom skin model for the player.

public void SetCustomSkin(uint skinModel)

Parameters

skinModel uint

The 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

lhs IPlayerCustomModelsData

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are equal; otherwise, false.

explicit operator IPlayerCustomModelsData(IExtension)

public static explicit operator IPlayerCustomModelsData(IExtension value)

Parameters

value IExtension

The IExtension to cast.

Returns

IPlayerCustomModelsData

The converted IPlayerCustomModelsData.

explicit operator IExtension(IPlayerCustomModelsData)

public static explicit operator IExtension(IPlayerCustomModelsData value)

Parameters

value IPlayerCustomModelsData

The 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

lhs IPlayerCustomModelsData

The value on the left side of the operator.

rhs object

The value on the right side of the operator.

Returns

bool

true if the values are not equal; otherwise, false.

Explicit Interface Implementations

ExtensionId

Gets the identifier of the extension type. IPool<T>

static UID ExtensionId { get; }

Returns

UID