I tried to put this in free roam and the nodes don't work again TL_Buttons = function()
if IsButtonBeingPressed(3, 0) then
ExecuteActionNode(gPlayer, "/Global/Ambient/HarassMoves/HarassShort/Shoves", "Act/Conv/Ambient.act")
elseif IsButtonBeingPressed(1, 0) then
ExecuteActionNode(gPlayer, "/Global/Ambient/Reactions/HumiliationReact/Laughing", "Act/Anim/Ambient.act")
elseif IsButtonPressed(10, 0) and IsButtonBeingPressed(8, 0) then
ExecuteActionNode(gPlayer, "/Global/2_08Conv/Taunt/TauntPlayer", "Act/Conv/2_08.act")
SoundPlayScriptedSpeechEvent(gPlayer, "TAUNT", 0, "large")
elseif IsButtonPressed(10, 0) and IsButtonBeingPressed(12, 0) then
SoundPlayScriptedSpeechEvent(gPlayer, "FIGHT", 0, "large")
elseif IsButtonBeingPressed(12, 0) then
SoundPlayScriptedSpeechEvent(gPlayer, "CHATTER", 0, "large")
elseif IsButtonBeingPressed(0, 0) then
SoundPlayScriptedSpeechEvent(gPlayer, "SEE_ALLY_ATTACKED", 0, "large")
end
end
main = function()
Wait(500) -- Wait 0.5 seconds. This is needed for some scenarios.
PlayerSetHealth(5000)
PedSetTypeToTypeAttitude(2, 13, 2)
PedSetTypeToTypeAttitude(1, 13, 2)
PedSetTypeToTypeAttitude(4, 13, 2)
PedSetTypeToTypeAttitude(5, 13, 1)
PedSetTypeToTypeAttitude(6, 13, 3)
PedSetTypeToTypeAttitude(11, 13, 2)
PedSetTypeToTypeAttitude(3, 13, 4)
PlayerSwapModel("DOH1a_Otto")
TextPrintString("Made by LOCO DE DROGA", 5, 2)
LoadAllAnim()-- Setup code goes here.
while true do
TL_Buttons()
Wait(0)
end
TextPrintString("Mod finished",1,1)
end
-- In most cases, you can ignore everything below here
F_AttendedClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
SetSkippedClass(false)
PlayerSetPunishmentPoints(0)
end
F_MissedClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
SetSkippedClass(true)
StatAddToInt(166)
end
F_AttendedCurfew = function()
if not PedInConversation(gPlayer) and not MissionActive() then
TextPrintString("You got home in time for curfew", 4)
end
end
F_MissedCurfew = function()
if not PedInConversation(gPlayer) and not MissionActive() then
TextPrint("TM_TIRED5", 4, 2)
end
end
F_StartClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
F_RingSchoolBell()
local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()
end
F_EndClass = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
F_RingSchoolBell()
end
F_StartMorning = function()
F_UpdateTimeCycle()
end
F_EndMorning = function()
F_UpdateTimeCycle()
end
F_StartLunch = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
F_UpdateTimeCycle()
return
end
F_UpdateTimeCycle()
end
F_EndLunch = function()
F_UpdateTimeCycle()
end
F_StartAfternoon = function()
F_UpdateTimeCycle()
end
F_EndAfternoon = function()
F_UpdateTimeCycle()
end
F_StartEvening = function()
F_UpdateTimeCycle()
end
F_EndEvening = function()
F_UpdateTimeCycle()
end
F_StartCurfew_SlightlyTired = function()
F_UpdateTimeCycle()
end
F_StartCurfew_Tired = function()
F_UpdateTimeCycle()
end
F_StartCurfew_MoreTired = function()
F_UpdateTimeCycle()
end
F_StartCurfew_TooTired = function()
F_UpdateTimeCycle()
end
F_EndCurfew_TooTired = function()
F_UpdateTimeCycle()
end
F_EndTired = function()
F_UpdateTimeCycle()
end
F_Nothing = function()
end
F_ClassWarning = function()
if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
return
end
local l_23_0 = math.random(1, 2)
end
F_UpdateTimeCycle = function()
if not IsMissionCompleated("1_B") then
local l_24_0 = GetCurrentDay(false)
if l_24_0 < 0 or l_24_0 > 2 then
SetCurrentDay(0)
end
end
F_UpdateCurfew()
end
F_UpdateCurfew = function()
local l_25_0 = shared.gCurfewRules
if not l_25_0 then
l_25_0 = F_CurfewDefaultRules
end
l_25_0()
end
F_CurfewDefaultRules = function()
local l_26_0 = ClockGet()
if l_26_0 >= 23 or l_26_0 < 7 then
shared.gCurfew = true
else
shared.gCurfew = false
end
end
what's wrong?