script_name("Sbiv Animation")

require 'lib.moonloader'
local sbivStyle = 2
-- Style 1 - разморозка и тп на координаты на которых был
-- Style 2 - тупо сбив анимации анимацией

function main()
	if not isSampfuncsLoaded() or not isSampLoaded() then return end
	while not isSampAvailable() do wait(420) end
	while true do
		wait(0)
		if isKeyJustPressed(VK_SHIFT) and not sampIsChatInputActive() and isCharOnFoot(playerPed) then -- unfreeze and tp
			if sbivStyle == 1 then
				local isInVeh = isCharInAnyCar(playerPed)
				setPlayerControl(playerHandle, true)
				freezeCharPosition(playerPed, false)
				restoreCameraJumpcut()
				if not isInVeh then
					local x, y, z = getCharCoordinates(playerPed)
					setCharCoordinates(playerPed, x, y, z - 1)
				end
			elseif sbivStyle == 2 then taskPlayAnimNonInterruptable(playerPed, "HANDSUP", "PED", 4.0, false, false, false, false, 5) end
		end
	end
end

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: