Skip to content

Instantly share code, notes, and snippets.

@Randolio
Created December 21, 2025 23:13
Show Gist options
  • Select an option

  • Save Randolio/f9c51e8711f7cc47f8efed2977e9f029 to your computer and use it in GitHub Desktop.

Select an option

Save Randolio/f9c51e8711f7cc47f8efed2977e9f029 to your computer and use it in GitHub Desktop.
beach washup scene
-- am_beach_washup_cinematic.c --
RegisterCommand('wakeup', function()
local pos = GetEntityCoords(cache.ped)
local heading = GetEntityHeading(cache.ped)
local coords = vec4(pos.x, pos.y, pos.z-1.0, heading)
local dict = IsPedMale(cache.ped) and 'anim@scripted@heist@ig25_beach@male@' or 'anim@scripted@heist@ig25_beach@heeled@'
DoScreenFadeOut(500) while not IsScreenFadedOut() do Wait(10) end
SetEntityCoords(cache.ped, coords.x, coords.y, coords.z, false, false, false, true)
SetEntityHeading(cache.ped, coords.w)
FreezeEntityPosition(cache.ped, true)
lib.requestAnimDict(dict, 10000)
local scene = NetworkCreateSynchronisedScene(coords.x, coords.y, coords.z, 0.0, 0.0, coords.w, 2, false, false, 1.0, 0.0, 1.0 )
NetworkAddPedToSynchronisedScene(cache.ped, scene, dict, 'action', 8.0, -8.0, 0, 0, 1000.0, 0 )
NetworkStartSynchronisedScene(scene)
SetFacialIdleAnimOverride(cache.ped, 'HS4F_IG25_BEACH', 0)
local cam = CreateCam('DEFAULT_ANIMATED_CAMERA', true)
PlayCamAnim(cam, 'action_camera', dict, coords.x, coords.y, coords.z, 0.0, 0.0, coords.w, false, 2)
RenderScriptCams(true, false, 1000, true, false)
DoScreenFadeIn(2000)
Wait(13000)
NetworkStopSynchronisedScene(scene)
RenderScriptCams(false, true, 1000, true, false)
DestroyCam(cam, false)
ClearFacialIdleAnimOverride(cache.ped)
FreezeEntityPosition(cache.ped, false)
RemoveAnimDict(dict)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment