Bully-Board

Bully Modding Section => Script Modding => Topic started by: Craig Tucker on January 03, 2017, 02:28:37 PM

Title: my lua mod need help
Post by: Craig Tucker on January 03, 2017, 02:28:37 PM
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(1000) -- gives the player 200 health
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
 
TextPringString("Jimmy gets betrayed beta",4,1)
Johnny = PedCreateXYZ(23 1_1_0 + 1_1_2+1)
PedRecuritAlly(gplayer,Johnny)
 
end
 
MissionCleanup = function()
end -- end statement
 
main = function() -- Main mission function
  repeat
    Wait(0)
  until l_0_0 ~= false
  Wait(3000)
  MissionSucceed()
end

the code but cmd prompt wont work so I need some help with the arc race and making a mission
Title: Re: my lua mod need help
Post by: FaZe on January 04, 2017, 02:16:03 PM
Walk me through what you're doing after saving the file?
Title: Re: my lua mod need help
Post by: DaBOSS54320 on January 06, 2017, 10:23:51 PM
Capitalize the P in gPlayer on line 15 and you also spawned Johnny wrong. Type it like this: PedCreateXYZ(23,l_1_0+1,l_1_1,l_1_2). Each argument needs to be separated by a comma, and you also put 1 instead of l.