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

Trouble using 2 time same food with 2 prop #1586

Open
RedAlex opened this issue Jan 2, 2024 · 0 comments
Open

Trouble using 2 time same food with 2 prop #1586

RedAlex opened this issue Jan 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RedAlex
Copy link
Contributor

RedAlex commented Jan 2, 2024

Describe the bug
Use a food with two prop work first time, but not the second

Framework
ESX 1.7.5

Resource version
ox_inventory 2.38.1
ox_lib 3.14.0
oxmysql 2.7.7
ox_target 1.13.1

To Reproduce
Discord_SzAiFxpeIn

Expected behavior
First time use data of "item"
{"status":{"hunger":800000},"usetime":7500,"anim":{"dict":"bzzz@restaurant@eat","clip":"bzzz_restaurant_eat"},"prop":{"bone":60309,"pos":{"x":0.07999999821186,"y":-0.03999999910593,"z":0.07000000029802},"model":"bzzz_restaurant_food_i","rot":{"x":-30.0,"y":10.0,"z":0.0}},"propTwo":{"bone":28422,"pos":{"x":0.07000000029802,"y":0.05000000074505,"z":-0.02999999932944},"model":"bzzz_restaurant_fork_h","rot":{"x":-100.0,"y":24.0,"z":-86.0}}}

Seconde time use it's strange but "item" have change.
{"status":{"hunger":800000},"usetime":7500,"anim":{"dict":"bzzz@restaurant@eat","clip":"bzzz_restaurant_eat"},"prop":HERE>>>[{"bone":60309,"pos":{"x":0.07999999821186,"y":-0.03999999910593,"z":0.07000000029802},"model":"bzzz_restaurant_food_i","rot":{"x":-30.0,"y":10.0,"z":0.0}},{"bone":28422,"pos":{"x":0.07000000029802,"y":0.05000000074505,"z":-0.02999999932944},"model":"bzzz_restaurant_fork_h","rot":{"x":-100.0,"y":24.0,"z":-86.0}}]<<<AND HERE,"propTwo":{"bone":28422,"pos":{"x":0.07000000029802,"y":0.05000000074505,"z":-0.02999999932944},"model":"bzzz_restaurant_fork_h","rot":{"x":-100.0,"y":24.0,"z":-86.0}}}

Screenshots
Discord_54BgNpLmir
Discord_OIFikkSyBJ

Additional context
item not start with empty table?

@RedAlex RedAlex added the bug Something isn't working label Jan 2, 2024
thelindat added a commit that referenced this issue Jan 23, 2024
Resolves #1594 #1586.
Should be noted propTwo is deprecated (just use an array for prop).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant