Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Remove Clothing #11

Open
TheDevster opened this issue May 28, 2021 · 3 comments
Open

Remove Clothing #11

TheDevster opened this issue May 28, 2021 · 3 comments

Comments

@TheDevster
Copy link

Where would I look to get an idea of how I can remove clothing from a ped? Say for a bath?

@Tak2607
Copy link

Tak2607 commented May 28, 2021

Here the Categories for clothes :

[Categories]
0x9925C067=Hats
0x864B03AE=Hair
0x2026C46D=Shirts
0x485EE834=Vests
0x1D4C528A=Pants
0x15D3C7F2=Goatees
0x18729F39=Spurs
0x1AECF7DC=Unknown 1
0x3107499B=Chaps
0x378AD10C=Heads
0x3C1A74CD=Cloaks
0xA0E3AB7F=Skirts (MP)
0x3F1F01E5=Gunbelt Ammunition
0x3F7F3587=Badges
0x49C89D9B=Guns
0x4A73515C=Masks
0x7505EF42=Masks (MP)
0x514ADCEA=Spats
0x5FC29285=Neckwear
0x76F0E272=Aprons
0x777EC6EF=Boots
0x79D7DF96=Accessories
0x7A6BBD0B=Rings Right Hand (MP)
0xF16A1D23=Rings Left Hand (MP)
0x7BC10759=Bracelets (MP)
0x91CE9B20=Gauntlets (MP)
0x7A96FACA=Neckties
0x7BE77792=Sheaths
0x7C00A8F0=Unknown 2
0x823687F5=Legs
0xF1542D11=Leg Attachments (MP)
0x83887E88=Loadouts
0x877A2CF7=Suspenders
0x8EFB276A=Unknown 3
0x94504D26=Satchels
0x96EDAE5C=Teeth
0x9B2C8B89=Gunbelts
0xA6D134C6=Belts
0xFAE9107F=Belt Buckle
0xB3966C9=Torsos
0xB6B6122D=Offhand Holsters
0xB6B63737=Sideburns -- Patte barbe
0xB9E2FA01=Primary Holsters
0xDA0E2C55=Bandoiler Ammunition
0xDB64A390=Unknown 4
0xE06D30CE=Coats
0x662AC34=Coats (MP)
0xAF14310B=Ponchos (MP)
0x72E6EF74=Armor (MP)
0xEA24B45E=Eyes
0x5E47CA6=Eyewear
0xEABE0032=Gloves
0xECC8B25A=Mustache
0xF8016BCA=Mustache (MP)

You can remove them by this kind of script (example here, remove hats):

Citizen.InvokeNative(0xD710A5007C2AC539, PlayerPedId(), 0x9925C067, 0) -- Target Category Hat
Citizen.InvokeNative(0xCC8CA3E88256E58F, PlayerPedId(), 0, 1, 1, 1, 0) -- Actually remove the component

@TheDevster
Copy link
Author

Basically loop over all categories and remove component. I take it the second Native uses the first Native to identify the component?

I appreciate the help!

@Tak2607
Copy link

Tak2607 commented May 29, 2021

The first line get catch you the category, the second line, remove the category upon ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants