Function cfx_core::invoker::register_resource_as_event_handler[][src]

pub fn register_resource_as_event_handler(
    event: &str
) -> Result<(), InvokeError>
Expand description

A FiveM runtime native. Registers current resource as an event handler. Means that if someone triggers an event with this name the resource will be notified.