This code was generously given to me by GreenOmnitrix
This works and it plays conversation sounds but I think I might also need an animation that triggers talking with other pedestrians if anyone knows. Maybe an Speech Idle? Idk
Code:
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = 270 -- X coords
local l_1_1 = -110 -- Y coords
local l_1_2 = 6.4000000953674 -- Z coords
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
end
F_MissionSetup = function()
TextPrintString("Conversation Mod", 4, 1)
Wait(5000)
TextPrintString("By: GreenOmnitrix", 2, 1)
end
main = function()
F_MissionSetup()
CreateThread("TL_Buttons")
gMissionRunning = true
while gMissionRunning do
TL_Buttons()
Wait(0)
end
end
TL_Buttons = function()
if IsButtonPressed(3, 0) then
SoundPlayScriptedSpeechEvent(gPlayer, "CONVERSATION", 0, "speech")
end
end