Skip to content

Instantly share code, notes, and snippets.

View sabpprook's full-sized avatar
🏠
Working from home

YU-YEN HSU sabpprook

🏠
Working from home
  • Taiwan
  • 01:13 (UTC +08:00)
View GitHub Profile
@SunShineSilver-mdA
SunShineSilver-mdA / CE_Lua_Example_Global_Handle.lua
Created April 23, 2019 03:54
CE Lua Example Global Handle
--[[--->--->--->--->--->--->--->--->--->--->--->--->--->--->-->-->
##############################################################
####### How To Get/Set the Global Handle with CE in Lua ######
##############################################################
--->]]
local Tick=0;function __GetGTA5Process()
if openProcess('GTA5.exe')
then sleep(100);if getOpenedProcessID()==0
then getAutoAttachList().add('GTA5.exe');sleep(100);
if getOpenedProcessID()==0 and Tick>5