SetPlayerClothingPreset: Difference between revisions
From Onset Developer Wiki
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..." |
No edit summary |
||
Line 9: | Line 9: | ||
{{FuncParam|clothing_preset|The clothing preset .}} | {{FuncParam|clothing_preset|The clothing preset .}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == |
Revision as of 13:37, 23 November 2019
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
AddEvent("OnRenderHUD", function()
local x, y, z = GetPlayerLocation()
AddPlayerChat("Player location: "..x..", "..y..", "..z)
end)