(fix) Seatbelt values are set to opposite (#2085)

This commit is contained in:
Patryk
2023-09-08 23:58:51 +02:00
committed by GitHub
parent 29fdb5c3bc
commit a3532a6436
2 changed files with 11 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#include "backend/looped_command.hpp"
#include "gta/enums.hpp"
#include "natives.hpp"
namespace big
@ -10,13 +11,13 @@ namespace big
virtual void on_tick() override
{
PED::SET_PED_CONFIG_FLAG(self::ped, 32, false);
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, false);
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, (int)eKnockOffVehicle::KNOCKOFFVEHICLE_NEVER);
}
virtual void on_disable() override
{
PED::SET_PED_CONFIG_FLAG(self::ped, 32, true);
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, true);
PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(self::ped, (int)eKnockOffVehicle::KNOCKOFFVEHICLE_DEFAULT);
}
};