help

Runbu73

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

PARΛDIGM ΛSS
Друг
4,919
3,203
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

contact me → cordtech.ru
Проверенный
558
411
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