hotfix script RCE (#892)

This commit is contained in:
Aure7138 2023-01-21 07:33:41 +08:00 committed by GitHub
parent fd0b4ebd55
commit f360d7f436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -189,7 +189,10 @@ namespace big
NotificationMoneyRemoved = -1197151915, // TICK_TC_REMO NotificationMoneyRemoved = -1197151915, // TICK_TC_REMO
NotificationMoneyStolen = -28878294, // TICK_TC_STOL NotificationMoneyStolen = -28878294, // TICK_TC_STOL
DestroyPersonalVehicle = -513394492 // CnC_PV_THEFT DestroyPersonalVehicle = -513394492, // CnC_PV_THEFT
BadThing1 = 1279059857,
BadThing2 = -343495611
}; };
enum class eCollectibleType enum class eCollectibleType

View File

@ -330,6 +330,10 @@ namespace big
case eRemoteEvent::DestroyPersonalVehicle: case eRemoteEvent::DestroyPersonalVehicle:
g.reactions.destroy_personal_vehicle.process(plyr); g.reactions.destroy_personal_vehicle.process(plyr);
return true; return true;
case eRemoteEvent::BadThing1:
case eRemoteEvent::BadThing2:
return true;
break;
} }
// detect pasted menus setting args[1] to something other than PLAYER_ID() // detect pasted menus setting args[1] to something other than PLAYER_ID()