Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using enums as values in 'ulx ent' does not work #145

Open
Timmy opened this issue Apr 12, 2019 · 1 comment
Open

Using enums as values in 'ulx ent' does not work #145

Timmy opened this issue Apr 12, 2019 · 1 comment
Assignees

Comments

@Timmy
Copy link
Member

Timmy commented Apr 12, 2019

Steps to reproduce

Run ULX command:

ulx ent npc_citizen citizentype:CT_UNIQUE | model:models/odessa.mdl

Expected behavior

NPC spawns with Odessa model.

Actual behavior

NPC spawns with ERROR model.

Additional info

Named values are not resolved. Replacing CT_UNIQUE with its actual value makes the command work as expected:

ulx ent npc_citizen citizentype:4 | model:models/odessa.mdl

Version

ULib v2.63w
ULX v3.73w

@Nayruden
Copy link
Member

Interesting! Looks like Garry has those defined globally outside of Lua but exposed to Lua, so this is something we could support.

@Nayruden Nayruden self-assigned this Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants