Skip to content

Commit ca2624c

Browse files
authored
Merge pull request #386 from pedrosantos53/patch-1
Add phrase and description in ix.option.Add()
2 parents 1e3b391 + 4a9e39b commit ca2624c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gamemode/core/libs/sh_option.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ function ix.option.Add(key, optionType, default, data)
9393
-- end
9494
ix.option.stored[key] = {
9595
key = key,
96-
phrase = "opt" .. upperName,
97-
description = "optd" .. upperName,
96+
phrase = data.phrase or "opt" .. upperName,
97+
description = data.description or "optd" .. upperName,
9898
type = optionType,
9999
default = default,
100100
min = data.min or 0,

0 commit comments

Comments
 (0)