CityRP Documentation Repository

core.plugins.tracking.cl_init

Trackers Client.

Functions

Clientdraw.Arc(cx, cy, radius, thickness, startang, endang, roughness, color)Source ☍

Draw an arc on screen.

Parameters

Clientsurface.DrawArc(arc)Source ☍

Draw an pre-generated arc. Draw a pre-made arc.

Parameters

Clientsurface.DrawTexturedRectRotatedPoint(x, y, w, h, rot, x0, y0)Source ☍

Draw a rotated rectangle, rotated around non-origin point.

Parameters

  • xanyThe x centre of the rectangle.
  • yanyThe y centre of the rectangle.
  • wanyThe width of the rectangle.
  • hanyThe height of the shape
  • rotanyRotation angle (degrees)
  • x0anyThe rotation x origin.
  • y0anyThe rotation y origin.
Clientsurface.PrecacheArc(cx, cy, radius, thickness, startang, endang, roughness) → tableSource ☍

Create a list of points to create an arc from.

Parameters

  • cxanyCentre X
  • cyanyCentre Y
  • radiusanyRadius of the arc.
  • thicknessanyThickness of the arc line.
  • startanganyThe starting angle of the arc.
  • endanganyThe ending angle of the arc.
  • roughnessanyMeasure of how many "points" are created for the arc.

Returns

  1. table