- 1,409
- 283
- Версия MoonLoader
- Другое
Lua:
if isCharInAnyCar(PLAYER_PED) then
mycarid = storeCarCharIsInNoSave(PLAYER_PED)
end
for id = 0, 2048 do
local result = sampIs3dTextDefined(id)
if result then
local text, color, posX, posY, posZ, distance, ignoreWalls, playerId, vehicleId = sampGet3dTextInfoById(id)
if vehicleId==mycarid then
if text:find('Загружено: %d+') then
local produktivmashine = string.gmatch(text, 'Загружено: (%d+)')
print(produktivmashine)
print(vehicleId)
end
end
end
end
или как получить 3д текст по ид машины?