Blumlaut / RottenV

A Community-driven Zombie Gamemode for FiveM
MIT License
36 stars 16 forks source link

How to change playermodel without it starving to death? (basically how to change playermodel?) #16

Open raix28 opened 3 years ago

raix28 commented 3 years ago

Is your feature request related to a problem? Please describe. If i change my playermodel with a mod menu, he/she dies(mp playermodel) Describe the solution you'd like I would like to change my playermodel! Describe alternatives you've considered N/A

Additional context N/A

Blumlaut commented 3 years ago

This is currently due to how your player stats are synced, generally the Decor system is outdated and should be replaced anyway, as a workaround you can get the hunger/thirst decors on your script before changing the model and then applying them again after having changed it

raix28 commented 3 years ago

This is currently due to how your player stats are synced, generally the Decor system is outdated and should be replaced anyway, as a workaround you can get the hunger/thirst decors on your script before changing the model and then applying them again after having changed it

And how do i do that( those decors and stuff) ?

raix28 commented 3 years ago

This is currently due to how your player stats are synced, generally the Decor system is outdated and should be replaced anyway, as a workaround you can get the hunger/thirst decors on your script before changing the model and then applying them again after having changed it

And how do i do that man? :(

Blumlaut commented 3 years ago

Look at the code for examples: https://github.com/Blumlaut/RottenV/blob/ae658a5738f85583f3ea8e842a3e0ef40155d4ef/client/inventory/food.lua#L30

https://github.com/Blumlaut/RottenV/blob/ae658a5738f85583f3ea8e842a3e0ef40155d4ef/client/inventory/food.lua#L48

raix28 commented 3 years ago

Look at the code for examples: https://github.com/Blumlaut/RottenV/blob/ae658a5738f85583f3ea8e842a3e0ef40155d4ef/client/inventory/food.lua#L30

https://github.com/Blumlaut/RottenV/blob/ae658a5738f85583f3ea8e842a3e0ef40155d4ef/client/inventory/food.lua#L48

and if i die does the playermodel change back ? (if im gonna do all that stuff)