public WeaponType FromSlot(int slot) { VarPointer type = new VarPointer(); VarPointer dummy = new VarPointer(); Internal.Function.Call(0x04B8, _character, slot, type, dummy, dummy); return(this[(WeaponId)type.Value]); }
public static Vector3 GetRightStick() { VarPointer x = new VarPointer(); VarPointer y = new VarPointer(); Internal.Function.Call(0x0494, 0, new VarPointer(), new VarPointer(), x, y); return(new Vector3((int)x, (int)y)); }
public static Vector3 GetRightStick() { VarPointer x = new VarPointer(); VarPointer y = new VarPointer(); Internal.Function.Call(0x0494, 0, new VarPointer(), new VarPointer(), x, y); return new Vector3((int)x, (int)y); }
public Vector3 GetClosestCarPathWithHeading(ref float heading) { VarPointer pX = new VarPointer(); VarPointer pY = new VarPointer(); VarPointer pZ = new VarPointer(); VarPointer pA = new VarPointer(); Internal.Function.Call(0x03d3, this, pX, pY, pZ, pA); heading = (float)pA; return(new Vector3((float)pX, (float)pY, (float)pZ)); }
public Vector3 GetClosestPathCoordinates(PathType type) { uint opcode = 0; switch (type) { case PathType.Car: opcode = 0x02c1; break; case PathType.Ped: opcode = 0x02c0; break; } VarPointer pX = new VarPointer(); VarPointer pY = new VarPointer(); VarPointer pZ = new VarPointer(); Internal.Function.Call(opcode, this, pX, pY, pZ); return(new Vector3((float)pX, (float)pY, (float)pZ)); }
public WeaponType FromSlot(int slot) { VarPointer type = new VarPointer(); VarPointer dummy = new VarPointer(); Internal.Function.Call(0x04B8, character, slot, type, dummy, dummy); return this[(WeaponID)type.Value]; }
public Vector3 GetClosestPathCoordinates(PathType type) { uint opcode = 0; switch (type) { case PathType.Car: opcode = 0x02c1; break; case PathType.Ped: opcode = 0x02c0; break; } VarPointer pX = new VarPointer(); VarPointer pY = new VarPointer(); VarPointer pZ = new VarPointer(); Internal.Function.Call(opcode, this, pX, pY, pZ); return new Vector3((float)pX, (float)pY, (float)pZ); }
public Vector3 GetClosestCarPathWithHeading(ref float heading) { VarPointer pX = new VarPointer(); VarPointer pY = new VarPointer(); VarPointer pZ = new VarPointer(); VarPointer pA = new VarPointer(); Internal.Function.Call(0x03d3, this, pX, pY, pZ, pA); heading = (float)pA; return new Vector3((float)pX, (float)pY, (float)pZ); }