addEventHandler("onClientMarkerHit", root,
function(plr)
if plr == localPlayer and source == mrk then
if not isPedInVehicle(plr) then
if getElementData(plr, "Mission") ~= "Yes" then
guiSetVisible(wnd, true)
showCursor(true)
guiSetInputEnabled(true)
else
outputChatBox("#8A010A You already have this job", 255, 0, 0, true)
end
else
outputChatBox("#8A010A You can not open the window and you're inside the car", 255, 0, 0, true)
end
end
end)