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


Author Topic: Lua Help!  (Read 2852 times)

0 Members and 1 Guest are viewing this topic.

Offline AfterLife

  • The Reaper
  • Sr. Member
  • ***
  • Posts: 830
  • Gender: Male
  • I'm from the AfterLife...
    • View Profile
Lua Help!
« on: February 13, 2015, 08:31:41 PM »
My eyes have been opened now ,I'll share everything I have with the community.

Code 1:

PlayerSwapModel

Code 2:

function Block()
   if IsButtonPressed(10,0) and IsButtonBeingPressed(12,0) and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
      PedSetActionTree(gPlayer,"/Global/Player","Act/Player.act")
   elseif IsButtonBeingReleased (10,0)  and not PedIsValid(PedGetGrappleTargetPed(gPlayer)) then
      PedSetActionTree(gPlayer,"/Global/"..style,"Act/Anim/"..style..".act")
end
   end

Remember to add a new function at the lua script ex

Block()

That's all iI'll share today , hope I helped everyone.



Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Lua Help!
« Reply #1 on: February 13, 2015, 11:25:55 PM »
I think giving the arguments to PlayerSwapModel would help more...

PlayerSwapModel("ModelName")
PedSwapModel(ped,"ModelName")

Model names can be found in default.ide.

Offline AfterLife

  • The Reaper
  • Sr. Member
  • ***
  • Posts: 830
  • Gender: Male
  • I'm from the AfterLife...
    • View Profile
Re: Lua Help!
« Reply #2 on: February 14, 2015, 05:36:46 AM »
I think giving the arguments to PlayerSwapModel would help more...

PlayerSwapModel("ModelName")
PedSwapModel(ped,"ModelName")

Model names can be found in default.ide.
Thanks for more info, it'll be added.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: Lua Help!
« Reply #3 on: April 10, 2015, 10:28:38 AM »
Most of this is already shared.

deadpoolXYZ

  • Guest
Re: Lua Help!
« Reply #4 on: April 10, 2015, 12:44:34 PM »
gr8 bump8 m8.

Offline Mick3Mouse

  • Obam3mouse
  • Bullworth Junkie
  • ****
  • Posts: 4,343
  • Gender: Male
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Re: Lua Help!
« Reply #5 on: April 10, 2015, 08:59:18 PM »
LOL, i coulda sweard that it said "Today" at daboss's post.