- 51
- 3
- Версия MoonLoader
- .026-beta
Lua:
function sampev.onSendEnterVehicle(id, pass)
carId = id
lua_thread.create(function()
while not isCharInAnyCar(PLAYER_PED) do wait(0) end
local result, carHandle = sampGetCarHandleBySampVehicleId(carId)
if getCarDoorLockStatus(carHandle) == 0 then
sampSendChat('/lock')
end
end)
end