addEventHandler is called before giveJetpack is even declared.
buttonjet = guiCreateButton( 0.05, 0.1, 1, 0.1, "Jetpack", true, window )
function givejetpack ()
triggerServerEvent ( "onGiveJet", resourceRoot )
end
addEventHandler ( "onClientGUIClick", buttonjet, givejetpack, false )