add variable inifiles for activation

master
rubin 2 years ago
parent 8c3fc250ea
commit 5f9b743bae
  1. 4
      corn-hud.lua

@ -85,7 +85,7 @@ function main()
},
Settings = {
Key1='VK_RBUTTON',
Key2='VK_C',
Key2='VK_MENU',
X=0,
Y=0
},
@ -145,7 +145,7 @@ function main()
end
end
end
if isKeyDown(VK_RBUTTON) and (isCharInModel(PLAYER_PED, 440) or isKeyDown(VK_C)) then
if isKeyDown(ini.Settings.Key1) and (isCharInModel(PLAYER_PED, 440) or isKeyDown(ini.Settings.Key2)) then
sampSetCursorMode(3)
mouse = 1
local posX, posY = getScreenResolution()

Loading…
Cancel
Save