help

Runbu73

Участник
Автор темы
135
9
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

модерирую шмодерирую
Модератор
5,964
4,294
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

Хватит спать на мне
Проверенный
588
699
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