I tried
MissionCleanup = function()
if PedIsDead(Bully01) then
TextPrint("M_PASS", 3, 0) Wait(10000) MissionSucceed()
if PedIsDead(gPlayer) then
TextPrint("M_FAIL", 3, 0) Wait(10000) MissionFail()
end
end
end
then
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)
Bully01 = PedCreateXYZ(99, l_1_0 + 1, l_1_1 + 1, l_1_2 + 1)
if PedIsDead(Bully01) then
TextPrint("M_PASS", 3, 0) Wait(10000) MissionSucceed()
end
if PedIsDead(gPlayer) then
TextPrint("M_FAIL", 3, 0) Wait(10000) MissionFail()
end
end
and did not complete the mission
not back to normal game
sorry for bad english