ошибка в коде

CeSum

Участник
Автор темы
30
0
Версия MoonLoader
.026-beta
Lua::
function main()
    while true do
        wait(0)
        if testCheat("56") then
            printStringNow("Car spawned!",1000)
            x,y,z = getCharCoordinates(PLAYER_PED)
            hcar = createCar(522,x,y,z)
        end
    end
end

opcode '00A5' call caused an unhandled exception
stack traceback:
[C]: in function 'createCar'
 

Rice.

Известный
Модератор
1,756
1,623
Lua::
function main()
    while true do
        wait(0)
        if testCheat("56") then
            printStringNow("Car spawned!",1000)
            x,y,z = getCharCoordinates(PLAYER_PED)
            hcar = createCar(522,x,y,z)
        end
    end
end

opcode '00A5' call caused an unhandled exception
stack traceback:
[C]: in function 'createCar'
Lua:
function main()
    while true do
        wait(0)
        if testCheat("56") then
            if not hasModelLoaded(522) then
                requestModel(522)
                loadAllModelsNow()
            end
            printStringNow("Car spawned!",1000)
            x,y,z = getCharCoordinates(PLAYER_PED)
            hcar = createCar(522,x,y,z)
        end
    end
end
 
  • Нравится
Реакции: chapo