From caacc953b2c106b2738872a46611fd47b53d500b Mon Sep 17 00:00:00 2001 From: xshady <54737754+xxshady@users.noreply.github.com> Date: Sun, 30 Jun 2024 00:13:35 +0300 Subject: [PATCH] chore: add note to request-model snippet (#85) --- articles/snippets/request-model.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/articles/snippets/request-model.md b/articles/snippets/request-model.md index 6e7fefe..88a55e1 100644 --- a/articles/snippets/request-model.md +++ b/articles/snippets/request-model.md @@ -2,6 +2,9 @@ You need to request some models per natives, before using them. Because natives are non-blocking methods and the game wouldn't wait until the model has been loaded from disk, you need to call them as a async method. Here you can find an example, written in JavaScript how to load them correctly. +> [!NOTE] +> If you need to load model for ped, vehicle or object consider using [LocalVehicle](https://docs.altv.mp/js/api/alt-client.LocalVehicle.html), [LocalPed](https://docs.altv.mp/js/api/alt-client.LocalPed.html) or [LocalObject](https://docs.altv.mp/js/api/alt-client.LocalObject.html) API, these classes load the model under the hood for you. + # Example ## Usage of RequestModel Method