Hey everyone. Would love some help from anyone that knows how to implement this.
I need to add some props when i use a usable item.
I already know hot to make the character do the animation,just cant seem to figure out how to attach a prop. in this case a phone.
Ive already created my RegisterNetEvent and it triggers perfectly…just need the prop.
here is my code.
RegisterNetEvent(‘burneranim’)
AddEventHandler(‘burneranim’, function()
local animation = {“amb@world_human_stand_mobile_fat@male@text@base”, “base”}
RequestAnimDict(animation[1])
while not HasAnimDictLoaded(animation[1]) do
Citizen.Wait(50)
end
TaskPlayAnim(PlayerPedId(), animation[1], animation[2], 1.0, 1.0, 5000, 1)
RemoveAnimDict(animation[1])
end)
If anyone can help please let me know. Thanks in advance!!