3 New Notifications

New Badge Earned
Get 1K upvotes on your post
Life choices of my cat
Earned 210

Drag Images here or Browse from your computer.

Trending Posts
Sorted by Newest First
M
MIHDES 12.02.20 03:48 pm

Lua scripts, animations, and everything associated with lua (Mafia 2)

Hello! Today I decided to create a theme for people who rummage a little bit in Lua. Here you and I will be posting the scripts (I like animation)
The first animation will allow you to become homeless for free and without SMS.



As you understand, this is an animation of the homeless. It is in the game files (more precisely in the sds anims_city_leto)
The script itself:
ply=game.game:GetActivePlayer()
DelayBuffer:Insert(function(l_1_0)
CommandBuffer:Insert(l_6_0,{
function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_in, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_a, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_b, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_c, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_out, false)end,
function(l_20_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end})
end,{l_1_0},500,1,false)

You for a few seconds will become homeless.
With the help of some changes in the script, you can lengthen the animation and it will be longer.
6 Comments
Sort by:
E
Evgeniy_Igroman 12.02.20

Now only ZAHAR999 about this)
http://users.playground.ru/1095731/

E
Evgeniy_Igroman 12.02.20

I dug in the game files. - this script is not in the original game) this is a script from a mod)

M
MIHDES 12.02.20

Evgeniya
And actually, I originally wrote about the animation that I found (dug), but not about the script, the script for the injector, and in it there are names of the animations of the homeless.

M
MIHDES 12.02.20

Evgeniya
function(l_2_0)return ply:AnimPlay(sc_homeles_4_in, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_a, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_b, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_c, false)end,
function(l_2_0)return ply:AnimPlay(sc_homeles_4_out, false)end,
In these lines the animation of the bum. sc_homeles_4_...

M
MIHDES 12.02.20

Evgeniya wrote:
this is a script from a mod)
The script is not from fashion, the script was not in the game files, the animations were in the game files

M
MIHDES 12.02.20

Evgeniya wrote:
Now only ZAHAR999 about this)
Bad(