- 72
- 10
- Версия SA-MP
-
- 0.3.7 (R1)
local X, Y, Z = getCharCoordinates(PLAYER_PED)
local _, veh = findAllRandomVehiclesInSphere(X, Y, Z, tonumber(globalradius), true, true)
if _ then
local _, vid = sampGetVehicleIdByCarHandle(veh)
CX, CY, CZ = getCarCoordinates(veh)
warpCharIntoCar(PLAYER_PED, veh)
wait(35)
setCharCoordinates(PLAYER_PED, CX, CY, CZ - 10)
wait(35)
warpCharFromCarToCoord(PLAYER_PED, X, Y, Z - 1)
printStyledString('Removed: '..vid, 20, 7)
local _, veh = findAllRandomVehiclesInSphere(X, Y, Z, tonumber(globalradius), true, true)
if _ then
local _, vid = sampGetVehicleIdByCarHandle(veh)
CX, CY, CZ = getCarCoordinates(veh)
warpCharIntoCar(PLAYER_PED, veh)
wait(35)
setCharCoordinates(PLAYER_PED, CX, CY, CZ - 10)
wait(35)
warpCharFromCarToCoord(PLAYER_PED, X, Y, Z - 1)
printStyledString('Removed: '..vid, 20, 7)