[saco] Implement/match AddVehicleHook()

This commit is contained in:
RD42 2024-10-15 15:01:09 +08:00
parent 21a045c0b1
commit 94f0f68c61

View File

@ -34,6 +34,8 @@ PED_TYPE pedCrimeReportTemp; // pay attention! used in 0x100A1790 ; void __thisc
int iRadarColor1=0;
DWORD dwSavedCheatFn=0;
BOOL bAllowVehicleCreation=FALSE;
float fFarClip=1400.0f;
DWORD dwParam1;
@ -457,6 +459,23 @@ NUDE TaskExitVehicle()
//-----------------------------------------------------------
NUDE AddVehicleHook()
{
_asm pushad
if(!bAllowVehicleCreation) {
_asm popad
_asm xor eax, eax
_asm ret
}
_asm popad
_asm mov eax, 0x421446
_asm jmp eax
}
//-----------------------------------------------------------
// disable cheat code processing
NUDE CheatProcessorHook()
{