Pular para o conteúdo principal

TextDrawSetSelectable

Descrição

Define se um textdraw pode ser selecionado (clicado) ou não

NomeDescrição
Text:textidO ID do textdraw para tornar selecionável.
bool:selectable'true' para torná-lo selecionável ou 'false' para torná-lo não selecionável.

Retornos

Esta função não retorna nenhum valor específico.

Exemplos

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawTextSize(gMyTextdraw, 30.0, 10.0);
TextDrawSetSelectable(gMyTextdraw, true);
return 1;
}

Notas

dica

Use TextDrawTextSize para definir a área clicável.

aviso

TextDrawSetSelectable deve ser usado BEFORE o textdraw é mostrado aos jogadores para que seja selecionável.

Funções Relacionadas

Callbacks Relacionadas