示例#1
0
 /// <summary>
 /// This function allows for the positioning of dxDraw calls to be automatically adjusted according to the client's aspect ratio setting. This lasts for a single execution of an event handler for one of the following events: onClientRender, onClientPreRender and onClientHUDRender. So the function has to be called every frame, just like dxDraws.
 /// </summary>
 public static bool SetAspectRatioAdjustmentEnabled(bool enabled, float sourceRatio = 4 / 3)
 {
     return(MtaClient.DxSetAspectRatioAdjustmentEnabled(enabled, sourceRatio));
 }