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..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Creates an outline near the ped.}} | ||
{{FuncSyntax|SetPlayerOutline(player [, bEnable])}} | {{FuncSyntax|SetPlayerOutline(player [, bEnable])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player | | {{FuncParam|player |The player identifier.}} | ||
{{FuncParamOptional|bEnable| | {{FuncParamOptional|bEnable|The boolean status}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Noting.}} | ||
== Example == | == Example == | ||
<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
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__