pub fn omp_query<T>() -> Option<T>where
T: OmpComponentHandle,Expand description
Looks up an Open Multiplayer component via its typed wrapper.
Typed version of omp_query_component: uses the UID declared in the type’s
OmpComponentHandle trait, returns a wrapper that exposes specific methods.
§Example
use samp_sdk::omp::PawnComponent;
if let Some(pawn) = samp::plugin::omp_query::<PawnComponent>() {
if let Some(version) = pawn.version() {
println!("Pawn component: {}.{}.{}", version.major, version.minor, version.patch);
}
}