Reply To: Need help with LUA injector

Home / Forums / Modders Corner / Mafia Editing / Mod Help / Need help with LUA injector / Reply To: Need help with LUA injector

Bank Notes: 880
August 16, 2012 at 1:07 pm #15121

I have 4 commands, F4 F1 F2 and F10 i think not sure about the last one. 

 

 

EDIT: maybe it crashes because when ive used commands when last animation isnt finished, ive never actually used 5 commands in a row and using them to end. And is there like a list of ready made commands? like vomiting etc.? ive never saw one all of them are videos and i have kinda slow internet so id prefer using commands. I dont know much about how this thing works so maybe im wrong and need to download anyway?

 

Use this:

 

ply=game.game:GetActivePlayer()

if i==nil then i=0 end i=i+1

if i==8 then i=1 end

if i==1 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_in”, false)end,

function(l_2_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_3_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

if i==2 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_2_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

if i=smile3.gif then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_2_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

if i==4 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_2_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

if i==5 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_2_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

if i==6 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_2_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

if i==7 then ply:SetControlStyle(enums.ControlStyle.LOCKED)CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:AnimPlay(“sc_man_smoke_stat_c”, false)end,

function(l_2_0)return ply:AnimPlay(“sc_man_smoke_out”, false)end,

function(l_3_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})end

NOTE:
when the animation ends, again click on f7!