I think you screwed up on ending functions.
function createPartyBlip ( thePlayer, commandName )
local x,y,z = getElementPosition (thePlayer)
if ( thePlayer ) then
theBlip = createBlip( x, y, z, 49, 0, 0, 0, 255)
setElementData( thePlayer, "tempdata.party", theBlip )
setElementData( thePlayer, "tempdata.patee", true )
if ( theBlip ) then
outputChatBox("Marker created successfully", thePlayer)
else
outputChatBox("Failed to create a marker", thePlayer)
end
end
end
addCommandHandler( "party", createPartyBlip )
function removePartyBlip (thePlayer)
if ( getElementData(thePlayer, "tempdata.patee", true ) ) then
destroyElement(getElementData(thePlayer,"tempdata.party", theBlip))
outputChatBox("Blip has been removed", thePlayer )
setElementData( thePlayer, "tempdata.patee", false )
end
end
addCommandHandler( "partyremove", removePartyBlip )