Skip to content

Commit ece6997

Browse files
committed
Way too many changes to name
1 parent e7a65f6 commit ece6997

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+9608
-1614
lines changed

documentation/docs/definitions/class.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The global `CLASS` table defines per-class settings such as display name, lore,
3535
| `jumpPower` | `number` | `0` | Default jump power. |
3636
| `jumpPowerMultiplier` | `boolean` | `false` | Multiply base jump power instead of replacing it. |
3737
| `bloodcolor` | `number` | `0` | Blood color enumeration constant. |
38-
| `bodyGroups` | `table` | `{}` | List of {id, value} pairs applied on spawn. |
38+
| `bodyGroups` | `table` | `{}` | Bodygroup name → index mapping applied on spawn. |
3939
| `logo` | `string` | `""` | Material path for the class logo. |
4040
| `scoreboardHidden` | `boolean` | `false` | Hide class headers and logos in the scoreboard. |
4141
| `skin` | `number` | `0` | Player model skin index. |
@@ -493,14 +493,14 @@ CLASS.bloodcolor = BLOOD_COLOR_RED
493493

494494
**Description:**
495495

496-
List of tables containing a bodygroup `id` and the desired `value`. Applied when the player spawns.
496+
Mapping of bodygroup names to index values applied when the player spawns.
497497

498498
**Example Usage:**
499499

500500
```lua
501501
CLASS.bodyGroups = {
502-
{id = 1, value = 2}, -- bodygroup index 1 uses option 2
503-
{id = 3, value = 0} -- index 3 uses its default option
502+
hands = 2, -- apply option 2 to the "hands" bodygroup
503+
torso = 0 -- index value 0 keeps the default option
504504
}
505505
```
506506

documentation/docs/definitions/items.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ The global `ITEM` table defines per-item settings such as sounds, inventory dime
2525
| `UsergroupWhitelist` | `table` | `nil` | Allowed user groups for vendor interaction. |
2626
| `VIPWhitelist` | `boolean` | `false` | Restricts usage to VIP players. |
2727
| `ammo` | `string` | `""` | Ammo type provided. |
28-
| `ammoAmount` | `number` | `0` | Amount of ammo contained. |
2928
| `armor` | `number` | `0` | Armor value granted when equipped. |
3029
| `attribBoosts` | `table` | `{}` | Attribute boosts applied when equipped. |
3130
| `base` | `string` | `""` | Base item this item derives from. |
@@ -835,28 +834,8 @@ Ammo type provided.
835834
ITEM.ammo = "pistol"
836835

837836
```
838-
839837
---
840838

841-
#### `ammoAmount`
842-
843-
**Type:**
844-
845-
`number`
846-
847-
**Description:**
848-
849-
Amount of ammo contained.
850-
851-
**Example Usage:**
852-
853-
```lua
854-
855-
ITEM.ammoAmount = 30
856-
857-
```
858-
859-
---
860839

861840
#### `weaponCategory`
862841

@@ -1191,7 +1170,7 @@ ITEM.model = "models/items/357ammo.mdl"
11911170

11921171
ITEM.ammo = "pistol"
11931172

1194-
ITEM.ammoAmount = 30
1173+
ITEM.maxQuantity = 30
11951174

11961175
```
11971176

documentation/docs/definitions/module.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ A `MODULE` table defines a self-contained add-on for the Lilia framework. Each f
4343

4444
**Type:**
4545

46-
`number`
46+
`string`
4747

4848
**Description:**
4949

@@ -61,7 +61,7 @@ MODULE.name = "My Module"
6161

6262
**Type:**
6363

64-
`number`
64+
`string`
6565

6666
**Description:**
6767

@@ -79,7 +79,7 @@ MODULE.author = "Samael"
7979

8080
**Type:**
8181

82-
`number`
82+
`string`
8383

8484
**Description:**
8585

documentation/docs/definitions/panels.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Panels provide the building blocks for Lilia's user interface. Most derive from
5454
| `VendorItem` | `DPanel` | Single item entry in the vendor menu. |
5555
| `VendorEditor` | `DFrame` | Admin window for configuring vendors. |
5656
| `VendorFactionEditor` | `DFrame` | Editor for vendor faction and class access. |
57+
| `VendorBodygroupEditor` | `DFrame` | Editor for adjusting a vendor's bodygroups. |
5758
| `liaHugeButton` | `DButton` | Large button with prominent styling. |
5859
| `liaBigButton` | `DButton` | Button using a big font size. |
5960
| `liaMediumButton` | `DButton` | Standard medium button. |
@@ -553,6 +554,18 @@ Secondary editor for selecting which factions and player classes can trade with
553554

