ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Перевод (https://forum.antichat.xyz/showthread.php?t=1380038)

ROBERT PUSHER 24.02.2021 17:40

Переведите вот

Цитата:

Сообщение от Спойлер


C++:





Код:

char
GetWeaponSkill
(
unsigned
long
*
cPed
,
int
weaponType
)
{
return
(
(
char
(
__thiscall
*
)
(
unsigned
long
*
,
int
)
)
0x5E3B60
)
(
cPed
,
weaponType
)
;
}




на Lua пожалуйста, интересно, что получится ✊

Receiver 24.02.2021 18:58

Lua:





Код:

local
skill
=
getIntStat
(
statid
)



Statistics identificator list: https://gtamods.com/wiki/List_of_statistics_(SA)

Weapon skills index: 69-79


Время: 19:08