rock-mod
Version:
Rock-Mod is a powerful framework designed for creating and managing mods for Grand Theft Auto (GTA) games.
16 lines (15 loc) • 429 B
JavaScript
/// <reference types="@classic-mp/types/client" />
import { Vector2D } from "../../../../shared/common/utils";
export class CCMPCursorManager {
show(_freezeControls, state) {
if (state) {
ccmp.cursor.show();
return;
}
ccmp.cursor.hide();
}
getPosition() {
const position = ccmp.cursor.getPosition();
return new Vector2D(position.x, position.y);
}
}