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


Author Topic: Lua codes not working?  (Read 8141 times)

0 Members and 1 Guest are viewing this topic.

Offline Xavier the vampire

  • Jr. Member
  • **
  • Posts: 21
  • Gender: Male
  • Vampire is dark gift you really become vampire.
    • View Profile
    • www.youtube.com
Re: Lua codes not working?
« Reply #15 on: November 01, 2013, 04:17:46 AM »
Thanks man I think it can work for me
Code: [Select]
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
 
  PedSetActionTree(gPlayer, "/Global/G_Striker_A", "Act/Anim/G_Striker_A.act")
  AreaTransitionXYZ(0, l_1_0, l_1_1, l_1_2)
  LoadAnimationGroup("Russell")
  LoadAnimationGroup("Boxing")
  LoadAnimationGroup("G_Johnny")
  PlayerSetControl(1)
  CameraFollowPed(gPlayer)
  ClockSet(9, 30)
  ClockSetTickRate(0.0060000000521541)
  LaunchScript("SObjTest.lua")
end
 
MissionCleanup = function()
  ClearTextQueue()
  EnablePOI()
  gMissionRunning = false
  shared.gMissionEventFunction = nil
  WeatherRelease()
  PlayerSetControl(1)
  PlayerSetPunishmentPoints(0)
  end

main = function()
  repeat
  MissionSetup()
  gMissionRunning = true
  while gMissionRunning do
    UpdateTextQueue()
    Wait(0)
    Action()
   end
end

Action = function()
 F_MissionSetup()
 gMissionRunning = true
  while gMissionRunning do
if IsButtonPressed(0, 0) then
PedSetActionNode(gPlayer, "/Global/Actions/Grapples/Front/Grapples/GrappleMoves/PowerBomb", "Globals/BOSS_Russell.act")
elseif IsButtonPressed(1, 0) then
PedSetActionNode(gPlayer, "/Global/G_Johnny/Cinematic/ThroatGrab", "Act/Anim/G_Johnny.act")
elseif IsButtonPressed(14, 0) then
PedSetActionNode(gPlayer, "/Global/Offense/Medium/HeavyAttacks/StraightPunch", "Act/Anim/BOSS_Darby.act")
  end
  end
Good luck  ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
« Last Edit: November 02, 2013, 07:38:16 PM by |XF|-MadmaN[AR] »

FaZe

  • Guest
Re: Lua codes not working?
« Reply #16 on: November 02, 2013, 08:41:07 AM »
There's a HashTag option in the buttons above where the text box is, Click that and then insert your code in between the two ][ it gives you, That way it will show up in a small white box instead of a big mess, If you could do this, that would be great.
(P.S a HAshTag is #)

Thanks.

Offline MadmaN

  • Bully-Board Admin Team
  • Newbie
  • *
  • Posts: 0
  • Gender: Male
  • Biblio-Techa Mods (retired)
    • View Profile
Re: Lua codes not working?
« Reply #17 on: November 02, 2013, 07:42:21 PM »
@ Xavier the vampire

I edited your posts to put your code in the code box which is pretty simple to do.

When you make a post just press the button that has a # on it and then paste your code between the two tags or alternatively you can paste your code into your post...highlight all of the code and then press the # button in the post edit window.

This will make it easier for people to help you and to read your code since consider this....most forums that have a coding help section WILL ignore any help requests from posters that do not post their code in a code box or they may make fun of the poster in general.

Just a friendly piece of advice for you m8.  8)