News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: my lua mod need help  (Read 4783 times)

0 Members and 1 Guest are viewing this topic.

Offline Craig Tucker

  • We,ve drawn a blank
  • Jr. Member
  • **
  • Posts: 73
  • Gender: Male
  • I suck at creating scripts
    • View Profile
    • My youtube
my lua mod need help
« 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

FaZe

  • Guest
Re: my lua mod need help
« 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,398
  • Gender: Female
    • View Profile
Re: my lua mod need help
« 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 »