SetPlayerClothingPreset

From Onset Developer Wiki
Revision as of 13:37, 23 November 2019 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|This function sets a predefined clothing preset on a player. This is for people who are not interested in setting each clothing...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  • The client's location.

Example

AddEvent("OnRenderHUD", function()
	local x, y, z = GetPlayerLocation()
	AddPlayerChat("Player location: "..x..", "..y..", "..z)
end)

See also