Advertisement
OPVL

GTA: Explode on Impact

Apr 16th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. //Don't crash
  2. void explode_vehicle(int vehicle, bool kaboom)
  3. {
  4.     Ped playerPed = PLAYER_PED_ID();
  5.     if (vehicle != NULL)
  6.     {
  7.         if (!kaboom)
  8.         {
  9.             SET_VEHICLE_OUT_OF_CONTROL(vehicle, 0, 1);
  10.             drawNotification("Don't Crash ;)");
  11.         }
  12.         else
  13.         {
  14.             SET_VEHICLE_OUT_OF_CONTROL(vehicle, 0, 0);
  15.             drawNotification("Disarmed");
  16.         }
  17.     }
  18.     else
  19.         drawNotification("~r~Error: Vehicle = NULL?");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement