SetPlayerClothingPreset: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 12: Line 12:


== Example ==
== Example ==
<syntaxhighlight lang="Lua">
__EDIT_ME__
AddEvent("OnRenderHUD", function()
local x, y, z = GetPlayerLocation()
AddPlayerChat("Player location: "..x..", "..y..", "..z)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[SetPlayerLocation]]
* [[SetPlayerLocation]]

Revision as of 13:38, 23 November 2019

SetPlayerClothingPreset

Type: Function
Context: Client
Introduced: v1.0

Description

This function sets a predefined clothing preset on a player. This is for people who are not interested in setting each clothing item ClothingExample.

Syntax

SetPlayerClothingPreset(player, clothing_preset)

Parameters

  • player
    The player identifier.
  • clothing_preset
    The clothing preset .

Return Value

  • Returns true on success.

Example

__EDIT_ME__

See also