Skip to content

Commit

Permalink
Merge pull request #62 from ND-Framework/tweak/peds-clothing-command
Browse files Browse the repository at this point in the history
tweak(client/peds): copying clothing
  • Loading branch information
Andyyy7666 authored Jan 30, 2024
2 parents eecbc8f + 6258651 commit 2ce47ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/peds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ end)
RegisterCommand("getclothing", function(source, args, rawCommand)
local info = ""
for k, v in pairs(clothingComponents) do
info = ("%s\n%s = {\n drawable = %s,\n texture = %s\n},"):format(info, k, GetPedDrawableVariation(cache.ped, v), GetPedTextureVariation(cache.ped, v))
info = ("%s\n%s = { drawable = %s, texture = %s },"):format(info, k, GetPedDrawableVariation(cache.ped, v), GetPedTextureVariation(cache.ped, v))
end
for k, v in pairs(clothingProps) do
info = ("%s\n%s = {\n drawable = %s,\n texture = %s\n},"):format(info, k, GetPedPropIndex(cache.ped, v), GetPedPropTextureIndex(cache.ped, v))
info = ("%s\n%s = { drawable = %s, texture = %s },"):format(info, k, GetPedPropIndex(cache.ped, v), GetPedPropTextureIndex(cache.ped, v))
end
lib.setClipboard(info)
end, false)

0 comments on commit 2ce47ef

Please sign in to comment.