Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RegisterNetEvent('esx_extraitems:rollingpaper')
- AddEventHandler('esx_extraitems:rollingpaper', function()
- local playerPed = GetPlayerPed(-1)
- local coords = GetEntityCoords(playerPed)
- local boneIndex = GetPedBoneIndex(playerPed, 18905)
- local boneIndex2 = GetPedBoneIndex(playerPed, 57005)
- RequestAnimDict("anim@amb@business@weed@weed_sorting_seated@")
- while not HasAnimDictLoaded("anim@amb@business@weed@weed_sorting_seated@") do
- Citizen.Wait(1)
- end
- ESX.Game.SpawnObject('bkr_prop_weed_bud_pruned_01a', {
- x = coords.x,
- y = coords.y,
- z = coords.z - 3
- }, function(object)
- TaskPlayAnim(playerPed, "anim@amb@business@weed@weed_sorting_seated@", "sorter_right_sort_v3_sorter02", 8.0, -8, -1, 49, 0, 0, 0, 0)
- AttachEntityToEntity(object, playerPed, boneIndex2, 0.15, 0.01, -0.06, 185.0, 215.0, 180.0, true, true, false, true, 1, true)
- Citizen.Wait(6500)
- DeleteObject(object)
- ClearPedSecondaryTask(playerPed)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment