Skip to content

Commit 4d4307b

Browse files
committed
feat(vzn-liars): add docs for this script
1 parent 70f5ae4 commit 4d4307b

4 files changed

Lines changed: 171 additions & 0 deletions

File tree

pages/_meta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export default {
77
"vzn-cleanerjob": "VZN Cleanerjob",
88
"vzn-references": "VZN References",
99
"vzn-death-prison-cell": "VZN Death Prison Cell",
10+
"vzn-liars": "VZN Liars",
1011
};

pages/vzn-liars.mdx

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import { Steps } from "nextra/components";
2+
import { Tabs } from "nextra/components";
3+
4+
# VZN-LIARS
5+
6+
Bar game base on steam game "Liar's Bar"
7+
8+
<iframe
9+
className="aspect-video w-full"
10+
src={"https://www.youtube.com/embed/lHhl9R4Sc6Y"}
11+
title="VZN Liars preview"
12+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
13+
></iframe>
14+
15+
[PURCHASE](https://vzn-scripts.tebex.io/package/6633623)
16+
17+
## Requirements
18+
19+
- Onesync (infinity/legacy)
20+
- ox_lib
21+
- minimum game build: 2699
22+
23+
## Installation
24+
25+
<Steps>
26+
### Download the newest version from [Keymaster](https://keymaster.fivem.net/asset-grants)
27+
28+
### Put vzn-liars in your server resources folder
29+
30+
### Add `ensure vzn-liars` to your server.cfg
31+
32+
</Steps>
33+
34+
## Compatibility
35+
36+
- Standalone - Works on every server

pages/vzn-liars/_meta.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
config: "Configuration",
3+
};

pages/vzn-liars/config.mdx

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Config
2+
3+
### LOCALES
4+
5+
- This script is using ox_lib locales. You can edit values in `locales/*.json`. If you add your language, you can send it us in our discord and we will add it to our script
6+
7+
### INTERACTION
8+
9+
- This script has implemented 2 interactions system.
10+
- Prompt - Default GTA system, the notification in left corner to press `E`
11+
- ox_target - Third-eye targeting system
12+
- You can switch beetwen them in `config/config.lua` in field called `Config.Interaction`
13+
14+
```lua filename="config/config.lua"
15+
--- defining in which way user can interact with game table
16+
---@type 'ox_target' | 'prompt'
17+
Config.Interaction = 'ox_target'
18+
```
19+
20+
### REAL DEAD
21+
22+
- When player loose game in russion roulette, his ped playing dead animation. If you want to kill player ped after game end. Set the `Config.RealDead` to `true` in `config/config.lua`. The implementation of kill player function is in `client/editable/editable_functions.lua` in function called `OnExitGame()`
23+
24+
```lua filename="config/config.lua"
25+
--- if true after end game dead players peds will be killed
26+
---@type boolean
27+
Config.RealDead = true
28+
```
29+
30+
### WEAPON PROP
31+
32+
- You can change the revolver prop if you wanna to use custom prop or default model is blacklisted on your server. You can do it in `config/config.lua` in field called `Config.WeaponProp`.
33+
34+
```lua filename="config/config.lua"
35+
--- model of prop that will be spawned in shot animation
36+
---@type number | string
37+
Config.WeaponProp = "w_pi_wep1_gun"
38+
```
39+
40+
### LEAVE GAME COMMAND
41+
42+
- If player wants to leave game during them, he needs to type command defined in field `Config.LeaveGameCommand` in `config/config.lua`.
43+
44+
```lua filename="config/config.lua"
45+
--- user typing this command can leave from table
46+
---@type string
47+
Config.LeaveGameCommand = 'leaveliars'
48+
```
49+
50+
### MAX TIME FOR PLAYER
51+
52+
- Player has limited time to play action during game. If player doesn't do anything, he will call previous player as liar. You can set how much miliseconds player will have to decide what he wants to play in `config/config.lua` in field called `Config.MaxTimeForPlayer`
53+
54+
```lua filename="config/config.lua"
55+
---@type number
56+
Config.MaxTimeForPlayer = 30 * 1000 --// 30 seconds (30 000 msec)
57+
```
58+
59+
### CONTROLS
60+
61+
- To edit controls which are used to control game, go to `config/config.lua` to field called `Config.Controls` and edit the control index ([Controls](https://docs.fivem.net/docs/game-references/controls/)) and the label of the key. Dont touch the keys of this table.
62+
63+
```lua filename="config/config.lua"
64+
--- controls will be used to play game
65+
---@type table<string, {control: number, label: string}>
66+
Config.Controls = {
67+
READY = {
68+
control = 22,
69+
label = "SPACE"
70+
},
71+
CALL_LIAR = {
72+
control = 182,
73+
label = "L"
74+
},
75+
CARD_LEFT = {
76+
control = 34,
77+
label = "A"
78+
},
79+
CARD_RIGHT = {
80+
control = 35,
81+
label = "D"
82+
},
83+
CARD_SELECT = {
84+
control = 22,
85+
label = "SPACE"
86+
},
87+
CARD_PUT = {
88+
control = 75,
89+
label = "F"
90+
}
91+
}
92+
```
93+
94+
### TABLES POSITION
95+
96+
- In `config/config.lua` in field called `Config.Tables` you can define, where tables to play will be placed. Additionally you can change the distance from which tables will be loaded.
97+
98+
```lua filename="config/config.lua"
99+
---@class Table
100+
---@field position vector4
101+
---@field loadDistance number
102+
103+
---@type Table[]
104+
Config.Tables = {
105+
{
106+
position = vec4(-560.3813, 300.1872, 83.1044, 355.6702),
107+
loadDistance = 40.0
108+
},
109+
{
110+
position = vec4(-555.1752, 302.8555, 83.2291, 25.5667),
111+
loadDistance = 40.0
112+
},
113+
{
114+
position = vec4(-561.3179, 286.7403, 85.3764, 188.7191),
115+
loadDistance = 40.0
116+
},
117+
}
118+
119+
```
120+
121+
### INFOS
122+
123+
- During the game, on the bottom of the screen player can see reminders that changes every few seconds. In `config/config.lua` in field called `Config.Infos` you can set messages that will be shown here.
124+
125+
```lua filename="config/config.lua"
126+
---@type string[]
127+
Config.Infos = {
128+
"You can leave the game by typing /" .. Config.LeaveGameCommand .. " on chat.",
129+
"Remember, the Joker is your wildcard. It can be anything you need it to be.",
130+
}
131+
```

0 commit comments

Comments
 (0)