|QUOTE (AngryAmoeba @ May 2 2010, 19:22)|
| I was super-excited for this update, but unfortunately the C++ scripthook v0.5.0 is giving me crashes. |
But anyway, could someone tell me how the handling of Components in Player.Skin has changed? My script with the line "Player.Skin.SetComponentModel(PedComponent.Backpack, 3)" throws an error.
You are using version 22.214.171.124 of the game? The problem with older version is that they usually aren't tested again later on and if anything gets messed up for old versions during development chances are high that it will stay messed up. You could try to download an old version of the C++ ScriptHook and copy the ScriptHook.dll over the one contained in this archive.
The new ped component handling is much more flexible. Now you are able to enumerate through available models and textures for each component and stuff like that. Setting the component model works like this:
Player.Skin.Component.Bags.ModelIndex = 3