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

Comments

Projects
None yet
2 participants
@Timmy
Copy link
Contributor

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

This comment has been minimized.

Copy link
Member

Nayruden commented Apr 18, 2019

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
You can’t perform that action at this time.