Here is a patch that was missing in sobeit 0.3.7. I use this patch with NOP PutPlayerInVehicle and NOP RemovePlayerFromVehicle (maybe NOP SetPlayerPos too) to unlock all vehicles. You can drive admin-only cars with it! Works great on CrazyBob's Cops And Robbers.
Code:
int sampPatchNOPSetEngineState(int iEnabled)
{
static struct patch_set sampPatchNOPSetEngineState_patch =
{
"NOP SetEngineState",
0,
0,
{
{ 3, (void *) ((uint8_t *) g_dwSAMP_Addr + 0xB2510), NULL, (uint8_t *)"\xC2\x04\x00", NULL }
}
};
if(iEnabled && !sampPatchNOPSetEngineState_patch.installed)
return patcher_install(&sampPatchNOPSetEngineState_patch);
else if (!iEnabled && sampPatchNOPSetEngineState_patch.installed)
return patcher_remove(&sampPatchNOPSetEngineState_patch);
return NULL;
}