Announcements: Please turn off your adblock for Bullymods.net! Advertisements help us pay for the site, which allows you to use it--
*Also make sure to Introduce yourself, in the below section! Say Hi, and tell us who you are!* ~quinn

How long does it take for a mod to load?

User avatar
CheesyBorders
Getting Somewhere
Getting Somewhere
Posts: 94
Joined: Tue Aug 15, 2017 8:22 am
Location: Newfoundland

How long does it take for a mod to load?

Postby CheesyBorders » Sun Aug 27, 2017 7:19 pm

Just made my first basic script mod. I went into the dorm arcade machine, and it's been loading for 5 minutes now. Is this normal, or is there something I did wrong?

User avatar
SimonBestia
Getting Somewhere
Getting Somewhere
Posts: 64
Joined: Sat Aug 12, 2017 8:12 pm
Location: Italy
Contact:

Re: How long does it take for a mod to load?

Postby SimonBestia » Sun Aug 27, 2017 7:35 pm

Obviously you did something wrong.
It should only take few seconds.
Last edited by SimonBestia on Tue Sep 19, 2017 11:44 am, edited 1 time in total.

User avatar
quinn
Administrator
Administrator
Posts: 554
Joined: Wed Aug 09, 2017 4:36 pm
Contact:

Re: How long does it take for a mod to load?

Postby quinn » Sun Aug 27, 2017 9:46 pm

Post your script here, and I'll take a look at it for you @CheesyBorders

User avatar
CheesyBorders
Getting Somewhere
Getting Somewhere
Posts: 94
Joined: Tue Aug 15, 2017 8:22 am
Location: Newfoundland

Re: How long does it take for a mod to load?

Postby CheesyBorders » Sun Aug 27, 2017 10:30 pm

quinn wrote:
Sun Aug 27, 2017 9:46 pm
Post your script here, and I'll take a look at it for you @CheesyBorders
It's the same one that daboss used in his video:function MissionSetup()
PlayerSotPosXYZArea(270,-110,6,0)
ped= PedCreateXYZ(134,275,-110,6)
PedRecruuitAlly(gPlayer,ped)
end

function main()
enemy = PedCreateXYZ(130,265,-110,6)
PedSetPedToTypeAttitude(enemy,13,0)
PedAttackPlayer(enemy,3)
repeat
Wait(0)
until PedIsDead(enemy)
MissionSucceed ()
end

Is there anything I did wrong here?

User avatar
SimonBestia
Getting Somewhere
Getting Somewhere
Posts: 64
Joined: Sat Aug 12, 2017 8:12 pm
Location: Italy
Contact:

Re: How long does it take for a mod to load?

Postby SimonBestia » Mon Aug 28, 2017 7:28 am

CheesyBorders wrote:
Sun Aug 27, 2017 10:30 pm
PedRecruuitAlly(gPlayer,ped)
Last edited by SimonBestia on Tue Sep 19, 2017 11:44 am, edited 1 time in total.

User avatar
quinn
Administrator
Administrator
Posts: 554
Joined: Wed Aug 09, 2017 4:36 pm
Contact:

Re: How long does it take for a mod to load?

Postby quinn » Mon Aug 28, 2017 10:45 am

function MissionSetup()
PlayerSetPosXYZArea(270,-110,6,0) --you put Sot
ped = PedCreateXYZ(134,275,-110,6) --no space between ped and =
PedRecruitAlly(gPlayer,ped) --recruit spelt wrong
end

function main()
enemy = PedCreateXYZ(130,265,-110,6)
PedSetPedToTypeAttitude(enemy,13,0)
PedAttackPlayer(enemy,3)
repeat
Wait(0)
until PedIsDead(enemy)
MissionSucceed ()
end

--you can copy all of this with the dashes in, LUA reads them as notes. Hope this helps. You didn't overly do anything wrong, just a few type mistakes and spelling errors, you didn't get any functions wrong however. good job! if you ever want me to make a slightly harder script, note it, and send it to you so you can learn from it and test out new functions, let me know!

User avatar
CheesyBorders
Getting Somewhere
Getting Somewhere
Posts: 94
Joined: Tue Aug 15, 2017 8:22 am
Location: Newfoundland

Re: How long does it take for a mod to load?

Postby CheesyBorders » Tue Aug 29, 2017 12:54 am

quinn wrote:
Mon Aug 28, 2017 10:45 am
function MissionSetup()
PlayerSetPosXYZArea(270,-110,6,0) --you put Sot
ped = PedCreateXYZ(134,275,-110,6) --no space between ped and =
PedRecruitAlly(gPlayer,ped) --recruit spelt wrong
end

function main()
enemy = PedCreateXYZ(130,265,-110,6)
PedSetPedToTypeAttitude(enemy,13,0)
PedAttackPlayer(enemy,3)
repeat
Wait(0)
until PedIsDead(enemy)
MissionSucceed ()
end

--you can copy all of this with the dashes in, LUA reads them as notes. Hope this helps. You didn't overly do anything wrong, just a few type mistakes and spelling errors, you didn't get any functions wrong however. good job! if you ever want me to make a slightly harder script, note it, and send it to you so you can learn from it and test out new functions, let me know!
Thanks! Mod is running great now.

User avatar
CheesyBorders
Getting Somewhere
Getting Somewhere
Posts: 94
Joined: Tue Aug 15, 2017 8:22 am
Location: Newfoundland

Re: How long does it take for a mod to load?

Postby CheesyBorders » Tue Aug 29, 2017 12:54 am

SimonBestia wrote:
Mon Aug 28, 2017 7:28 am
CheesyBorders wrote:
Sun Aug 27, 2017 10:30 pm
PedRecruuitAlly(gPlayer,ped)
Thank you!


Who is online

Users browsing this forum: No registered users and 1 guest