pub fn omp_query_component(uid: UID) -> Option<*mut ServerComponent>Expand description
Looks up an Open Multiplayer component by UID in the list received in on_init.
Returns None if the server has not yet called on_init or if the component
is not registered.
ยงExample
use samp::plugin::omp_query_component;
use samp_sdk::omp::server::PAWN_COMPONENT_UID;
if let Some(_pawn) = omp_query_component(PAWN_COMPONENT_UID) {
// IPawnComponent available
}