2024-10-03 17:59:41 +00:00
|
|
|
import { rpc } from 'rpc'
|
2024-06-13 20:12:40 +00:00
|
|
|
|
2024-10-03 17:59:41 +00:00
|
|
|
rpc.register('playerJoin', async player => {
|
|
|
|
console.log(`Connected: ${player.socialClub}`)
|
2024-09-30 18:40:58 +00:00
|
|
|
})
|
|
|
|
|
2024-10-03 17:59:41 +00:00
|
|
|
rpc.register('customServerEvent', (player, data) => {
|
|
|
|
console.log(player, data)
|
2024-06-13 20:12:40 +00:00
|
|
|
|
2024-10-03 17:59:41 +00:00
|
|
|
rpc.callClient(player, 'customClientEvent', ['server to client'])
|
2024-06-13 20:12:40 +00:00
|
|
|
})
|