From 24229485d9fb8c06570e016580c63d031f6fe60e Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Mon, 8 Sep 2025 19:14:47 +0200 Subject: [PATCH] feat: creataiped callback on ped creation --- client/peds.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/peds.lua b/client/peds.lua index dd731d8..3f62c0e 100644 --- a/client/peds.lua +++ b/client/peds.lua @@ -112,7 +112,7 @@ local function disableCollisionWithModels(ped, models) end end -function NDCore.createAiPed(info) +function NDCore.createAiPed(info, cb) local ped local model = type(info.model) == "string" and GetHashKey(info.model) or info.model local blipInfo = info.blip @@ -148,6 +148,10 @@ function NDCore.createAiPed(info) Wait(100) end + if cb then + cb(ped) + end + disableCollisionWithModels(ped, info.disableCollisionWithModels) configPed(ped) setClothing(ped, clothing)