Closed dev-syn closed 9 months ago
Though I am able to get it to work with the Remotes.Server.Get()
import Remotes from 'shared/Remotes';
import type { SerializedCharacter } from '../types/Serialized/SerializedCharacter';
Remotes.Server.Get('GetCharacters').SetCallback((player: Player) => {
return [];
});
Remotes.Server.OnFunction('GetCharacters',(player: Player) => {
return [];
});
I wasn't aware that Remotes.Server
was still around. Using .Get
is the recommended way to do things.
I wasn't aware that
Remotes.Server
was still around. Using.Get
is the recommended way to do things.
Ok I only was lead to OnFunction because Remotes.Server.Get()
was pointing to Remotes.Server.OnFunction()
as a better alternative but I will just use Get
then.
Remotes.ts:
main.server.ts: