Skip to main content

enable_tick

Function enable_tick 

Source
pub fn enable_tick()
Expand description

Enables SampPlugin::on_tick with default settings: tick on both servers, 5 ms interval on Open Multiplayer.

Call inside initialize_plugin!. Without this opt-in the tick stays inert — useful for purely reactive plugins that do not need the cycle.