- 117
- 9
Всем привет. Хотел переделать хук showtextdraw из библеотеки под RakBot на RakSamp.
Но не понял, какие аналоги для работы с этой функцией (bitStreamReadByte и bitStreamReadDWord) на RakSamp
Спасибо большое за помощь.
Lua:
local bs = bitStreamInit(data, size)
local data = {}
local textdrawId = bitStreamReadWord(bs)
data.flags = bitStreamReadByte(bs)
data.letterWidth = bitStreamReadFloat(bs)
data.letterHeight = bitStreamReadFloat(bs)
data.letterColor = bitStreamReadDWord(bs)
data.lineWidth = bitStreamReadFloat(bs)
data.lineHeight = bitStreamReadFloat(bs)
data.boxColor = bitStreamReadDWord(bs)
data.shadow = bitStreamReadByte(bs)
data.outline = bitStreamReadByte(bs)
data.backgroundColor = bitStreamReadDWord(bs)
data.style = bitStreamReadByte(bs)
data.selectable = bitStreamReadByte(bs)
local vx = bitStreamReadFloat(bs)
local vy = bitStreamReadFloat(bs)
data.position = {x=vx,y=vy}
data.modelId = bitStreamReadWord(bs)
local vx = bitStreamReadFloat(bs)
local vy = bitStreamReadFloat(bs)
local vz = bitStreamReadFloat(bs)
data.rotation = {x=vx,y=vy,z=vz}
data.zoom = bitStreamReadFloat(bs)
data.color = bitStreamReadDWord(bs)
local l = bitStreamReadWord(bs)
Спасибо большое за помощь.