Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local animDict = "anim@heists@ornate_bank@grab_cash"
- RequestAnimDict(animDict)
- RequestModel("hei_p_m_bag_var22_arm_s")
- RequestModel("hei_prop_hei_cash_trolly_01")
- while not HasAnimDictLoaded(animDict) or
- not HasModelLoaded("hei_p_m_bag_var22_arm_s") or
- not HasModelLoaded("hei_prop_hei_cash_trolly_01") do
- Citizen.Wait(100)
- end
- local ped = PlayerPedId()
- local targetPosition, targetRotation = (vec3(GetEntityCoords(ped))), vec3(GetEntityRotation(ped))
- local animPos = GetAnimInitialOffsetPosition(animDict, "grab", targetPosition, targetRotation, 0, 2)
- FreezeEntityPosition(ped, true)
- local netScene = NetworkCreateSynchronisedScene(targetPosition, targetRotation, 2, false, false, 1065353216, 0, 1.3)
- NetworkAddPedToSynchronisedScene(ped, netScene, animDict, "grab", 1.5, -4.0, 1, 16, 1148846080, 0)
- local bag = CreateObject(GetHashKey("hei_p_m_bag_var22_arm_s"), targetPosition, 1, 1, 0)
- NetworkAddEntityToSynchronisedScene(bag, netScene, animDict, "bag_grab", 4.0, -8.0, 1)
- local trolly = CreateObject(GetHashKey("hei_prop_hei_cash_trolly_01"), targetPosition, 1, 1, 0)
- NetworkAddEntityToSynchronisedScene(trolly, netScene, animDict, "cart_cash_dissapear", 4.0, -8.0, 1)
- NetworkStartSynchronisedScene(netScene)
- Citizen.Wait(GetAnimDuration(animDict, "grab") * 1000) -- 47.93 secs
- NetworkStopSynchronisedScene(netScene)
- DeleteObject(bag)
- DeleteObject(trolly)
- FreezeEntityPosition(ped, false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement