mirror of
https://github.com/sergeyyarkov/altv-copchase-mod.git
synced 2026-10-11 18:29:35 +03:00
15 lines
349 B
JavaScript
15 lines
349 B
JavaScript
import * as alt from 'alt'
|
|
import * as native from 'natives'
|
|
|
|
alt.onServer('vehicle:setInto', (newVehicle) => {
|
|
const localPlayer = alt.Player.local.scriptID
|
|
|
|
alt.setTimeout(() => {
|
|
native.setPedIntoVehicle(localPlayer, newVehicle.scriptID, -1)
|
|
}, 300)
|
|
})
|
|
|
|
alt.onServer('admin:setStat', () => {
|
|
alt.setStat('shooting_ability', 99999)
|
|
})
|