greentumbleweed Posted September 19, 2018 Share Posted September 19, 2018 i have the areas where toggleControl is not working -------here function showInventory (key,keyState,thePlayer) if getElementData(getLocalPlayer(),"isDead",true) then return end if getElementData(getLocalPlayer(),"logedin") then if ( keyState == "down" ) then guiSetVisible(inventoryWindows,not guiGetVisible(inventoryWindows)) showCursor(false) toggleControl("fire",true);-------------here refreshInventory() if guiGetVisible(inventoryWindows) == true then onClientOpenInventoryStopMenu () showCursor(true,false) toggleControl("fire",false);--------here else hideRightClickInventoryMenu () if isPlayerInLoot() then if getElementData ( isPlayerInLoot(), "itemloot" ) then triggerServerEvent ("startUpdatingLoot",isPlayerInLoot()) end end end guiSetVisible(checkBox["hidetent"],false) if isPlayerInLoot() then local col = getElementData(getLocalPlayer(),"currentCol") local gearName = getElementData(getLocalPlayer(),"lootname") if getElementData(col,"tent") then guiSetVisible(checkBox["hidetent"],true) if getElementData(col,"hidetent") == false then guiCheckBoxSetSelected(checkBox["hidetent"],true) else guiCheckBoxSetSelected(checkBox["hidetent"],false) end else guiSetVisible(checkBox["hidetent"],false) end refreshLoot(col,gearName) end end end end bindKey ( "j", "down", showInventory ) Link to comment
Z4Zy Posted September 19, 2018 Share Posted September 19, 2018 did you parse this code in client side ? and are there any error appears in debugscript ? Link to comment
greentumbleweed Posted September 20, 2018 Author Share Posted September 20, 2018 10 hours ago, DeadthStrock said: did you parse this code in client side ? and are there any error appears in debugscript ? This is client side. and no errors at all in debug. I've seen this work in the PUBG inventory but i can not get it to work with my DayZ inventory Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now