Real Wallet / Configuration

Controls & camera

Config.Keys

Lua
Config.Keys = {
    show = { name = 'ryan_wallet_show', key = 'E' },
    back = { name = 'ryan_wallet_back', key = 'X' },
    count = { name = 'ryan_wallet_count', key = 'G' },
    insert = { name = 'ryan_wallet_insert', key = 'F' },
    hand = { name = 'ryan_wallet_hand', key = 'H' },
    cashin = { name = 'ryan_wallet_cashin', key = 'C' },
    cashout = { name = 'ryan_wallet_cashout', key = 'V' },
}

These are FiveM key bindings. key is the default for players who have not set their own; each player can change them in Settings → Key Bindings → FiveM. A player who already changed a key keeps their own choice when you change the default here. The keys only do something while a wallet is out.

Key Name Does
E show Show the card in your hand
X back Put the card back / take a shown card back / put the wallet away
G count Count the cash
F insert Put a card from your pocket in / pocket the card in your hand
H hand Hand the card in your hand to the closest player
C cashin Put your cash in
V cashout Take all the cash out

The mouse does the same: left-click on the props, right-click = back.

Config.Blocked

Lua
Config.Blocked = { 0, 1, 2, 14, 15, 16, 17, 21, 22, 23, 24, 25, 26, 30, 31, 32, 33, 34, 35, 36, 37, 44, 45, 47, 140, 141, 142, 199, 200, 257, 263 }

The game controls turned off while a wallet is out: moving, looking, sprinting, jumping, entering vehicles, attacking, aiming, the weapon wheel, cover, reload, the pause menu and more. The mouse wheel (14, 15) flicks through the cards. Add a control id to block more; remove one to allow it.

Config.Car

Lua
Config.Car = { enabled = true, openSpeed = 2.0, awaySpeed = 4.0, driverClip = 'car_ds_', seatClip = 'car_ps_',
               blocked = { 59, 60, 63, 64, 68, 69, 70, 71, 73, 74, 75, 79, 80, 81, 82, 85, 86, 91, 92, 99, 100, 114, 330, 331 } }
Setting What it does
enabled false: the wallet never comes out in a vehicle.
openSpeed A driver can take it out under this speed (m/s). 2.0 m/s ≈ 7 km/h.
awaySpeed A driver puts it away once the vehicle rolls faster than this (m/s). 4.0 m/s ≈ 14 km/h.
driverClip, seatClip The seated animations. Leave them as they are.
blocked Extra controls off in a vehicle: drive, steer, exit, horn, lights, drive-by. The brake and handbrake stay.

See In vehicles.

Config.View (the slate's camera)

Lua
Config.View = { at = vec3(-0.015, 0.135, 0.300), look = vec3(-0.022, 0.030, 0.0), fov = 40.0, glideMs = 750, nearClip = 0.03,
                cardTilt = 6.0, cardPan = 3.0, countTilt = 3.0, countPan = 6.0, aimMs = 450 }
Setting What it does
at, look Where the camera sits and what it looks at, in the wallet's space. Measured once the hold has settled, then kept in the body's space.
fov The lens, in degrees. Lower = closer.
glideMs How long the camera takes to glide in and out.
nearClip The near clip plane, so the close props are not cut.
cardTilt, cardPan Turned up / left (degrees) while a card is in your hand.
countTilt, countPan Turned up / left while counting.
aimMs How long each of those turns takes.

Config.Leather.View (the leather's camera)

Lua
View = { head = { at = vec3(0.0238, 0.0868, -0.0874), look = vec3(-0.0107, 0.3204, -0.2879),
                  R = vec3(0.0953, 0.3297, -0.2483), L = vec3(-0.1130, 0.2917, -0.2483) },
         level = false, fov = 40.0, glideMs = 750, nearClip = 0.03,
         cardTilt = 12.0, cardPan = 8.0, countTilt = 3.0, countPan = 6.0, aimMs = 450 },

The same spot and lens as the slate's: just in front of the mouth, looking down at the open wallet. head positions are from the head bone (right, forward, up, in the body's space), set while the wallet is opened. level = true rolls the camera so the wallet's top edge is level on screen; it is not needed from this spot. The other settings are as in Config.View.

Config.AnimBlend

Lua
Config.AnimBlend = 8.0

How fast one wallet animation crossfades into the next: 8 = 1/8 s. Higher = snappier, lower = softer. Never use 1000 (instant): the arms would flick to idle for a frame between animations.

Still stuck? Open a ticket in the Ryan Studios Discord and we'll help you out.