Adding more binds
1. Lua changes - @vms_anims/config/keybinds.lua
keybinds = {
[1] = {},
[2] = {},
[3] = {},
[4] = {},
[5] = {},
--[6] = {},
-- If you want to add more keys to bind you can do it here but keep in mind that it will also require changes to the HTML and JS
}CreateThread(function()
while true do
local sleep = 4
if keybinds[1].key and Keys[keybinds[1].key] then
if IsControlJustPressed(0, Keys[keybinds[1].key]) then
PlayAnimation(false, Animations[tonumber(keybinds[1].animId)])
end
end
--[[
if keybinds[2].key and Keys[keybinds[2].key] then
if IsControlJustPressed(0, Keys[keybinds[2].key]) then
PlayAnimation(false, Animations[tonumber(keybinds[2].animId)])
end
end
]]
if
not keybinds[1].key
-- and not keybinds[2].key
then
sleep = 5000
end
Wait(sleep)
end
end)2. CSS changes - @vms_anims/html/style.css
3. JS changes - @vms_anims/html/app.js
4. HTML changes - @vms_anims/html/index.html
Last updated
Was this helpful?