Keymapping
```lua
RegisterCommand('carlock', function()
startlocking()
end)
RegisterKeyMapping('carlock', _U("keymapping"), 'keyboard', 'i') -- Dont forget to change your Key here
-- THE OLD WAY TO USE:
--[[
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
if (IsControlJustPressed(1, Config.Key)) then
startlocking()
end
end
end)
]]
```DO NOT FORGET TO CHANGE YOUR KEY TO SOMETHING YOU PREFER INSTEAD OF i IN LINE 90!
Last updated