0 playing
Download
Police chase under an elevated railway in Mafia II

Wiki

Items in hands

A character can hold one item in each hand: a suitcase, a newspaper, an umbrella, coffee... The numbers are rows of the game's own item table. The server sets them and everyone sees them: player:setItemsInHands(left, right); -1 or nil leaves a hand empty.

player:setItemsInHands(46)          -- suitcase in the left hand
player:setItemsInHands(-1, 49)      -- coffee in the right hand
player:setItemsInHands(47, 61)      -- newspaper and a cigarette
player:setItemsInHands()            -- empty hands
local left, right = player:getItemsInHands()

The item only sits in the hand: how the arm moves comes from the walk. For a suitcase or a bag set a walk style too, or the arm swings it as in a normal walk. Pairs tried in the game:

ItemHandWalk style
46 — SuitcaseleftManBigSuitcase
71 — Bag, lightrightManBag
92 — Umbrella, openrightManUmbrellaOpen
97 — Umbrella, closedrightManUmbrellaClosed
47 — NewspaperleftManNewspaperSubaxillary
73 — Handbag, whiteleftWomanHeelHandbag

Test command: /hands left right [player id], e.g. /hands 46, /hands -1 92; /hands alone empties the hands.

Taking out a weapon puts the items away. Weapons are given with player:giveWeapon, not here.

All items

IDItemModel
29Bottle (weapon)Lahev
30Torchbaterk
31Window wipersterka
32Baseball batPalka
33Billiard cueTAGO
34Shovellopata
35Snow shovellopata_na_snih
37BroomKOSTE
38Gasoline cankanistr
39Moneymoney
40Suit (carried)CS_jacketANIM
41Paper bagCS_taskaANIM
42Penciltuzka
43BoxDE_bedna
44BottleDE_lahev01
45KeysPOklice
46Suitcasekufrik
47Newspapernews_small
48Hot dog7hotdog
49Coffeekafe_salek
50BeerFB_beer_full
51Seagift boxSG_bedna
52Police notepadPOLICE_blok
53Handcuffs (police)pouta
54Basketballball_basket
55TicketPOLICE_listek
56Police pencilPOLICE_tuzka
58Cigarette (Blues)cig_blues
59Cigarette (Reds)cig_reds1
60Cigarette (Whites)cig_whites
61CigaretteFB_cigareta_ingame
62LighterFB_zippo_SCRIPT
63Backpackbatoh
64Handcuffs (prison)pouta
65Burgerhamburgr
66Sandwichsandwich
68Whisky shotFB_shot_glass
69Empty beerFB_beer_empty
70Middle suitcasekufr1
71Bag, lightbrasna_ingame
72Bag, darkbrasna01_ingame
73Handbag, whitekabelka_ingame
74Handbag, pinkkabelka02_ingame
75Handbag, blackkabelka03_ingame
76Big suitcase, whitekufr01_ingame
77Big suitcase, greenkufr04_ingame
79Ketchupketchup_i
80Banknotepenize
81Bundle of moneybalik_penez
82Bar raghadr_bar
83Explosive chargec-4
84Prison clotheshromadka_satu
86ForkFB_vidlicka
87Knife (table)FB_nuz
88Detonatorc-4-roznetka
89Chess piece, white06_dama_bila_[B]
90Chess piece, black06_dama_cerna_[B]
92Umbrella, opendestnik_open
93Dustpansmetak
94Bucketkybl
95Vacuum cleanerlux01
96Glass cutterglass_cutter
97Umbrella, closeddestnik_closed
98Cratebedna_zavrena
99Washing powderwashpowder10[J]_pha
101Fishing rodrybarsky_prut
102Pipedymka
103Newspaper (opens)Newspaper
104Laundry cartcart10[J]_pha
105Clothes racksuit_cart[J]_pha
106Handcuffshand_cuffs
107Bundle of newspapersNewspaper_Pack
108Wheel wrenchklic_na_kola
110Shoe brushkartac_na_boty
111Swift Whiteswift_white
112Beer Masterbeer_master
113Beer, halfFB_beer_full2
114Glass clothHadra
115Bottle (city)lahev_city
116HammerHammer
118Telephone receiversluchatko
119Gas canbenzinka
120FlashlightFlashlight
122MatchSafety_Match_SCRIPT
123LetterLetter_City