Skip to content

Commit

Permalink
Merge pull request #386 from pedrosantos53/patch-1
Browse files Browse the repository at this point in the history
Add phrase and description in ix.option.Add()
  • Loading branch information
alexgrist authored Dec 17, 2024
2 parents 1e3b391 + 4a9e39b commit ca2624c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gamemode/core/libs/sh_option.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ function ix.option.Add(key, optionType, default, data)
-- end
ix.option.stored[key] = {
key = key,
phrase = "opt" .. upperName,
description = "optd" .. upperName,
phrase = data.phrase or "opt" .. upperName,
description = data.description or "optd" .. upperName,
type = optionType,
default = default,
min = data.min or 0,
Expand Down

0 comments on commit ca2624c

Please sign in to comment.