Bully-Board

News:

News

Find loads of Bully Mods in in our Modding Section.

Lua Help!

AfterLife · 1175

0 Members and 1 Guest are viewing this topic.

Offline AfterLife

  • The Reaper
  • Sr. Member
  • ***
    • Posts: 830
  • I'm from the AfterLife...
    • View Profile
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,400
    • View Profile
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
  • I'm from the AfterLife...
    • View Profile
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,346
  • Major Mick3Mouse Algie Hunter
    • View Profile
    • My youtube
Reply #3 on: April 10, 2015, 10:28:38 AM
Most of this is already shared.



Offline The Dream Is Dead

  • ...
  • Hero Member
  • ****
    • Posts: 1,192
  • ...
    • View Profile
Reply #4 on: April 10, 2015, 12:44:34 PM
gr8 bump8 m8.



Offline Mick3Mouse

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



 


SimplePortal 2.3.7 © 2008-2020, SimplePortal