Try " if IsButtonPressed(2, 1) then " (zoom in)
and " elseif IsButtonPressed(14, 0) then " (look back)
Wont compile. With this error:
"luac: fs.lua:54: 'until' expected <to close 'repeat' at line 53> near 'elseif'"
GlobalImportScript("SObjTest.lua")
ImportScript("Library/LibTable.lua")
ImportScript("SZone.lua")
ImportScript("2_B.lua")
l_0_0 = 60
MissionSetup = function()
local l_1_0 = 270
local l_1_1 = -110
local l_1_2 = 6.4000000953674
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
LoadAnimationGroup("G_Johnny")
PedSetTypeToTypeAttitude(0, 13, 1)
PedSetTypeToTypeAttitude(1, 13, 3)
PedSetTypeToTypeAttitude(2, 13, 2)
PedSetTypeToTypeAttitude(3, 13, 1)
PedSetTypeToTypeAttitude(4, 13, 2)
PedSetTypeToTypeAttitude(5, 13, 2)
PedSetTypeToTypeAttitude(6, 13, 2)
PedSetTypeToTypeAttitude(7, 13, 2)
PedSetTypeToTypeAttitude(8, 13, 2)
PedSetTypeToTypeAttitude(9, 13, 2)
PedSetTypeToTypeAttitude(10, 13, 2)
PedSetTypeToTypeAttitude(11, 13, 1)
end
TL_Buttons = function()
if IsButtonPressed(2, 1) then if IsButtonPressed(2, 1) then
px,py,pz = PlayerGetPosXYZ()
TextPrintString("Player Pos: "..px..", "..py..", "..pz.."Area:"..AreaGetVisible(), 4, 2)
Wait(1000)
elseif IsButtonPressed(7, 0) then if IsButtonPressed(2, 1) then
PedSetActionNode(gPlayer, "/Global/G_Johnny/Cinematic/ThroatGrab", "Act/Anim/G_Johnny")
Wait(1000)
end
end
main = function()
Load("Act/Dialog.act")
Load("Act/Debug.act")
F_TableInit()
CreateThread("TL_Buttons")
gMissionRunning = true
while gMissionRunning do
UpdateTextQueue()
TL_Buttons()
Wait(0)
end
end
main = function()
repeat
elseif IsButtonPressed(14, 0) then if IsButtonPressed(2, 1) then
px,py,pz = PlayerGetPosXYZ()
TextPrintString("Player Pos: "..px..", "..py..", "..pz.."Area:"..AreaGetVisible(), 4, 2)
Wait(1000)
elseif IsButtonPressed(14, 0) then if IsButtonPressed(2, 1) then
PedSetActionNode(gPlayer, "/Global/G_Johnny/Cinematic/ThroatGrab", "Act/Anim/G_Johnny")
Wait(1000)
end
Wait(0)
until not Alive
end
MissionCleanup = function()
EnablePOI()
gMissionRunning = false
end