🤥 Liar's Hand
Documentation relating to the spooni_liars_hand.
1. Installation
spooni_liars_hand uses the jo_libs framework bridge for framework, inventory and money integration.
To install spooni_liars_hand:
- Download the resource
- Ensure that all requirements are installed
- Drag and drop the resource into your resources folder
spooni_liars_hand(keep this exact folder name)
- Add these ensures in your server.cfg (after your framework and inventory)bash
ensure oxmysql ensure jo_libs ensure spooni_liars_hand - Now you can configure and translate the script as you like
config/config.lua— gameplay settings, tables, bets, controls, HUD, audio and languageconfig/config_advanced.lua— animation and position calibrations (keep the defaults unless recalibrating)config/config_webhooks.lua— optional Discord webhook settingslocales/— English, Spanish, French and German are included, select yours withConfig.locale
- At the end, restart the server
TIP
The database tables are created automatically — no SQL import needed. Your database user must have permission to create and alter the resource's tables.
INFO
Only male and female multiplayer characters are supported.
If you have any problems, you can always open a ticket in the Spooni Discord.
2. Usage
Liar's Hand is a multiplayer bluffing card game for 2–4 players, inspired by Liar's Bar's classic mode. Players receive five cards and take turns playing cards face down, claiming they match the table's declared rank. Jokers act as wildcards.
Players can challenge the previous play by calling Liar. The cards are revealed, and the loser of the challenge faces Russian roulette. Surviving players continue into the next round until only one player remains.
Approach a table and follow the interaction prompts to create a lobby, invite nearby players and start a match. Games can be played for free or with money bets, depending on your configuration. Nearby spectators see the table and hear the shots.
WARNING
By default, BANG causes an actual in-game death. Set Config.finalDeath = false to use visual elimination instead.
3. For developers
Setting up tables
Choose your placement mode through Config.tableMode:
fixed— permanent tables placed by the server owner.item— tables deployed through an inventory item.both— enable both placement methods.
Inventory tables
Add liars_table to your inventory's item catalog, or change Config.tableItem to your preferred item name. The script registers the usable-item action automatically. Your inventory must support item metadata.
Permanent tables
Enable Config.adminPlacement.enabled, restart the resource and use:
/lhplaceFollow the placement prompts to position and save the table. To remove the nearest empty fixed table, use:
/lhplace deleteDANGER
While Config.adminPlacement.enabled is on, the placement command is available to every player. Disable it again after setup and restart the resource.
Table locations persist across server restarts.
Default controls
| Key | Action |
|---|---|
| Y | Open a nearby table / pick up or lower your cards |
| ← / → | Navigate through your hand |
| Space | Select or deselect a card |
| Enter | Play selected cards |
| X | Call Liar when available on your turn |
| U | Open or close the information panel |
| V | Toggle the overhead table camera |
| Backspace | Open the table menu |
| Q / E | Switch spectator cameras when available |
Controls can be changed through Config.keys.
config.lua
-- Main server settings. Restart the resource after changes.
-- Positions, animation timing and other calibrations belong in config_advanced.lua.
Config = {
enabled = true,
finalDeath = true, -- true: real death on BANG; false: visual elimination only.
hud = true, -- Show the match status panel.
locale = 'en', -- en, es, fr, de; English fallback. Custom: locales/xx.lua with Locales.xx.
interactionDistance = 8.0, -- Maximum distance from an active table, in meters.
-- Nearby spectators see the table props and hear confirmed shots in the same routing bucket.
spectatorSync = {
distance = 30.0, -- Meters; same routing bucket only.
interval = 150, -- Prop presentation snapshots, in milliseconds.
},
-- Tables are saved automatically and restored after a restart.
tableMode = 'both', -- fixed: setup command; item: inventory item; both: either method.
tableItem = 'liars_table', -- Must be an item defined in your inventory's item catalog.
tables = {
maximumOwned = 3, -- Maximum deployed item tables per character.
minimumSpacing = 4.0, -- Minimum separation between tables in the same routing bucket.
maximumTotal = 32, -- Total registered tables across all routing buckets.
streamDistance = 60.0, -- Furniture visibility radius, in meters; also covers spectatorSync.distance.
},
moneyType = 0, -- Framework currency used for bets (VORP: 0 = cash).
-- Invitations use meters and seconds.
lobby = {
inviteDistance = 6.0,
inviteDuration = 30,
},
-- Whole currency units per player; a free game is always available.
bets = {
enabled = true,
minimum = 5,
maximum = 100,
presets = {
5,
10,
25,
50,
100,
},
},
-- Enable only while setting up fixed tables: this switch does not check player permissions.
adminPlacement = {
enabled = false, -- WARNING: allows EVERY player to place/delete fixed tables. Disable in production.
command = 'lhplace',
},
-- Keyboard bindings also set the prompt labels. Keep actions used together on different keys.
keys = {
info = 'u',
previous = 'left',
next = 'right',
select = 'space',
play = 'enter',
look = 'y',
liar = 'x',
camera = 'v',
tableOpen = 'y', -- Open a nearby table, lobby menu or invitation.
tablePickup = 'g',
tableMenu = 'backspace', -- Open the table menu during a match.
spectatorPrevious = 'q',
spectatorNext = 'e',
},
-- Native controller action hashes; these do not change keyboard bindings.
gamepadControls = {
previous = 0xA65EBAB4, -- D-pad left.
next = 0xDEB34313, -- D-pad right.
select = 0xD9D0E1C0, -- X.
play = 0xC7B5340A, -- A.
liar = 0x8CC9CD42, -- RT.
},
-- HUD dimensions/offsets use vh/vw; durations use milliseconds.
hudSettings = {
bannerDuration = 2600,
winnerDuration = 9000,
transitionDuration = 180,
panelWidth = 30.0,
panelLeft = 2.5,
panelBottom = 5.0,
panelScale = 1.0,
promptPosition = 'bottom-right', -- top/center/bottom + left/right, e.g. center-left.
},
-- Volumes range from 0.0 (muted) to 1.0. rouletteShot is the relayed sound for other listeners.
audioVolumes = {
deal = 0.30,
shuffle = 0.30,
rouletteClick = 0.45,
rouletteShot = 0.65,
},
match = {
betweenRounds = 900, -- Pause before the next deal, in milliseconds.
winnerDisplayDuration = 4500, -- Time before closing a finished match, in milliseconds.
},
-- Table placement: distances use meters, movement m/s and rotation degrees/s.
placement = {
interactionDistance = 2.6, -- Opening or packing up a nearby table.
maximumDistance = 8.0, -- Maximum placement distance from the player.
spawnDistance = 2.5, -- Initial preview distance in front of the player.
moveSpeed = 0.8,
fineMultiplier = 0.15,
rotateSpeed = 35.0,
heightSpeed = 0.3,
controls = {
forward = 'w', backward = 's', left = 'a', right = 'd',
rotateLeft = 'q', rotateRight = 'r', raise = 'up', lower = 'down',
fine = 'shift', confirm = 'enter', cancel = 'backspace',
},
},
}config_webhooks.lua
-- Server-only configuration. Never add this file to shared_scripts or files.
ConfigWebhooks = {
enabled = false, -- Enable only after setting a webhook URL.
defaultUrl = '', -- Fallback Discord webhook for categories without their own URL.
username = "Liar's Hand",
includeIdentifiers = false, -- Include character identifiers in server audit messages.
-- An empty category URL uses defaultUrl. Disable individual categories below.
categories = {
tables = {
enabled = true,
url = '',
},
lobby = {
enabled = true,
url = '',
},
matches = {
enabled = true,
url = '',
},
economy = {
enabled = true,
url = '',
},
security = {
enabled = true,
url = '',
},
death = {
enabled = true,
url = '',
},
},
}