Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bentix-cs committed Apr 30, 2024
1 parent 6b079cc commit 2137ccf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 2137ccf

Please sign in to comment.