SetNPCClothingPreset: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|This function sets a predefined clothing preset on an NPC. This is for people who are not interested in setting each clothing i..." |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|npc|The | {{FuncParam|npc|The NPC identifier.}} | ||
{{FuncParam|clothing_preset|The clothing preset .}} | {{FuncParam|clothing_preset|The clothing preset .}} | ||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetNPCClothingPreset(npcId, presetId) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} |
Latest revision as of 18:02, 13 January 2020
Description
This function sets a predefined clothing preset on an NPC. This is for people who are not interested in setting each clothing item ClothingExample.
Syntax
SetNPCClothingPreset(npc, clothing_preset)
Parameters
- npc
The NPC identifier. - clothing_preset
The clothing preset .
Return Value
- Returns true on success.
Example
SetNPCClothingPreset(npcId, presetId)
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime