Skip to main content

create_textdraw

Function create_textdraw 

Source
pub unsafe fn create_textdraw(
    component: *mut ITextDrawsComponent,
    position: Vector2,
    text: &str,
) -> *mut ITextDraw
Expand description

ITextDrawsComponent::create(position, text) — a global text draw.

The text is borrowed for the call; the server copies it.

§Safety

component must be a live ITextDrawsComponent.