pub fn register_sq_functions(get_info_func: FuncSQFuncInfo)Expand description
Adds a sqfunction to the registration list
The sqfunction will be registered when its vm is loaded
ยงExample
#[rrplug::sqfunction(VM="Server")]
fn simple_example(name: String, player: Option<&mut CPlayer>) -> Result<(),String> {
let _player = player.ok_or("Not a Player!".to_string())?;
log::info!("the name is {name}");
Ok(())
}