mirror of
https://github.com/sergeyyarkov/altv-copchase-mod.git
synced 2026-10-11 02:09:23 +03:00
17 lines
385 B
JavaScript
17 lines
385 B
JavaScript
import * as alt from 'alt'
|
|
import * as native from 'natives'
|
|
|
|
alt.onServer('onConnect', () => {
|
|
alt.log('Вы присоеденились!')
|
|
alt.emitServer('spawnPlayer')
|
|
})
|
|
|
|
alt.onServer('vehicle:setInto', (newVehicle) => {
|
|
const localPlayer = alt.Player.local.scriptID
|
|
|
|
alt.setTimeout(() => {
|
|
native.setPedIntoVehicle(localPlayer, newVehicle.scriptID, -1)
|
|
}, 300)
|
|
})
|
|
|