예제 #1
0
 public static void NoDamage(int entity)
 {
     ENTITY.SET_ENTITY_PROOFS(entity, true, true, true, true, true, true, true, true);
     ENTITY.SET_ENTITY_INVINCIBLE(entity, true);
     ENTITY.SET_ENTITY_CAN_BE_DAMAGED(entity, false);
     VEHICLE.SET_VEHICLE_STRONG(entity, true);
     VEHICLE.SET_VEHICLE_TYRES_CAN_BURST(entity, true);
     VEHICLE.SET_VEHICLE_WHEELS_CAN_BREAK(entity, true);
 }
예제 #2
0
    public static void RagDoll(bool toggle)
    {
        int ped = PLAYER.PLAYER_PED_ID();

        PED.SET_PED_CAN_RAGDOLL(ped, !toggle);
        PED.SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(ped, !toggle);
        ENTITY.SET_ENTITY_INVINCIBLE(ped, toggle);
        PED.SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(ped, 1);
        PLAYER.GIVE_PLAYER_RAGDOLL_CONTROL(ped, !toggle);
        PED.SET_PED_RAGDOLL_ON_COLLISION(ped, !toggle);
    }