diff --git a/client.js b/client.js index eca4ad6..36a72dc 100644 --- a/client.js +++ b/client.js @@ -254,11 +254,13 @@ async function LoadComponentVariation(ped, component, drawable, texture) { if (config.debug) console.log(`DEBUG: Loading Component Variation: ${component} ${drawable} ${texture}`); - SetPedPreloadVariationData(ped, component, drawable, 0); + SetPedPreloadVariationData(ped, component, drawable, texture); while (!HasPedPreloadVariationDataFinished(ped)) { await Delay(50); } - SetPedComponentVariation(ped, component, drawable, 0, 0); + SetPedComponentVariation(ped, component, drawable, texture, 0); + + return; } async function LoadPropVariation(ped, component, prop, texture) { @@ -272,6 +274,8 @@ async function LoadPropVariation(ped, component, prop, texture) { } ClearPedProp(ped, component); SetPedPropIndex(ped, component, prop, texture, 0); + + return; } function createGreenScreenVehicle(vehicleHash, vehicleModel) { diff --git a/config.json b/config.json index e4b3a53..dca4941 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,5 @@ { - "debug:": false, + "debug": false, "includeTextures": false, "//__comment__//": "The image generation will take much longer and you will have much more images!", "useQBVehicles": false,