SHARE
TWEET

Untitled

a guest May 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock GetCoordBonnetVehicle(vehicleid, &Float:x, &Float:y, &Float:z)
  2. {
  3.     new Float:angle,Float:distance;
  4.     GetVehicleModelInfo(GetVehicleModel(vehicleid), 1, x, distance, z);
  5.     distance = distance/2 + 0.1;
  6.     GetVehiclePos(vehicleid, x, y, z);
  7.     GetVehicleZAngle(vehicleid, angle);
  8.     x -= (distance * floatsin(-angle+180, degrees));
  9.     y -= (distance * floatcos(-angle+180, degrees));
  10.     return 1;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top