• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua block use of exercises by hotkey?

ftsys

New Member
Joined
Sep 1, 2022
Messages
8
Reaction score
0
Does anyone know if and how I can block the use of exercises weappons by hotkey? tfs 1.3

tks 😘
 
Solution
There is a parameter called isHotkey on the onUse function
Lua:
local exerciseWeapon = Action()
function exerciseWeapon.onUse(player, item, fromPosition, target, toPosition, isHotkey)

    if isHotkey then
        return false
    end
    
    return true
end
There is a parameter called isHotkey on the onUse function
Lua:
local exerciseWeapon = Action()
function exerciseWeapon.onUse(player, item, fromPosition, target, toPosition, isHotkey)

    if isHotkey then
        return false
    end
    
    return true
end
 
Solution
There is a parameter called isHotkey on the onUse function
Lua:
local exerciseWeapon = Action()
function exerciseWeapon.onUse(player, item, fromPosition, target, toPosition, isHotkey)

    if isHotkey then
        return false
    end
   
    return true
end
Very good. thanks :>
 
Back
Top