1
Bully Modding / Infinite Loading Screen
« on: April 02, 2019, 11:47:54 PM »
Every time I go to the arcade race machine it loads infinitely. I also borrowed a lot of code from DaBoss. Can anybody help me?
Here is the Code:
Here is the Code:
Code: [Select]
function MissionSetup()
PlayerSetPosXYZArea(14,-498,319,31)
PlayerSetHealth(PedGetMaxHealth(gPlayer))
LoadAllAnim()
end
function MissionCleanup()
TextPrintString('',1,1)
TextPrintString('',1,2)
PlayerSetControl(1)
CameraReturnToPlayer()
CameraSetWidescreen(false)
SoundStopStream()
DisablePunishmentSystem(false)
end
function main()
TestMissionPartOne()
end
function PedsPrepareConversation(ped1, ped2, distance, walkSpeed)
PlayerSetPunishmentPoints(0)
if PedGetWeapon(gPlayer) == 437 then
PedSetWeapon(gPlayer, -1)
end
if PedIsInAnyVehicle(gPlayer) then
PedWarpOutOfCar(gPlayer)
end
PedStop(ped2)
local x,y,z = PedGetPosXYZ(ped2)
PedMoveToXYZ(ped1, walkSpeed, x, y, z)
local r1 = x + distance
local r2 = y + distance
local r3 = x - distance
local r4 = y - distance
x, y, z = PedGetPosXYZ(ped1)
PedFaceXYZ(ped2, x, y, z)
repeat
Wait(0)
until PedInRectangle(ped1,r1,r2,r3,r4)
PedStop(ped1)
x,y,z = PedGetPosXYZ(ped2)
PedFaceXYZ(ped1,x,y,z)
x,y,z = PedGetPosXYZ(ped1)
PedFaceXYZ(ped2,x,y,z)
end
function TestMissionPartOne()
CameraFade(500,1)
pete = PedCreate(14,-494,320,31)
PedSetStationary(pete, true)
PedSetInvulnurable(pete, true)
PlayerSetControl(0)
CameraSetXYZ(-493,317,31)
CameraLookAtXYZ(-495,314,31.5)
CameraSetWidescreen(true)
PedsPrepareConversation(gPlayer, pete, 1, 0)
TextPrintString("Peter: YO, bitch. It's your boy, blueface. Bust down thotiana. Jk. It's Pete.", 10, 2)
Wait(2000)
TextPrintString("Jimmy: What the fuck? Fuck you.", 10, 2)
Wait(2000)
TextPrintString("Pete: FUCK YOU TOO! DIE BITCH!", 10, 2)
AddBlipForChar(pete, 0, 26, 2)
PedSetStationary(pete,false)
PedSetInvulnurable(pete, false)
PlayerSetControl(1)
CameraReturnToPlayer()
CameraSetWidescreen(false)
SoundPlayStream("MS_BikeChaseHigh.rsm", 0.69999998807907)
PedAttackPlayer(pete)
repeat
Wait(0)
until PedIsDead(pete)
MissionSucceed()
end