iFrank4927 Posted September 14, 2017 Share Posted September 14, 2017 (edited) Hello i need help with this please! Menu_client.lua:721 attempt to compare a number with boleaan if itemName == "EngineOne" then if getElementData(getLocalPlayer(),"Tamir Çantası") >= 1 then if (getElementData(getLocalPlayer(),"Motor") or 0) > 0 then local col = getElementData(getLocalPlayer(),"currentCol") triggerServerEvent("playeRepairingAnim",localPlayer,2) setElementData(col,"Motor_inVehicle",(getElementData(col,"Motor_inVehicle") or 0)+1) setElementData(getLocalPlayer(),"Motor",(getElementData(getLocalPlayer(),"Motor") or 0)-1) triggerServerEvent("playeRepairingAnim",localPlayer,2) startRollMessage2("Inventory", "Bir motor koyuldu!", 22, 255, 0 ) else startRollMessage2("Inventory", "Sende Motor Yok!", 255, 22, 0 ) Edited September 14, 2017 by iFrank4927 Link to comment
Storm-Hanma Posted September 15, 2017 Share Posted September 15, 2017 Add full code has it says error on Menu_client.lua:721 you need to go 721 line and check the errors and fix it Link to comment
NeXuS™ Posted September 15, 2017 Share Posted September 15, 2017 I suppose you highlighted the said line. Next time use [ code] tags. if itemName == "EngineOne" then if getElementData(getLocalPlayer(),"Tamir Çantası") and getElementData(getLocalPlayer(),"Tamir Çantası") >= 1 then if (getElementData(getLocalPlayer(),"Motor") or 0) > 0 then local col = getElementData(getLocalPlayer(),"currentCol") triggerServerEvent("playeRepairingAnim",localPlayer,2) setElementData(col,"Motor_inVehicle",(getElementData(col,"Motor_inVehicle") or 0)+1) setElementData(getLocalPlayer(),"Motor",(getElementData(getLocalPlayer(),"Motor") or 0)-1) triggerServerEvent("playeRepairingAnim",localPlayer,2) startRollMessage2("Inventory", "Bir motor koyuldu!", 22, 255, 0 ) else startRollMessage2("Inventory", "Sende Motor Yok!", 255, 22, 0 ) end end 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