mirror of
https://github.com/sergeyyarkov/altv-copchase-mod.git
synced 2026-10-11 02:09:23 +03:00
12 lines
322 B
JavaScript
12 lines
322 B
JavaScript
import { registerCmd } from 'chat'
|
|
import { copchase } from '../../copchase.mjs'
|
|
|
|
import config from '../../../config.mjs'
|
|
|
|
registerCmd('spawn', player => {
|
|
if (copchase.isPlayerInWaitingRoom(player)) return false
|
|
if (copchase.isPlayerInGame(player)) return false
|
|
|
|
player.pos = config.spawn
|
|
player.dimension = 0
|
|
}) |