Спасибо, помогло. но начал крашить другой скрипт sampDistanceManager, можешь подсказать что там не так
@Rice. ?
[ML] (error) sampDistanceManager (1).lua: D:\FROM 2017\moonloader\sampDistanceManager (1).lua:41: stack index 4, expected number, received nil: not a numeric type or numeric string (bad argument into 'bool(const char*, ImValue<int>*, int, int, sol::optional<char const *>)')
stack traceback:
[C]: in function 'SliderInt'
D:\FROM 2017\moonloader\sampDistanceManager (1).lua:41: in function 'OnDrawFrame'
D:\FROM 2017\moonloader\lib\imgui.lua:1378: in function <D:\FROM 2017\moonloader\lib\imgui.lua:1367>
[ML] (error) sampDistanceManager (1).lua: Script died due to an error. (131595CC)