# Lua runtime version problem

**URL:** <https://forum.heroiclabs.com/t/lua-runtime-version-problem/992>\
**Category:** Local Setup\
**Created:** [September 21, 2020, 2:38pm UTC](https://forum.heroiclabs.com/t/lua-runtime-version-problem/992 "2020-09-21T14:38:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@john](https://forum.heroiclabs.com/u/john)\
**Post date:** [September 21, 2020, 2:38pm UTC](https://forum.heroiclabs.com/t/lua-runtime-version-problem/992/1 "2020-09-21T14:38:40Z")

</div>

I just notice that nakama only support Lua 5.1 runtime and current newest version is 5.4.  
I am not familiar with Lua and nakama, but I wonder can I use Lua 5.4 instead of 5.1 as long as I stick with the available functions in nakama doc?is there have any different between those I have to careful about?  
Or should I just switch to 5.1(like 5.1.5) for the best result?  
Thanks

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [September 21, 2020, 11:23pm UTC](https://forum.heroiclabs.com/t/lua-runtime-version-problem/992/2 "2020-09-21T23:23:43Z")

</div>

Hey @john,

I recommend just sticking on Lua 5.1 while you implement - if you look at the Lua release pages, quite a few new language features have been implemented since then: [https://www.lua.org/versions.html](https://www.lua.org/versions.html)

It will wind up being more of a hassle for you to be on a different version since you’ll waste time debugging the language rather than your game.

---

<div class="post-metadata">

**Author:** ![john](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@john](https://forum.heroiclabs.com/u/john)\
**Post date:** [September 22, 2020, 3:17am UTC](https://forum.heroiclabs.com/t/lua-runtime-version-problem/992/3 "2020-09-22T03:17:26Z")

</div>

Thank you for your answering.  
And I wonder if I can use 5.1.5?Since that still count as the last release of 5.1 version

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [September 22, 2020, 11:57am UTC](https://forum.heroiclabs.com/t/lua-runtime-version-problem/992/4 "2020-09-22T11:57:53Z")

</div>

Yes 5.1.5 should be fine. According the Lua versioning scheme, the third digit is reserved for bug fixes only, so the API should remain the same across all of 5.1: [https://www.lua.org/versions.html](https://www.lua.org/versions.html)
