getTargetPed() {
if (!checkHandles())
Return 0
dwAddress := readDWORD(hGTA, 0xB6F3B8)
if (ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
Return 0
}
if (!dwAddress)
Return 0
dwAddress := readDWORD(hGTA, dwAddress+0x79C)
if (ErrorLevel) {
ErrorLevel := ERROR_READ_MEMORY
Return 0
}
ErrorLevel := ERROR_OK
Return dwAddress
}