@@ -340,6 +340,16 @@ isFloat(arg) {
340
340
return false
341
341
}
342
342
343
+ IntToHex (value, prefix := true ) {
344
+ CurrentFormat := A_FormatInteger
345
+ SetFormat , Integer, hex
346
+ value + = 0
347
+ SetFormat , Integer, %CurrentFormat%
348
+ Int2 := SubStr (value, 3 )
349
+ StringUpper value, Int2
350
+ return (prefix ? " 0x" : "" ) . value
351
+ }
352
+
343
353
evaluateString (string ) {
344
354
static sc := ComObjCreate (" ScriptControl" )
345
355
sc.Language := " JScript"
@@ -1008,7 +1018,7 @@ pressDialogButton(button) {
1008
1018
}
1009
1019
1010
1020
blockDialog () {
1011
- return checkHandles() && NOP (hGTA, dwSAMP + 0x6C014 , 7 )
1021
+ return checkHandles() && __NOP (hGTA, dwSAMP + 0x6C014 , 7 )
1012
1022
}
1013
1023
1014
1024
unblockDialog () {
@@ -1447,7 +1457,7 @@ setWanteds(wanteds) {
1447
1457
}
1448
1458
1449
1459
checkSendCMDNOP () {
1450
- return checkHandles() && NOP (hGTA, dwSAMP + 0x65DF8 , 5 ) && NOP (hGTA, dwSAMP + 0x65E45 , 5 )
1460
+ return checkHandles() && __NOP (hGTA, dwSAMP + 0x65DF8 , 5 ) && __NOP (hGTA, dwSAMP + 0x65E45 , 5 )
1451
1461
}
1452
1462
1453
1463
patchSendSay (toggle := true ) {
0 commit comments