KeyBind Car Fixer [LUA] [Gamepad Support] 1.0
1.776
34
1.776
34
Easy way to fix vehicle with keyboard and controller keybinds(Fully customizable)
*MORE COMING SOON*
REQUIREMENTS:
Version 1.0 (Release)
- Controller carfixer hot key
- keyboard carfixer hot key
*MORE COMING SOON*
REQUIREMENTS:
Version 1.0 (Release)
- Controller carfixer hot key
- keyboard carfixer hot key
Primo Caricamento: 03 giugno 2015
Ultimo Aggiornamento: 04 giugno 2015
Last Downloaded: 3 giorni fa
15 Commenti
Easy way to fix vehicle with keyboard and controller keybinds(Fully customizable)
*MORE COMING SOON*
REQUIREMENTS:
Version 1.0 (Release)
- Controller carfixer hot key
- keyboard carfixer hot key
*MORE COMING SOON*
REQUIREMENTS:
Version 1.0 (Release)
- Controller carfixer hot key
- keyboard carfixer hot key
Primo Caricamento: 03 giugno 2015
Ultimo Aggiornamento: 04 giugno 2015
Last Downloaded: 3 giorni fa
We already have a script with the same functionality but I'll approve this since it has gamepad support. Looking forward to new features :)
@rappo Yeah, sorta new to the whole script thing and made this up and thought it was cool. Definitely will add more features :)
I used till now Vehicle Quick Fix 'n Clean 1.2 from Smokey https://www.gta5-mods.com/scripts/vehicle-quick-fix-n-clean. Your script is a little better because of gameped support and customizing font and on screen info position. I changed the settings (put text at the bottom of the screen and reduced font size, it was too big and irritating in my opinion) and added Clean vehicle option. For those who agree with me, here are the changes:
--FIX VEHICLE
--####CHANGE CONTROLLER KEYBIND HERE
--CONTROLLER ↓ Only change the second number to the corresponding controller key
-- ↓
-- ↓ ↓______↓ To have multiple keys, remove "then" and the 2 dashed lines before "and"
if CONTROLS.IS_CONTROL_PRESSED(2,19) then -- and CONTROLS.IS_CONTROL_PRESSED(2,18) then
VEHICLE.SET_VEHICLE_FIXED(playerVehicle)
VEHICLE.SET_VEHICLE_DIRT_LEVEL(veh, 0)
CarFixer.draw_text("Vehicle Fixed And Cleaned", 0.90, 0.50, 0.45)
end
--KEYBOARD
if get_key_pressed(key.fixcarkeyboard) then
VEHICLE.SET_VEHICLE_FIXED(playerVehicle)
VEHICLE.SET_VEHICLE_DIRT_LEVEL(veh, 0)
CarFixer.draw_text("Vehicle Fixed And Cleaned", 0.90, 0.50, 0.45)
end
end
function CarFixer.unload()
end
return CarFixer
@kizacudo yes I was going to add more features later on, and since I'm new to lua and making mods for GTA, I highly appreciate people making additions to this! Thanks for the change :)
This worked for me once, but now because of key binding, my LUA scripts don't work any more. How to correct it and where?
asi?
I would like to know the answer, but I remapped all my LUA scripts, and now they all work with X-Box game pad. I had to activate them only with Pad. The best combination is DPad Right + button. I am grateful to you in a way because I play mostly with pad, but if you find anything about key binding and LUA, please tell us to avoid additional complications.
dude, thats an apple keyboard, watch out so you wont get killed
@kizacudo So say again? Your LUA scripts don't work because of the key mappings? I haven't had any issues with other LUA scripts but a new version will be released shortly with a bit more added features and maybe it will fix your problems :) (ps: I added the lowered/smaller text and added the clean car feature, as I liked it better so thanks for that addition)
Something changed in some config file or windows registry, I don't know but keyboard in LUA is out. Maybe it switched on apple layout because of some characters, as TedSN noticed. Maybe if we resolve this problem, many people who had problems with LUA scripts, which work by the way, but don't recognize keyboard input, could use those scripts by simply changing the KB layout.
@kizacudo yeah i'm not sure, it seems to be working fine for me, but ill definitely look into it
Works fine =D using a ps3 controller.
I did some things in the process and Lua is now working fine with keyboard. For those who use X-Box gamepad, here are the key codes and all Lua scripts work fine with pad.
X-Box GamePad
A - 18
B - 45
X - 22
Y - 23
LB - 37
RB - 44
L2 - 10
R2 - 11
L3 - 28
R3 - 29
Select - 0
D-Pad:
Left - 15
Right - 74
Up - 27
Down - 19
Left-Stick:
Left - 34
Right - 9
Up - 32
Down - 8
Right-Stick:
Left - 5
Right - 1
Up - 3
Down - 2
to be used with the :
CONTROLS.IS_CONTROL_PRESSED(2,"Code From above")
I added a mod that changed my gamepad control a bit. when running pressing the a button turns on the rockstar editor record, in a car the brakes work but also make the guy aim. Can this mod fix this or make it default again?
Answer, please! I want to know this, too.