Bully-Board

Bully Modding Section => Script Modding => Topic started by: AfterLife on February 13, 2015, 08:31:41 PM

Title: Lua Help!
Post by: AfterLife 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.


Title: Re: Lua Help!
Post by: DaBOSS54320 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.
Title: Re: Lua Help!
Post by: AfterLife 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.
Title: Re: Lua Help!
Post by: Mick3Mouse on April 10, 2015, 10:28:38 AM
Most of this is already shared.
Title: Re: Lua Help!
Post by: deadpoolXYZ on April 10, 2015, 12:44:34 PM
gr8 bump8 m8.
Title: Re: Lua Help!
Post by: Mick3Mouse on April 10, 2015, 08:59:18 PM
LOL, i coulda sweard that it said "Today" at daboss's post.