help

Runbu73

Участник
Автор темы
123
5
if imgui.Button(fa.ICON_FA_USER.. u8' velocity', imgui.ImVec2(160, 25)) then
setCarCruiseSpeed('faggio', 120.0)
end

what am I wrong? can you correct?

Ícone Verificada pela comunidade
 

chromiusj

R&B-baby-queen
Модератор
5,584
3,887
if imgui.Button(fa.ICON_FA_USER.. u8' velocity', imgui.ImVec2(160, 25)) then
setCarCruiseSpeed('faggio', 120.0)
end

what am I wrong? can you correct?

Посмотреть вложение 232055
Because first argument is car handle,not a string value
 

cord

Хватит спать на мне
Проверенный
571
470
if imgui.Button(fa.ICON_FA_USER.. u8' velocity', imgui.ImVec2(160, 25)) then
setCarCruiseSpeed('faggio', 120.0)
end
in the first argument of the function, you use the name of the car, instead of its handle
Lua:
if imgui.Button(fa.ICON_FA_USER.. u8' velocity', imgui.ImVec2(160, 25)) then
    car = storeCarCharIsInNoSave(PLAYER_PED)
    setCarCruiseSpeed(car, 120.0)
end
 
  • Нравится
Реакции: Vintik