Bully-Board

News:

News

Find loads of Bully Mods in in our Modding Section.

my lua mod need help

Craig Tucker · 1690

0 Members and 1 Guest are viewing this topic.

Offline Craig Tucker

  • We,ve drawn a blank
  • Jr. Member
  • **
    • Posts: 72
  • I am great at modding ;)
    • View Profile
    • watch the bull here I was hacked so the name is a little odd
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



Offline Quinn

  • Hero Member
  • ****
    • Posts: 2,830
  • Happiness
    • View Profile
Reply #1 on: January 04, 2017, 02:16:03 PM
Walk me through what you're doing after saving the file?



Offline DaBOSS54320

  • Hero Member
  • ****
    • Posts: 3,403
    • View Profile
Reply #2 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.
« Last Edit: January 10, 2017, 11:48:57 PM by DaBOSS54320 »