ptr_to_handle(ptr)

returns a handle representing the pointer

local playerPed = PLAYER.PLAYER_PED_ID()
local pedPtr = Memory.handle_to_ptr(playerPed)
local handle = Memory.ptr_to_handle(pedPtr)
log.info("Handle: " .. handle)

Last updated