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.