diff --git a/fivem/client.lua b/fivem/client.lua index 26428ed..aa3f78e 100644 --- a/fivem/client.lua +++ b/fivem/client.lua @@ -4,7 +4,6 @@ local function displayNUI(display) data = display }) SetNuiFocus(display, display) - print("NUI: ", display) end diff --git a/ui/src/app/page.tsx b/ui/src/app/page.tsx index 18c8215..4a2bf55 100644 --- a/ui/src/app/page.tsx +++ b/ui/src/app/page.tsx @@ -11,7 +11,6 @@ export default function Home() { const searchParams = useSearchParams(); const display = useSelector((state: RootState) => state.app.display); const [playerCount, setPlayerCount] = useState(0); - console.log(display, searchParams.get("preview")); if (!display && !searchParams.get("preview")) return null; diff --git a/ui/src/components/eventListener.tsx b/ui/src/components/eventListener.tsx index 46b445d..24a3a59 100644 --- a/ui/src/components/eventListener.tsx +++ b/ui/src/components/eventListener.tsx @@ -15,10 +15,8 @@ export default function EventListener({ children }: EventListenerProps) { const onMessage = useCallback( (event: MessageEvent) => { - console.log(event); const { type, data }: { type: string; data: any } = event.data; if (type && type != "ACTION" && type != "PARTIAL_STATE") { - console.log("Received message from NUI:", type, data); dispatch({ type, payload: data }); } }, diff --git a/ui/src/state/reducers/app.ts b/ui/src/state/reducers/app.ts index c639618..9535a1d 100644 --- a/ui/src/state/reducers/app.ts +++ b/ui/src/state/reducers/app.ts @@ -13,7 +13,6 @@ const appSlice = createSlice({ initialState, reducers: { setDisplay: (state, action: PayloadAction) => { - console.log("setDisplay", action.payload); state.display = action.payload; }, },