SetPlayerOutline: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetPlayerOutline(player [, bEnable])}} {{FuncParameters}} {{FuncParam|player |__EDIT_ME__}} {{Func..."
 
28days (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Creates an outline near the ped.}}


{{FuncSyntax|SetPlayerOutline(player [, bEnable])}}
{{FuncSyntax|SetPlayerOutline(player [, bEnable])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|player |__EDIT_ME__}}
{{FuncParam|player |The player identifier.}}
{{FuncParamOptional|bEnable|__EDIT_ME__}}
{{FuncParamOptional|bEnable|The boolean status}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Noting.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerSpawn", function(player)
SetPlayerOutline(player, true)
Delay(10000, function(player)
SetPlayerOutline(player, false)
end)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 15:34, 16 November 2019

SetPlayerOutline

Type: Function
Context: Client
Introduced: v1.0

Description

Creates an outline near the ped.

Syntax

SetPlayerOutline(player [, bEnable])

Parameters

  • player
    The player identifier.
  • bEnable (optional)
    The boolean status

Return Value

  • Noting.

Example

AddEvent("OnPlayerSpawn", function(player)
	SetPlayerOutline(player, true)
	Delay(10000, function(player)
		SetPlayerOutline(player, false)
	end)
end)

See also

__EDIT_ME__