Created
September 16, 2019 01:18
-
-
Save PichotM/49f5a288ec2eab7439038da9ad23ae42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RequestModel("peyote") | |
RequestModel("a_f_y_vinewood_04") | |
Wait(500) | |
pedVeh = CreateVehicle("peyote", GetEntityCoords(ped), .0) | |
GIRL_PED = CreatePed(4, "a_f_y_vinewood_04", GetEntityCoords(ped), .0) | |
Wait(500) | |
local animBase = "RANDOM@CAR_THEFT_1@MCS_2" | |
RequestAnimDict(animBase) | |
local scene = CreateSynchronizedScene(.0, .0, .0, .0, .0, .0, 2) | |
AttachSynchronizedSceneToEntity(scene, pedVeh, | |
GetEntityBoneIndexByName(pedVeh, "chassis")) | |
SetSynchronizedSceneOrigin(scene, .0, .0, .0, .0, .0, .0, 2) | |
TaskSynchronizedScene(GIRL_PED, scene, animBase, "girl_car_returned", 1000.0, | |
-2.0, 0, 0, 1148846080, 0) | |
TaskSynchronizedScene(ped, scene, animBase, "player_car_returned", 1000.0, -2.0, | |
1024, 0, 1148846080, 0) | |
local cam = CreateCamWithParams("DEFAULT_ANIMATED_CAMERA", -2254.588, 4277.307, | |
45.6133, 6.6248, 0.0369, 179.5595, 50.0, 0, 2) | |
PlaySynchronizedCamAnim(cam, scene, "car_returned_cam", animBase) | |
PlayEntityAnim(pedVeh, "car_returned_peyote", animBase, 1000.0, false, 0, 0, 0, | |
262144) | |
SetEntityCoords(pedVeh, -2269.34, 4279.89, 45.47, 1, false, 0, 1) | |
SetEntityHeading(pedVeh, 53.23) | |
SetVehicleOnGroundProperly(pedVeh, 1084227584) | |
SetEntityAsMissionEntity(pedVeh, 1, 0) | |
SetCamActive(cam, true) | |
RenderScriptCams(1, 0, 3000, 1, 0) | |
N_0xa76359fc80b2438e(1.0) | |
while GetSynchronizedScenePhase(scene) <= .95 do Citizen.Wait(0) end | |
DestroyCam(cam, 0) | |
DeletePed(GIRL_PED) | |
DeleteVehicle(pedVeh) | |
RenderScriptCams(0, 0, 0, 1, 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment