pub struct PlayerTextDraw {
pub player: Player,
/* private fields */
}Fields§
§player: PlayerImplementations§
Source§impl PlayerTextDraw
impl PlayerTextDraw
pub fn get_handle(&self) -> *const c_void
pub fn new(handle: *const c_void, player: Player) -> Self
pub fn is_shown(&self) -> bool
pub fn set_letter_size(&self, size: Vector2) -> bool
pub fn set_text_size(&self, size: Vector2) -> bool
Sourcepub fn alignment(&self, alignment: TextDrawAlignmentTypes) -> bool
pub fn alignment(&self, alignment: TextDrawAlignmentTypes) -> bool
Set the text alignment of a player-textdraw.
pub fn set_box_color(&self, colour: Colour) -> bool
Sourcepub fn set_shadow(&self, size: i32) -> bool
pub fn set_shadow(&self, size: i32) -> bool
Adds a shadow to the bottom-right side of the text in a player-textdraw.
Sourcepub fn set_outline(&self, size: i32) -> bool
pub fn set_outline(&self, size: i32) -> bool
Set the outline of a player-textdraw.
Sourcepub fn background_color(&self, colour: Colour) -> bool
pub fn background_color(&self, colour: Colour) -> bool
Adjust the background color of a player-textdraw.
pub fn set_style(&self, font: TextDrawStyle) -> bool
Sourcepub fn set_proportional(&self, set: bool) -> bool
pub fn set_proportional(&self, set: bool) -> bool
Appears to scale text spacing to a proportional ratio.
Sourcepub fn set_selectable(&self, set: bool) -> bool
pub fn set_selectable(&self, set: bool) -> bool
Toggles whether a player-textdraw can be selected or not.
Sourcepub fn set_string(&self, text: &str) -> bool
pub fn set_string(&self, text: &str) -> bool
Change the text of a player-textdraw.
Sourcepub fn set_preview_model(&self, model: i32) -> bool
pub fn set_preview_model(&self, model: i32) -> bool
Sets a player textdraw 3D preview sprite of a specified model ID.
pub fn set_preview_rotation(&self, rotation: Vector3, zoom: f32) -> bool
pub fn set_preview_veh_colour(&self, colour1: i32, colour2: i32) -> bool
Sourcepub fn get_string(&self) -> String
pub fn get_string(&self) -> String
Gets the text of a player-textdraw.
Sourcepub fn get_letter_size(&self) -> Vector2
pub fn get_letter_size(&self) -> Vector2
Gets the width and height of the letters.
Sourcepub fn get_text_size(&self) -> Vector2
pub fn get_text_size(&self) -> Vector2
Gets the X axis and Y axis of the player-textdraw text size.
Sourcepub fn get_box_color(&self) -> Colour
pub fn get_box_color(&self) -> Colour
Gets the box color of a player-textdraw
Sourcepub fn get_background_colour(&self) -> Colour
pub fn get_background_colour(&self) -> Colour
Gets the background colour of a player-textdraw
Sourcepub fn get_shadow(&self) -> i32
pub fn get_shadow(&self) -> i32
Get the shadow size on a player-textdraw.
Sourcepub fn get_outline(&self) -> i32
pub fn get_outline(&self) -> i32
Get the outline size on a player-textdraw.
pub fn get_style(&self) -> i32
Sourcepub fn is_proportional(&self) -> bool
pub fn is_proportional(&self) -> bool
Checks if a player-textdraw is proportional.
Sourcepub fn is_selectable(&self) -> bool
pub fn is_selectable(&self) -> bool
Checks if a player-textdraw is selectable.
Sourcepub fn get_alignment(&self) -> TextDrawAlignmentTypes
pub fn get_alignment(&self) -> TextDrawAlignmentTypes
Gets the text alignment of a player-textdraw.
Sourcepub fn get_preview_model(&self) -> i32
pub fn get_preview_model(&self) -> i32
Gets the preview model of a 3D preview player-textdraw.