Sticky11 Posted May 6, 2016 Posted May 6, 2016 I need help with this function, check if there's bug in it please. function hospital( player, source, commandName, posX, posY, posZ ) if (source == hospitalButton) then exports.texts:output("You are now on LV Hospital! ", source, 0, 255, 0) setElementPosition ( source, 1614, 1817, 10 ) end end addEventHandler ( "onClientGUIClick", guiRoot, hospital, false )
Walid Posted May 6, 2016 Posted May 6, 2016 function hospital() if (source == hospitalButton) then exports.texts:output("You are now on LV Hospital! ", 0, 255, 0) setElementPosition (localPlayer, 1614, 1817, 10 ) end end addEventHandler ( "onClientGUIClick", guiRoot, hospital)
Sticky11 Posted May 6, 2016 Author Posted May 6, 2016 @Walid, can you put to the function, takePlayerMoney when he click?
Dimos7 Posted May 6, 2016 Posted May 6, 2016 function hospital if (source == hospitalButton) then exports.texts.output("You are now on LV Hospital", 0, 255, 0) setElementPosition(localPlayer, 1614, 1817, 10) takePlayerMoney(amount) end end addEventHandler("onClientGUIClick", guiRoot, hospital)
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