local ffi = require('ffi')
function main()
while not isPlayerPlaying(PLAYER_HANDLE) do wait(0) end
setCharAlpha(PLAYER_PED, 100)
wait(-1)
end
function setCharAlpha(ped, alpha)
SetRwObjectAlpha = ffi.cast("int(__thiscall *)(int pentity, int alpha)",0x5332C0)
local pplayer = getCharPointer(ped)
if pplayer == nil then return end
SetRwObjectAlpha(pplayer,alpha)
end