rust-samp-sdk 3.6.0

Low-level FFI bindings for the SA-MP AMX virtual machine and open.mp native component ABI. Used internally by `rust-samp`; depend on it directly only if you need raw access without the higher-level macros and lifecycle.
Documentation
//! `IPlayerCustomModelsData` — generated by `cargo xtask gen-omp` from `Server/Components/CustomModels/custommodels.hpp`.
//! Implemented by `PlayerCustomModelsData` in the server's `CustomModels`.
//!
//! Do not edit: change `xtask/omp-wrappers.toml` or the generator and
//! regenerate. Slots are clang's layout of the header for each ABI, checked
//! against the official binaries by `cargo xtask check-abi --generated`.

#![allow(unused_imports)]

use crate::omp::containers::{FlatSet, HybridString, Pair, Span};
use crate::omp::types::{
    Colour, GTAQuat, Hours, Microseconds, Milliseconds, Minutes, Seconds, StringView, TimePoint,
    UID, Vector2, Vector3, Vector4, WorldTimePoint,
};
use crate::omp::vtable::{call_vtable_small_struct, opaque, slots, virtual_fns};
use crate::omp::*;

opaque! {
    /// Opaque handle for `IPlayerCustomModelsData*`.
    pub IPlayerCustomModelsData;
}

slots! {
    /// `uint32_t IPlayerCustomModelsData::getCustomSkin()`
    SLOT_GET_CUSTOM_SKIN: usize = 3, 3;
    /// `void IPlayerCustomModelsData::setCustomSkin(const uint32_t)`
    SLOT_SET_CUSTOM_SKIN: usize = 4, 4;
    /// `bool IPlayerCustomModelsData::sendDownloadUrl(StringView)`
    SLOT_SEND_DOWNLOAD_URL: usize = 5, 5;
}

virtual_fns! {
    /// `uint32_t IPlayerCustomModelsData::getCustomSkin()`.
    ///
    /// # Safety
    /// `data` must be a live `IPlayerCustomModelsData`.
    #[must_use]
    pub fn player_custom_models_custom_skin(
        data: IPlayerCustomModelsData,
    ) -> u32 = [0, SLOT_GET_CUSTOM_SKIN] or 0;

    /// `void IPlayerCustomModelsData::setCustomSkin(const uint32_t)`.
    ///
    /// # Safety
    /// `data` must be a live `IPlayerCustomModelsData`.
    pub fn player_custom_models_set_custom_skin(
        data: IPlayerCustomModelsData,
        skin_model: u32,
    ) = [0, SLOT_SET_CUSTOM_SKIN];

    /// `bool IPlayerCustomModelsData::sendDownloadUrl(StringView)`.
    ///
    /// # Safety
    /// `data` must be a live `IPlayerCustomModelsData`.
    #[must_use]
    pub fn player_custom_models_send_download_url(
        data: IPlayerCustomModelsData,
        url: StringView,
    ) -> bool = [0, SLOT_SEND_DOWNLOAD_URL] or false;
}