Skip to content

Commit

Permalink
fix: local ped example (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady authored May 19, 2024
1 parent 2cf6821 commit 9ce4381
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion articles/ped.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ const dimension = alt.defaultDimension; // 0 dimension
const pos = new alt.Vector3(0, 0, 71);
const rot = alt.Vector3.zero;
const useStreaming = true;
const streamingDistance = 100; // customize for your needs

const ped = new alt.LocalPed(model, dimension, pos, rot, useStreaming);
const ped = new alt.LocalPed(model, dimension, pos, rot, useStreaming, streamingDistance);

// Waiting until ped spawns for 5 seconds or rejecting current promise
// (timeout value is not required, 2 seconds by default in v15)
Expand Down

0 comments on commit 9ce4381

Please sign in to comment.