From bd1e8ccb3e709bf8528622a4dedc189ed4f5ed7e Mon Sep 17 00:00:00 2001 From: uyuyorum {um} Date: Tue, 18 Apr 2023 16:38:25 +0300 Subject: [PATCH] Delete propName --- main/client.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/client.lua b/main/client.lua index fc2722b..5d18ab1 100644 --- a/main/client.lua +++ b/main/client.lua @@ -37,9 +37,8 @@ end) RegisterNetEvent('um-idcard:client:startAnim', function(cardType) local prop = Config.Licenses[cardType].prop if not prop then return print('No prop') end - local propName = prop local playerCoords = GetEntityCoords(cache.ped) - local createProp = CreateObject(GetHashKey(propName), playerCoords.x, playerCoords.y, playerCoords.z + 0.2, true, true, true) + local createProp = CreateObject(GetHashKey(prop), playerCoords.x, playerCoords.y, playerCoords.z + 0.2, true, true, true) loadAnimDict(animDict) AttachEntityToEntity(createProp, cache.ped, GetPedBoneIndex(cache.ped, 57005), 0.1000, 0.0200, -0.0300, -90.000, 170.000, 78.999, true, true, false, true, 1, true) TaskPlayAnim(cache.ped, animDict, anim, 3.0, -1, -1, 50, -1, false, false, false)