fix(NoBikeFall): Execute native in script thread to prevent crashes
This commit is contained in:
parent
f05af1937b
commit
dfa5f36a62
@ -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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user