11
« on: July 20, 2013, 01:32:16 PM »
Right okay guys, this is just the basic script i got off SWEGTA and i added a few things to it:
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(700) -- gives the player 700 health
AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
DisablePunishmentSystem = TRUE
TextPrintString("BodyGuard Mod Test", 4, 1) -
Bif = PedCreateXYZ(33, l_1_0 +1, l_1_1 +1, l_1_2+1)
PedRecruitAlly(gplayer, Bif)
PedSetWeapon(Bif, 324,1) -
Darby = PedCreateXYZ(37, l_1_0 +2, l_1_1 +2, l_1_2+2)
PedRecruitAlly(Bif, Darby)
end
MissionCleanup = function()
end -- end statement
main = function() -- Main mission function
repeat
Wait(0)
until l_0_0 ~= false
Wait(3000)
MissionSucceed()
end
I removed the Text thing and now i get line 16 error with the bif weapon thing, can someone tell me how to spawn him with a sledgehammer?