Created
September 16, 2019 01:16
-
-
Save PichotM/87d4bed1316a0f44f762475c377a96d6 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
local startPos, startAng = vector3(-1560.336, -3019.058, -74.8061), -30.0 | |
local anim = "mini@strip_club@throwout_d@" | |
RequestAnimDict(anim) | |
local peds = {} | |
peds[1] = CreatePed(4, GetHashKey("s_m_y_clubbar_01"), | |
startPos + vector3(-10.0, .0, .0), .0, false, true) | |
SetPedDefaultComponentVariation(peds[1]) | |
FreezeEntityPosition(peds[1], true) | |
peds[2] = CreatePed(4, GetHashKey("s_m_m_bouncer_01"), | |
startPos + vector3(-10.0, .0, .0), .0, false, true) | |
SetPedDefaultComponentVariation(peds[2]) | |
SetPedComponentVariation(peds[2], 0, 0, 2, 0) | |
SetPedComponentVariation(peds[2], 2, 1, 0, 0) | |
SetPedComponentVariation(peds[2], 3, 1, 1, 0) | |
SetPedComponentVariation(peds[2], 4, 0, 0, 0) | |
SetPedComponentVariation(peds[2], 8, 1, 0, 0) | |
SetPedComponentVariation(peds[2], 11, 0, 0, 0) | |
FreezeEntityPosition(peds[2], true) | |
peds[3] = ped | |
SetEntityCoords(peds[3], startPos + vector3(-10.0, .0, .0), 0, false, 0, 1) | |
FreezeEntityPosition(peds[3], true) | |
local cam = CreateCamera(964613260, 0) | |
SetEntityVisibleInCutscene(ped, 1, 1) | |
local scene = CreateSynchronizedScene(startPos, .0, .0, startAng, 1) | |
FreezeEntityPosition(peds[1], false) | |
TaskSynchronizedScene(peds[1], scene, anim, "throwout_d_bouncer_a", 1000.0, | |
-2.0, 0, 0, 1148846080, 0) | |
FreezeEntityPosition(peds[2], false) | |
TaskSynchronizedScene(peds[2], scene, anim, "throwout_d_bouncer_b", 1000.0, | |
-2.0, 0, 0, 1148846080, 0) | |
FreezeEntityPosition(peds[3], false) | |
TaskSynchronizedScene(peds[3], scene, anim, "throwout_d_victim", 1000.0, -2.0, | |
0, 0, 1148846080, 0) | |
while GetSynchronizedScenePhase(scene) <= .9 do Citizen.Wait(0) end | |
DeleteEntity(peds[1]) | |
DeleteEntity(peds[2]) | |
ClearPedTasks(ped) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment