2020-08-06 00:03:40 +03:00

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)
})