Skip to content

Commit

Permalink
Delete propName
Browse files Browse the repository at this point in the history
  • Loading branch information
alp1x committed Apr 18, 2023
1 parent 3ebf87f commit bd1e8cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd1e8cc

Please sign in to comment.