| Off[Nick]= |
08.05.2021 17:08 |
Вечер в хату господа, нужна помощь перевести это на с++
Lua:
Код:
local
btx
,
bty
,
btz
=
getMarkerPos
(
)
setCharCoordinates
(
playerPed
,
btx
,
bty
,
btz
)
function
getMarkerPos
(
)
local
mem1
=
memory
.
getint32
(
sampGetBase
(
)
+
0x21A10C
,
false
)
local
enabled
=
memory
.
read
(
mem1
+
0x24
,
4
,
true
)
if
enabled
==
1
then
local
mposX
=
memory
.
getfloat
(
mem1
+
0xC
,
false
)
local
mposY
=
memory
.
getfloat
(
mem1
+
0x10
,
false
)
local
mposZ
=
memory
.
getfloat
(
mem1
+
0x14
,
false
)
return
mposX
,
mposY
,
mposZ
end
return
nil
,
nil
,
nil
end
|