@redspacem/client-types
v0.1.2
Published
Typed contract for the client-side scripting API injected by the RedSpaceM client plugin (ClientMp, camera, input, render, event bus) plus a lerp helper.
Maintainers
Readme
@redspacem/client-types
Typed contract for the client-side scripting API injected by the RedSpaceM client plugin into in-game (RED4ext-style) scripts.
ClientMp,ClientCamera,ClientInput,ClientRenderClientEventBus/ClientEventMap- Helper:
lerp
Depends on @redspacem/server-types (re-exports MpVector3).
Install
bun add @redspacem/client-typesExample
import type { ClientMp } from "@redspacem/client-types";
declare const mp: { client: ClientMp };
mp.client.camera.lock(true);
mp.client.input.blockInput(true);
mp.client.events.on("frame", ({ deltaMs }) => {
// ...
});License
MIT — see LICENSE. Part of the RedSpaceM SDK.
