Skip to content

Commit

Permalink
feat: add proper camera control and some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
snakewiz committed Feb 11, 2021
1 parent e3bd87d commit 36d4525
Show file tree
Hide file tree
Showing 12 changed files with 651 additions and 217 deletions.
1 change: 1 addition & 0 deletions typescript/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"rules": {
"prettier/prettier": "error",
"semi": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-function": "off"
}
Expand Down
6 changes: 3 additions & 3 deletions typescript/src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
HEAD_OVERLAYS,
} from './constants';

import * as Interface from './modules/interface';
import * as Customization from './modules/customization';

export async function setPlayerModel(model: string): Promise<void> {
if (!model) return;
Expand Down Expand Up @@ -62,7 +62,7 @@ export function setPedFaceFeatures(
ped: number,
faceFeatures: PedFaceFeatures = DEFAULT_FACE_FEATURES,
): void {
Object.keys(FACE_FEATURES).forEach((key, index) => {
FACE_FEATURES.forEach((key, index) => {
const faceFeature = faceFeatures[key];

SetPedFaceFeature(ped, index, faceFeature);
Expand Down Expand Up @@ -209,7 +209,7 @@ function setPedAppearance(ped: number, appearance: PedAppearance): void {
function init(): void {
global.Delay = Delay;

Interface.loadModule();
Customization.loadModule();

SetNuiFocus(true, true);
SetNuiFocusKeepInput(false);
Expand Down
Loading

0 comments on commit 36d4525

Please sign in to comment.