554555
---
555556

557+
### `VendorBodygroupEditor`
558+
559+
**Base Panel:**
560+
561+
`DFrame`
562+
563+
**Description:**
564+
565+
Window for adjusting a vendor's bodygroups and skin.
566+
567+
---
568+
556569
### `liaHugeButton`
557570

558571
**Base Panel:**

documentation/docs/hooks/gamemode_hooks.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3328,6 +3328,38 @@ end)
33283328

33293329
---
33303330

3331+
### ShouldLiliaAdminCommandsLoad
3332+
3333+
**Purpose**
3334+
3335+
Controls whether the built-in admin commands should be registered. This allows
3336+
external admin systems to take over while still letting the rest of Lilia load.
3337+
3338+
**Parameters**
3339+
3340+
- None
3341+
3342+
**Realm**
3343+
3344+
`Shared`
3345+
3346+
**Returns**
3347+
3348+
- `boolean?`: Return `false` to prevent Lilia's admin commands from loading.
3349+
3350+
**Example Usage**
3351+
3352+
```lua
3353+
-- Use commands from another admin mod instead
3354+
hook.Add("ShouldLiliaAdminCommandsLoad", "liaSam", function()
3355+
return false
3356+
end)
3357+
```
3358+
3359+
This hook automatically returns `false` when SAM is detected so that SAM's command set can take over.
3360+
3361+
---
3362+
33313363
### RunAdminSystemCommand
33323364

33333365
**Purpose**

documentation/docs/libraries/lia.admin.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The base user groups `user`, `admin`, and `superadmin` are created automatically
1616

1717
**Purpose**
1818

19-
Checks for third-party admin mods and returns `true` when the built-in system should be ignored.
19+
Checks for third-party admin mods and returns booleans indicating whether the built-in system and its commands should be ignored.
2020

2121
**Parameters**
2222

@@ -28,7 +28,7 @@ Checks for third-party admin mods and returns `true` when the built-in system sh
2828

2929
**Returns**
3030

31-
* `boolean`: Whether an external admin mod is loaded.
31+
* `boolean, boolean`: `true` when the admin system should be disabled and when admin commands should be disabled respectively.
3232

3333
---
3434

@@ -285,3 +285,29 @@ Determines whether a given ban has expired.
285285
* `boolean`: `true` if the ban is no longer active.
286286

287287
---
288+
289+
### lia.admin.execCommand
290+
291+
**Purpose**
292+
293+
Executes a basic admin action by sending the appropriate chat command.
294+
295+
**Parameters**
296+
297+
* `cmd` (*string*): Command identifier, e.g. `"kick"` or `"ban"`.
298+
299+
* `victim` (*Player | string*): Target player or SteamID.
300+
301+
* `dur` (*number | nil*): Duration in minutes for applicable commands. Optional.
302+
303+
* `reason` (*string | nil*): Reason text. Optional.
304+
305+
**Realm**
306+
307+
`Shared`
308+
309+
**Returns**
310+
311+
* *boolean | nil*: `true` if a matching command executed, otherwise `nil`.
312+
313+
---

documentation/docs/libraries/lia.character.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,21 @@ local age = lia.char.getCharData(1, "age")
141141

142142
**Purpose**
143143

144-
Returns the raw database row for a character or a specific column value.
144+
Returns character data from `lia_chardata` as a table or a single value.
145145

146146
**Parameters**
147147

148148
* `charID` (*number | string*): Character ID.
149149

150-
* `key` (*string*): Specific column name to return (optional).
150+
* `key` (*string*): Specific data key to return (optional).
151151

152152
**Realm**
153153

154154
`Shared`
155155

156156
**Returns**
157157

158-
* *table | any*: Full row table or column value.
158+
* *table | any | false*: Full data table or single value. Returns `false` if the key does not exist.
159159

160160
**Example Usage**
161161

documentation/docs/libraries/lia.config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Sets a config value directly without running callbacks or networking the update.
106106

107107
**Realm**
108108

109-
`Shared`
109+
`Server`
110110

111111
**Returns**
112112

0 commit comments

Comments
 (0)