fix(NoBikeFall): Execute native in script thread to prevent crashes

This commit is contained in:
Yimura 2020-12-26 22:07:07 +01:00
parent f05af1937b
commit dfa5f36a62
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78

View File

@ -6,6 +6,9 @@ namespace big
{
bool bNoBikeFall = g_settings.options["no_bike_fall"].get<bool>();
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall);
QUEUE_JOB_BEGIN_CLAUSE(=)
{
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall);
}QUEUE_JOB_END_CLAUSE
}
}